Specifies the channels order for a RAW file. It can be RGB or BGR and it is valid only for color images.
Namespace: HiComponents.IEvolutionAssembly: IEvolution2 (in IEvolution2.dll) Version: 10.1.0.0
Syntax
C# | Visual Basic | Visual C++ |
public IOParams..::..BMPRAWChannelOrder BMPRAW_ChannelOrder { get; set; }
Public Property BMPRAW_ChannelOrder As IOParams..::..BMPRAWChannelOrder Get Set
public: property IOParams..::..BMPRAWChannelOrder BMPRAW_ChannelOrder { IOParams..::..BMPRAWChannelOrder get (); void set (IOParams..::..BMPRAWChannelOrder value); }
Examples
CopyC#
// load a RAW image, RGB, interleaved, 8 bit aligned, 1024x768, binary values ieViewer1.Image.LegacyBitmap = false; ieViewer1.Image.Allocate(1024, 768, PixelFormat.ie24RGB); ieViewer1.Image.IOParams.BMPRAW_ChannelOrder = BMPRAWChannelOrder.RGB; ieViewer1.Image.IOParams.BMPRAW_Planes = BMPRAWPlanes.Interleaved; ieViewer1.Image.IOParams.BMPRAW_RowAlign = 8; ieViewer1.Image.IOParams.BMPRAW_HeaderSize = 0; ieViewer1.Image.IOParams.BMPRAW_DataFormat = BMPRAWDataFormat.Binary; ieViewer1.Image.LoadImage("input.dat", IEFileFormats.BMPRAW); // load a RAW image, CMYK, interleaved, 8 bit aligned, 1024x768, ASCII decimal values ieViewer1.Image.LegacyBitmap = false; ieViewer1.Image.Allocate(1024, 768, PixelFormat.ieCMYK); ieViewer1.Image.IOParams.BMPRAW_ChannelOrder = BMPRAWChannelOrder.RGB; ieViewer1.Image.IOParams.BMPRAW_Planes = BMPRAWPlanes.Interleaved; ieViewer1.Image.IOParams.BMPRAW_RowAlign = 8; ieViewer1.Image.IOParams.BMPRAW_HeaderSize = 0; ieViewer1.Image.IOParams.BMPRAW_DataFormat = BMPRAWDataFormat.TextDecimal; ieViewer1.Image.LoadImage("input.dat", IEFileFormats.BMPRAW); // saves current image as RAW image, RGB, 8 bit aligned, binary values ieViewer1.Image.IOParams.BMPRAW_ChannelOrder = BMPRAWChannelOrder.RGB; ieViewer1.Image.IOParams.BMPRAW_Planes = BMPRAWPlanes.Planar; ieViewer1.Image.IOParams.BMPRAW_RowAlign = 8; ieViewer1.Image.IOParams.BMPRAW_DataFormat = BMPRAWDataFormat.Binary; ieViewer1.Image.SaveImage("output.dat", IEFileFormats.BMPRAW);