EPRINT.C File Reference

Go to the source code of this file.

Defines

#define FI_DIB   0
#define FI_GIF   1
#define FI_TGA   2
#define FI_CEL   3
#define PALVERSION   0x300
#define MAXPALETTE   256
#define MAXTEXT   256
#define BOUND(x, min, max)   ((x) < (min) ? (min) : ((x) > (max) ? (max) : (x)))
#define SWAP(x, y)   ((x)^=(y)^=(x)^=(y))
#define MIN(x, y)   (((x) <= (y)) : x ? y)
#define StartWait()   hcurSave = SetCursor(LoadCursor(NULL,IDC_WAIT))
#define EndWait()   SetCursor(hcurSave)
#define ISDIB(bft)   ((bft) == BFT_BITMAP)
#define ALIGNULONG(i)   ((i+3)/4*4)
#define WIDTHBYTES(i)   ((i+31)/32*4)
#define DibNumColors(bmih)

Functions

short read_gif_image (char *, short)
int out_line (unsigned char *linepixels, int linelen)
BOOL WINAPI DllMain (HANDLE hDLL, DWORD dwReason, LPVOID lpReserved)
LRESULT CALLBACK AbortPrintJob (HWND hwndDlg, UINT message, WPARAM wParam, LPARAM lParam)
BOOL CALLBACK AbortProc (HDC hdc, int nCode)
BOOL _PrintBitmap (HWND parent_window, char *filename)

Variables

unsigned char p_red []
unsigned char p_green []
unsigned char p_blue []
int colourmap_size
int x_size
int y_size
int gif_iLace
HINSTANCE hInst = NULL
HPALETTE hpalCurrent = NULL
HBITMAP hbmCurrent = NULL
HDC hdcCurrent = NULL
RGBQUAD * pRgb = NULL
LPSTR lpBitmapHeader = NULL
LPSTR lpBitmapBits = NULL


Define Documentation

#define FI_DIB   0

Definition at line 22 of file EPRINT.C.

Referenced by MenuCommand().

#define FI_GIF   1

Definition at line 23 of file EPRINT.C.

Referenced by MenuCommand().

#define FI_TGA   2

Definition at line 24 of file EPRINT.C.

Referenced by MenuCommand().

#define FI_CEL   3

Definition at line 25 of file EPRINT.C.

#define PALVERSION   0x300

Definition at line 26 of file EPRINT.C.

Referenced by CreateAppPalette().

#define MAXPALETTE   256

Definition at line 27 of file EPRINT.C.

#define MAXTEXT   256

Definition at line 28 of file EPRINT.C.

Referenced by MenuCommand().

#define BOUND ( x,
min,
max   )     ((x) < (min) ? (min) : ((x) > (max) ? (max) : (x)))

Definition at line 45 of file EPRINT.C.

Referenced by MainWndProc().

#define SWAP ( x,
y   )     ((x)^=(y)^=(x)^=(y))

Definition at line 46 of file EPRINT.C.

Referenced by MakeCcw().

#define MIN ( x,
y   )     (((x) <= (y)) : x ? y)

Definition at line 47 of file EPRINT.C.

 
#define StartWait (  )     hcurSave = SetCursor(LoadCursor(NULL,IDC_WAIT))

Definition at line 48 of file EPRINT.C.

Referenced by _PrintBitmap(), BuildMapList(), and MenuCommand().

 
#define EndWait (  )     SetCursor(hcurSave)

Definition at line 49 of file EPRINT.C.

Referenced by _PrintBitmap(), BuildMapList(), and MenuCommand().

#define ISDIB ( bft   )     ((bft) == BFT_BITMAP)

Definition at line 51 of file EPRINT.C.

#define ALIGNULONG (  )     ((i+3)/4*4)

Definition at line 53 of file EPRINT.C.

#define WIDTHBYTES (  )     ((i+31)/32*4)

Definition at line 55 of file EPRINT.C.

#define DibNumColors ( bmih   ) 

Value:

(bmih.biClrUsed == 0 && bmih.biBitCount <= 8 \
                            ? (int)(1 << (int)bmih.biBitCount)          \
                            : (int)bmih.biClrUsed)

Definition at line 79 of file EPRINT.C.


Function Documentation

short read_gif_image ( char *  filename,
short  palette_only 
)

int out_line ( unsigned char *  linepixels,
int  linelen 
)

Definition at line 135 of file EPRINT.C.

Referenced by decoder(), and GIF_decoder().

BOOL WINAPI DllMain ( HANDLE  hDLL,
DWORD  dwReason,
LPVOID  lpReserved 
)

Definition at line 639 of file EPRINT.C.

References DLL_PROCESS_ATTACH, DLL_PROCESS_DETACH, FALSE, hInst, and TRUE.

LRESULT CALLBACK AbortPrintJob ( HWND  hwndDlg,
UINT  message,
WPARAM  wParam,
LPARAM  lParam 
)

Definition at line 668 of file EPRINT.C.

References FALSE, and TRUE.

Referenced by _PrintBitmap().

BOOL CALLBACK AbortProc ( HDC  hdc,
int  nCode 
)

Definition at line 688 of file EPRINT.C.

Referenced by _PrintBitmap().

BOOL _PrintBitmap ( HWND  parent_window,
char *  filename 
)


Variable Documentation

unsigned char p_red[]

Definition at line 76 of file GIF.C.

Referenced by _HeightField(), and read_gif_image().

unsigned char p_green[]

Definition at line 76 of file GIF.C.

Referenced by _HeightField(), and read_gif_image().

unsigned char p_blue[]

Definition at line 76 of file GIF.C.

Referenced by _HeightField(), and read_gif_image().

Definition at line 75 of file GIF.C.

Referenced by read_gif_image().

int x_size

int y_size

int gif_iLace

Definition at line 75 of file GIF.C.

Referenced by read_gif_image().

HINSTANCE hInst = NULL

Definition at line 37 of file EPRINT.C.

Referenced by _PrintBitmap(), DllMain(), MenuCommand(), and Viewer().

HPALETTE hpalCurrent = NULL

Definition at line 38 of file EPRINT.C.

Referenced by _PrintBitmap(), and MainWndProc().

HBITMAP hbmCurrent = NULL

Definition at line 39 of file EPRINT.C.

Referenced by _PrintBitmap().

HDC hdcCurrent = NULL

Definition at line 40 of file EPRINT.C.

Referenced by _PrintBitmap().

RGBQUAD* pRgb = NULL

Definition at line 41 of file EPRINT.C.

LPSTR lpBitmapHeader = NULL

Definition at line 42 of file EPRINT.C.

Referenced by _BuildAvi(), _BuildAviOld(), _PrintBitmap(), and GetNextBitmapFromTemporaryFile().

LPSTR lpBitmapBits = NULL

Definition at line 43 of file EPRINT.C.

Referenced by _BuildAviOld(), _HeightField(), and GetNextBitmapFromTemporaryFile().


Generated on Sun Apr 27 14:20:15 2014 for OpenFX by  doxygen 1.5.6