Order Property (original) (raw)
Summary
Gets or sets the color order of this RasterImage.
Syntax
C#
Objective-C
C++/CLI
Java
Python
@property (nonatomic, assign) LTRasterByteOrder order
Property Value
The color order of this RasterImage.
Example
using Leadtools;
using Leadtools.Codecs;
using Leadtools.ImageProcessing;
using Leadtools.ImageProcessing.Core;
using Leadtools.ImageProcessing.Color;
using Leadtools.Dicom;
using Leadtools.Drawing;
using Leadtools.Controls;
using Leadtools.Svg;
public void OrderExample()
{
RasterCodecs codecs = new RasterCodecs();
string srcFileName = Path.Combine(LEAD_VARS.ImagesDir, "Image1.cmp");
// Load the image as BGR (default) and get the first pixel value
RasterImage image = codecs.Load(srcFileName, 24, CodecsLoadByteOrder.Bgr, 1, 1);
Console.WriteLine("Order is {0}", image.Order);
image.Dispose();
// Load the image as RGB and get the first pixel value
image = codecs.Load(srcFileName, 24, CodecsLoadByteOrder.Rgb, 1, 1);
Console.WriteLine("Order is {0}", image.Order);
image.Dispose();
codecs.Dispose();
}
static class LEAD_VARS
{
public const string ImagesDir = @"C:\LEADTOOLS22\Resources\Images";
}
Leadtools Assembly