Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
myBMP.h
00001 // Code taken and hacked from EasyBMP library by Paul Macklin 00002 00003 #include "NokiaLCD.h" 00004 #include "SDFileSystem.h" 00005 00006 #define DefaultXPelsPerMeter 3780 00007 #define DefaultYPelsPerMeter 3780 00008 00009 typedef unsigned char ebmpBYTE; 00010 typedef unsigned short ebmpWORD; 00011 typedef unsigned int ebmpDWORD; 00012 00013 typedef struct RGBApixel { 00014 ebmpBYTE Blue; 00015 ebmpBYTE Green; 00016 ebmpBYTE Red; 00017 ebmpBYTE Alpha; 00018 } RGBApixel; 00019 00020 class BMFH{ 00021 public: 00022 ebmpWORD bfType; 00023 ebmpDWORD bfSize; 00024 ebmpWORD bfReserved1; 00025 ebmpWORD bfReserved2; 00026 ebmpDWORD bfOffBits; 00027 00028 BMFH(); 00029 }; 00030 00031 class BMIH{ 00032 public: 00033 ebmpDWORD biSize; 00034 ebmpDWORD biWidth; 00035 ebmpDWORD biHeight; 00036 ebmpWORD biPlanes; 00037 ebmpWORD biBitCount; 00038 ebmpDWORD biCompression; 00039 ebmpDWORD biSizeImage; 00040 ebmpDWORD biXPelsPerMeter; 00041 ebmpDWORD biYPelsPerMeter; 00042 ebmpDWORD biClrUsed; 00043 ebmpDWORD biClrImportant; 00044 00045 BMIH(); 00046 }; 00047 bool ReadBMPFromFile( const char* FileName , RGBApixel *Colors, NokiaLCD *lcd);
Generated on Wed Jul 13 2022 18:08:25 by
1.7.2