This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Data Structures | |
struct | Bitmap |
Structure for in-memory bitmaps. More... | |
struct | BitmapFileHeader |
Compound structure for Windows .bmp files. More... | |
Defines | |
#define | BLT_CLEAR 0 |
#define | BLT_NOR 1 |
#define | BLT_NOTAND 2 |
#define | BLT_NOTCOPY 3 |
#define | BLT_ANDNOT 4 |
#define | BLT_NOT 5 |
#define | BLT_XOR 6 |
#define | BLT_NAND 7 |
#define | BLT_AND 8 |
#define | BLT_NEXOR 9 |
#define | BLT_NOP 10 |
#define | BLT_NOTOR 11 |
#define | BLT_COPY 12 |
#define | BLT_ORNOT 13 |
#define | BLT_OR 14 |
#define | BLT_SET 15 |
#define | DPI2PPM(dpi) ((100.0/2.54)*dpi) |
#define | PPM2DPI(ppm) ((ppm/(100.0/2.54)) |
#define | BMP_BGCOLOR 0x96ff00 |
#define | BMP_FGCOLOR 0x182800 |
Typedefs | |
typedef Bitmap | Bitmap |
Structure for in-memory bitmaps. | |
Functions | |
typedef (BM_BlitFunc)(char *dst | |
char | BM_GetPixel (Bitmap *bm, int x, int y) |
Get the color of the pixel located at (x,y). | |
void | BM_PutPixel (Bitmap *bm, int x, int y, char color) |
Set or clear a pixel located at (x,y). | |
Bitmap * | BM_Alloc (int w, int h) |
Allocate a Bitmap structure. | |
void | BM_Free (Bitmap *bm) |
Free a Bitmap structure. | |
Bitmap * | BM_Copy (Bitmap *bm) |
Copy a Bitmap. | |
void | BM_Clear (Bitmap *bm, char pattern=0x00) |
Clear a Bitmap's bmBits. | |
void | BM_Invert (Bitmap *bm) |
Invert all pixel of a Bitmap. | |
void | BM_Scroll (Bitmap *bm, int dx, int dy) |
Scroll bitmap contents. | |
Bitmap * | BM_Load (char *fn) |
Load a bitmap from a bmp file. | |
void | BM_Save (Bitmap *bm, char *fn) |
Save a bitmap into a bmp file. | |
void | BM_Blit (Bitmap *dst, int x, int y, Bitmap *src, int u=0, int v=0, int w=-1, int h=-1, int mode=BLT_COPY) |
Copy a region between two Bitmaps (with clipping). | |
void | BM_FastBlit (Bitmap *dst, int x, int y, Bitmap *src, int u=0, int v=0, int w=-1, int h=-1, int mode=BLT_COPY) |
Copy a region between two Bitmaps (without clipping). | |
Variables | |
int | dstwidth |
int char * | src |
int char int | srcwidth |
int char int int | width |
int char int int int | pages |
int char int int int char | shift |
int char int int int char char | fbm |
int char int int int char char char | lbm |
BM_BlitFunc | BM_Blit_Copy |
BM_BlitFunc | BM_Blit_NotCopy |
BM_BlitFunc | BM_Blit_And |
BM_BlitFunc | BM_Blit_Nand |
BM_BlitFunc | BM_Blit_NotAnd |
BM_BlitFunc | BM_Blit_AndNot |
BM_BlitFunc | BM_Blit_Or |
BM_BlitFunc | BM_Blit_Nor |
BM_BlitFunc | BM_Blit_NotOr |
BM_BlitFunc | BM_Blit_OrNot |
BM_BlitFunc | BM_Blit_Xor |
BM_BlitFunc | BM_Blit_Nexor |
|
|
|
|
|
|
|
Definition at line 19 of file bitmap.h. Referenced by GFX_ProgressBar(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 21 of file bitmap.h. Referenced by GFX_Init(). |
|
|
|
|
|
Definition at line 13 of file bitmap.h. Referenced by GFX_ProgressBar(). |
|
Definition at line 31 of file bitmap.h. Referenced by BM_Save(). |
|
Definition at line 32 of file bitmap.h. Referenced by BM_Save(). |
|
Definition at line 26 of file bitmap.h. Referenced by BM_Save(). |
|
|
|
Structure for in-memory bitmaps. This structure is somewhat special, because the bmBits do directly follow the width and height entries. So be careful, and use BM_Alloc/Free to handle Bitmap structures. The reason behind this is, that the Bitmap structure and its bmBits can be adressed by using a single segment register. bmBitsSize will will be set to the size of the bmBits part by BM_Alloc() (and should always be a multiple of two). |
|
Allocate a Bitmap structure.
Definition at line 44 of file bitmap.cpp. References Bitmap::bmBitsSize, Bitmap::height, and Bitmap::width. |
|
Copy a region between two Bitmaps (with clipping).
Definition at line 335 of file bitmap.cpp. References BM_FastBlit(), Bitmap::height, src, and Bitmap::width. |
|
Clear a Bitmap's bmBits.
Definition at line 104 of file bitmap.cpp. References Bitmap::bmBits, and Bitmap::bmBitsSize. |
|
Copy a Bitmap.
Definition at line 66 of file bitmap.cpp. References BM_Alloc(), Bitmap::bmBits, Bitmap::bmBitsSize, Bitmap::height, and Bitmap::width. Referenced by BM_Scroll(). |
|
Copy a region between two Bitmaps (without clipping).
Definition at line 398 of file bitmap.cpp. References blitFuncs, Bitmap::bmBits, fbm, Bitmap::height, lbm, pages, shift, src, and Bitmap::width. Referenced by BM_Blit(), and GFX_FillRect(). |
|
Free a Bitmap structure. BM_Free frees a Bitmap (and its bmBits) previously allocated by BM_Alloc.
Definition at line 87 of file bitmap.cpp. References Bitmap::bmBitsSize, Bitmap::height, and Bitmap::width. |
|
Get the color of the pixel located at (x,y).
Definition at line 127 of file bitmap.h. References Bitmap::bmBits, Bitmap::height, and Bitmap::width. |
|
Invert all pixel of a Bitmap.
Definition at line 115 of file bitmap.cpp. References Bitmap::bmBits, and Bitmap::bmBitsSize. |
|
Load a bitmap from a bmp file. This function allocates and loads a bitmap from a windows .bmp file. Only two color, uncompressed bitmaps are supported.
Definition at line 183 of file bitmap.cpp. References BitmapFileHeader::bfOffBits, BitmapFileHeader::bfType, BitmapFileHeader::biBitCount, BitmapFileHeader::biCompression, BitmapFileHeader::biHeight, BitmapFileHeader::biPlanes, BitmapFileHeader::biWidth, BM_Alloc(), BM_Clear(), Bitmap::bmBits, Bitmap::bmBitsSize, Bitmap::height, src, and Bitmap::width. Referenced by gfxTest(). |
|
Set or clear a pixel located at (x,y).
Definition at line 147 of file bitmap.h. References Bitmap::bmBits, Bitmap::height, and Bitmap::width. Referenced by GFX_Circle(), and GFX_Line(). |
|
Save a bitmap into a bmp file. This function saves a bitmap into a two-color, uncompressed windows .bmp file.
Definition at line 252 of file bitmap.cpp. References BitmapFileHeader::bfOffBits, BitmapFileHeader::bfReserved1, BitmapFileHeader::bfReserved2, BitmapFileHeader::bfSize, BitmapFileHeader::bfType, BitmapFileHeader::biBitCount, BitmapFileHeader::biClrImportant, BitmapFileHeader::biClrUsed, BitmapFileHeader::biCompression, BitmapFileHeader::biHeight, BitmapFileHeader::biPlanes, BitmapFileHeader::biSize, BitmapFileHeader::biSizeImage, BitmapFileHeader::biWidth, BitmapFileHeader::biXPelsPerMeter, BitmapFileHeader::biYPelsPerMeter, Bitmap::bmBits, BMP_BGCOLOR, BMP_FGCOLOR, BitmapFileHeader::color0, BitmapFileHeader::color1, DPI2PPM, Bitmap::height, src, and Bitmap::width. Referenced by gfxTest(). |
|
Scroll bitmap contents.
Definition at line 161 of file bitmap.cpp. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 101 of file bitmap.h. Referenced by BM_FastBlit(), and GFX_VLine(). |
|
Definition at line 101 of file bitmap.h. Referenced by BM_FastBlit(), and GFX_VLine(). |
|
Definition at line 101 of file bitmap.h. Referenced by BM_FastBlit(), GFX_VLine(), and printScratch(). |
|
Definition at line 101 of file bitmap.h. Referenced by BM_FastBlit(). |
|
Definition at line 101 of file bitmap.h. Referenced by AMD_StartDma(), BM_Blit(), BM_FastBlit(), BM_Load(), BM_Save(), BUF_Write(), GFX_FillRect(), hal_get_dma_info(), hal_start_dma(), HexDump(), LCD_Update(), packdomain(), REP_OUTSB(), REP_OUTSW(), and url_decode(). |
|
|
|
Definition at line 101 of file bitmap.h. Referenced by GFX_PrintAt(), GFX_Printf(), GFX_PrintfAt(), GFX_ProgressBar(), and GFX_TextWidth(). |