Changes between Version 12 and Version 13 of Docs/Prog/Manual/ApplicationLibraries/lib825ev/Display/CBitmap
- Timestamp:
- 02/20/13 09:05:17 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Docs/Prog/Manual/ApplicationLibraries/lib825ev/Display/CBitmap
v12 v13 40 40 41 41 {{{ 42 int LoadBitmap(const string& strFilename );43 int LoadBitmap(const char* pszFilename );42 int LoadBitmap(const string& strFilename, PALETTE_ITEM* transparent = NULL); 43 int LoadBitmap(const char* pszFilename, PALETTE_ITEM* transparent = NULL); 44 44 }}} 45 45 … … 47 47 * strFilename - filename 48 48 * pszFilename - filename 49 * transparent - (optional parameter) if specified defines a particular color to treat as transparent instead of displaying the color 49 50 50 51 ==== Return Value ==== … … 73 74 } 74 75 76 }}} 77 78 {{{ 79 PALETTE_ITEM trans; 80 trans.red = 128; 81 trans.green = 192; 82 trans.blue = 192; 83 trans.alpha = 0; 84 85 CBitmap bitamp; 86 if(bitmap.LoadBitmap("/mnt/nand/apps/myapp/myapp.bmp", &trans) != BITMAP_SUCCESS) 87 { 88 DisplayText(0, 0, "Error loading bitmap"); 89 } 75 90 }}} 76 91