ImageEn, unit imageenio

TImageEnIO.SaveToFileBMPRAW

TImageEnIO.SaveToFileBMPRAW


Declaration

procedure SaveToFileBMPRAW(const FileName: WideString);


Description

Saves the current image to a file in BmpRaw format.
FileName is the file name including extension.

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.
 If an internal save error is encountered Aborting will return true. Saving issues due to insufficient write permissions and disk write failures will raise an exception.
 To abort while saving set Aborting to true


Demo

Demo  Demos\InputOutput\RealRAW\RealRaw.dpr


Example

// saves current image as RAW image
ImageEnView1.IO.Params.BMPRAW_ChannelOrder := coRGB;
ImageEnView1.IO.Params.BMPRAW_Planes := plPlanar;
ImageEnView1.IO.Params.BMPRAW_RowAlign := 8;
ImageEnView1.IO.SaveToFileBMPRAW('C:\output.dat');