File: appImage.h

package info (click to toggle)
ted 2.11-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 11,064 kB
  • ctags: 13,935
  • sloc: ansic: 120,446; makefile: 7,469; sh: 253
file content (58 lines) | stat: -rw-r--r-- 1,534 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#   ifndef	APP_IMAGE_H
#   define	APP_IMAGE_H

#   include	<bitmap.h>

#   include	<appGuiBase.h>
#   include	<appDraw.h>

/************************************************************************/
/*									*/
/*  Used to store and manage a bitmap image.				*/
/*									*/
/************************************************************************/

typedef struct AppBitmapImage
    {
    BitmapDescription	abiBitmap;
    unsigned char *	abiBuffer;
    int			abiFormat;
    double		abiFactor;
    } AppBitmapImage;

/************************************************************************/
/*									*/
/*  Routine declarations.						*/
/*									*/
/************************************************************************/

extern int appImgMakeImage(	AppDrawingData *	add,
				APP_IMAGE **		pPimage,
				int			toWide,
				int			toHigh,
				AppColors *		ac,
				AppBitmapImage *	abi );

extern int appImgMakePixmap(	AppDrawingData *		add,
				APP_WINDOW *			pPixmap,
				int				toWide,
				int				toHigh,
				AppColors *			ac,
				AppBitmapImage *		abi );

extern void appCleanBitmapImage(	AppBitmapImage *	abi );

extern void appInitBitmapImage( AppBitmapImage * abi );

extern int appImgPastePixmap(		AppBitmapImage *	abi,
					APP_WIDGET		w,
					APP_SELECTION_EVENT *	event );

extern int appImgGetXvClipboard(	BitmapDescription *	bd,
					unsigned char **	pBuffer,
					APP_WIDGET		w );

extern int appImgPutXvClipboard(	const BitmapDescription *	bd,
					const unsigned char *		buffer,
					APP_WIDGET			w );
#   endif