Leadtools.CF Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.6.15
OriginalFormat Property
See Also 
Leadtools Namespace > RasterImage Class : OriginalFormat Property



Gets or sets the original format of this RasterImage.

Syntax

Visual Basic (Declaration) 
Public Overridable Property OriginalFormat As RasterImageFormat
Visual Basic (Usage)Copy Code
Dim instance As RasterImage
Dim value As RasterImageFormat
 
instance.OriginalFormat = value
 
value = instance.OriginalFormat
C# 
public virtual RasterImageFormat OriginalFormat {get; set;}
C++/CLI 
public:
virtual property RasterImageFormat OriginalFormat {
   RasterImageFormat get();
   void set (RasterImageFormat value);
}

Return Value

An RasterImageFormat value that specifies the original format of this RasterImage.

Example

This example will load an image from a disk file, flips it then saves it back to a new file without worrying what the original format was.

Remarks

This value will be initialied with the RasterImageFormat value when this image is loaded from a disk file or memory stream that contain a valid image file. If this RasterImage was created by other means (directly or from a Clone operation for example, the value for OriginalFormat will be RasterImageFormat.Unknown

You can however change this format to whatever value you want at any time.

Requirements

Target Platforms: Microsoft .NET CF Framework 2.0, Windows Mobile 5 PocketPC, Windows Mobile 5 Smartphone, Windows Mobile 6

See Also