Changes between Version 12 and Version 13 of Docs/Prog/Manual/ApplicationLibraries/lib825ev/Display/CBitmap


Ignore:
Timestamp:
02/20/13 09:05:17 (11 years ago)
Author:
Don Wilson
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Docs/Prog/Manual/ApplicationLibraries/lib825ev/Display/CBitmap

    v12 v13  
    4040
    4141{{{
    42 int LoadBitmap(const string& strFilename);
    43 int LoadBitmap(const char* pszFilename);
     42int LoadBitmap(const string& strFilename, PALETTE_ITEM* transparent = NULL);
     43int LoadBitmap(const char* pszFilename, PALETTE_ITEM* transparent = NULL);
    4444}}}
    4545
     
    4747 * strFilename - filename
    4848 * pszFilename - filename
     49 * transparent - (optional parameter) if specified defines a particular color to treat as transparent instead of displaying the color
    4950
    5051==== Return Value ====
     
    7374}
    7475
     76}}}
     77
     78{{{
     79PALETTE_ITEM trans;
     80trans.red = 128;
     81trans.green = 192;
     82trans.blue = 192;
     83trans.alpha = 0;
     84
     85CBitmap bitamp;
     86if(bitmap.LoadBitmap("/mnt/nand/apps/myapp/myapp.bmp", &trans) != BITMAP_SUCCESS)
     87{
     88    DisplayText(0, 0, "Error loading bitmap");
     89}
    7590}}}
    7691