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
|