TImageEnIO.LoadFromFileBMPRAW
Declaration
function LoadFromFileBMPRAW(const FileName: WideString): Boolean;
Description
Load an image from a BmpRaw file.
FileName is the file name including extension.
Result will be false if the file is not BmpRaw (and
Aborting will be true). Loading errors due to a file not being available will raise an exception.
Note:
◼You can abort loading by setting
Aborting to true
◼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.LoadFromFileBMPRAW('C:\input.dat');
// 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.LoadFromFileBMPRAW('C:\input.dat');