TImageEnIO.LoadFromStreamBMPRAW
TImageEnIO.LoadFromStreamBMPRAW
Declaration
function LoadFromStreamBMPRAW(Stream: TStream): Boolean;
Description
Loads an image from a stream containing a BmpRaw file. The result will be false if an error is encountered, e.g. the file in the stream is not BmpRaw format (
Aborting will be true).
Note: This is not the same as a digital camera Raw file, but a true "raw" format (named "BmpRaw" in ImageEn) where you can specify the channel order, placement, alignment, size, etc.
| Demos\InputOutput\RealRAW\RealRaw.dpr |
// load a RAW image, RGB, interleaved, 8 bit aligned, 1024x768
ImageEnView1.IEBitmap.Allocate(1024, 768, ie24RGB);
ImageEnView1.IO.Params.BMPRAW_ChannelOrder := coRGB;
ImageEnView1.IO.Params.BMPRAW_Planes := plInterleaved;
ImageEnView1.IO.Params.BMPRAW_RowAlign := 8;
ImageEnView1.IO.Params.BMPRAW_HeaderSize := 0;
ImageEnView1.IO.LoadFromStreamBMPRAW( stream );
// load a RAW image, CMYK, interleaved, 8 bit aligned, 1024x768
ImageEnView1.IEBitmap.Allocate(1024, 768, ieCMYK);
ImageEnView1.IO.Params.BMPRAW_ChannelOrder := coRGB;
ImageEnView1.IO.Params.BMPRAW_Planes := plInterleaved;
ImageEnView1.IO.Params.BMPRAW_RowAlign := 8;
ImageEnView1.IO.Params.BMPRAW_HeaderSize := 0;
ImageEnView1.IO.LoadFromStreamBMPRAW( stream );