![]() |
KSquare Utilities
|
This object is used to help encode the data stored in BMPImage::image into 8 or 4 bit compressed formats used by BMP files. *. More...
Public Member Functions | |
| CodedPixels (kkint32 _height, kkint32 _width) | |
| ~CodedPixels () | |
| void | AddPixel (uchar pixel) |
| uchar * | CreatePixelDataStructure4Bit (kkint32 &len) |
| uchar * | CreatePixelDataStructure8Bit (kkint32 &len) |
| void | EOL () |
This object is used to help encode the data stored in BMPImage::image into 8 or 4 bit compressed formats used by BMP files. *.
Definition at line 163 of file BMPImage.cpp.
Definition at line 200 of file BMPImage.cpp.
| KKB::BmpImage::CodedPixels::~CodedPixels | ( | ) |
Definition at line 215 of file BMPImage.cpp.
| void KKB::BmpImage::CodedPixels::AddPixel | ( | uchar | pixel | ) |
This method is called once for each pixel in the BMP image
Definition at line 223 of file BMPImage.cpp.
References KKB::BmpImage::CodePair::count, and KKB::BmpImage::CodePair::pixel.
Referenced by KKB::BmpImage::SaveGrayscaleInverted4Bit(), and KKB::BmpImage::SaveGrayscaleInverted8Bit().
Creates the appropriate compressed data structure for the BMP 4-bit compressed file format. The length of the structure created will be returned in the 'len' parameter. The caller will be responsible for deleting the returned data structure.
Definition at line 277 of file BMPImage.cpp.
References KKB::BmpImage::CodePair::count, and KKB::BmpImage::CodePair::pixel.
Referenced by KKB::BmpImage::SaveGrayscaleInverted4Bit().
Creates the appropriate compressed data structure for the BMP 8-bit compressed file format. The length of the structure created will be returned in the 'len' parameter. The caller will be responsible for deleting the returned data structure.
Definition at line 358 of file BMPImage.cpp.
References KKB::KKStr::Concat(), KKB::BmpImage::CodePair::count, KKB::KKException::KKException(), and KKB::BmpImage::CodePair::pixel.
Referenced by KKB::BmpImage::SaveGrayscaleInverted8Bit().
| void KKB::BmpImage::CodedPixels::EOL | ( | ) |
This is called once at the end of each row of pixels.
Definition at line 266 of file BMPImage.cpp.
References KKB::BmpImage::CodePair::count, and KKB::BmpImage::CodePair::pixel.
Referenced by KKB::BmpImage::SaveGrayscaleInverted4Bit(), and KKB::BmpImage::SaveGrayscaleInverted8Bit().