OriginalFormat Property (original) (raw)
Summary
Gets or sets the original image format of this RasterImage.
Syntax
C#
Objective-C
C++/CLI
Java
Python
@property (nonatomic, assign) LTRasterImageFormat originalFormat
Property Value
The original image format of this RasterImage.
Example
This example displays the OriginalFormat of the loaded image.
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 OriginalFormatExample()
{
RasterCodecs codecs = new RasterCodecs();
RasterImage image = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir, "OCR1.TIF"));
string s = ("Original Format: " + image.OriginalFormat);
Console.WriteLine(s);
image.Dispose();
codecs.Dispose();
}
static class LEAD_VARS
{
public const string ImagesDir = @"C:\LEADTOOLS22\Resources\Images";
}
Leadtools Assembly