ImageScanlineBuffer(ImageFormat readFormat, unsigned width, ImageFormat convertSourceFormat);
ImageScanlineBuffer constructor.
ImageScanlineBuffer is used by Image::Decode implementations. Two passes are possible during conversion:
1. Convert from image-file format to convertSourceFormat (optional).
2. Convert to Decode destination format with users copyScanline function.
First step is necessary if raw image-file scanline doesn't match the ImageFormat requested during image creation.
Parameters |
Description |
ImageFormat readFormat |
Read image format. |
unsigned width |
Width of the image. |
ImageFormat convertSourceFormat |
Convert scanline to this format. |