diff options
author | mrwastl <mrwastl@users.sourceforge.net> | 2011-06-29 01:17:41 +0200 |
---|---|---|
committer | mrwastl <mrwastl@users.sourceforge.net> | 2011-06-29 01:17:41 +0200 |
commit | 0178c698712832d4d19e9303edacbe7e8a034891 (patch) | |
tree | 4283c7e775abff7d2d4530ca530954d2516bcf62 /glcdgraphics/bitmap.h | |
parent | 861d73246c73ae3201a9be96483d04f3cc5ba741 (diff) | |
download | graphlcd-base-0178c698712832d4d19e9303edacbe7e8a034891.tar.gz graphlcd-base-0178c698712832d4d19e9303edacbe7e8a034891.tar.bz2 |
fix saving of PBMs, fix crtfont and genfont; remove cBitmap::LoadPBM()/::SavePBM (use cPMFile::Load()/Save()) instead; fixed cBitmap::SubBitmap(); add static methods for converting from and to 1BPP
Diffstat (limited to 'glcdgraphics/bitmap.h')
-rw-r--r-- | glcdgraphics/bitmap.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/glcdgraphics/bitmap.h b/glcdgraphics/bitmap.h index 8067cc3..dcfa26d 100644 --- a/glcdgraphics/bitmap.h +++ b/glcdgraphics/bitmap.h @@ -133,9 +133,14 @@ public: void SetProcessAlpha(bool procAlpha) { processAlpha = procAlpha; } bool IsProcessAlpha(void) const { return processAlpha; } + + static const unsigned char* ConvertTo1BPP(const cBitmap & bitmap, int threshold = 127); + static const cBitmap* ConvertFrom1BPP(const unsigned char* monobmp, int w, int h, uint32_t fg = cColor::White, uint32_t bg = cColor::Black); +#if 0 bool LoadPBM(const std::string & fileName); void SavePBM(const std::string & fileName); +#endif }; } // end of namespace |