Leadtools.Codecs Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.12.17
Options Property
See Also 
Leadtools.Codecs Namespace > RasterCodecs Class : Options Property




Gets or sets the load and save options for this RasterCodecs.

Syntax

Visual Basic (Declaration) 
Public Property Options As CodecsOptions
Visual Basic (Usage)Copy Code
Dim instance As RasterCodecs
Dim value As CodecsOptions
 
instance.Options = value
 
value = instance.Options
C# 
public CodecsOptions Options {get; set;}
Managed Extensions for C++ 
public: __property CodecsOptions* get_Options();
public: __property void set_Options( 
   CodecsOptions* value
);
C++/CLI 
public:
property CodecsOptions^ Options {
   CodecsOptions^ get();
   void set (CodecsOptions^ value);
}

Return Value

The load and save options for this RasterCodecs.

Example

For an example, refer to RasterCodecs.

Remarks

The RasterCodecs class lets you set different options when loading and saving image files.

These options are categorized into groups corresponding to the image format they are applied to.

Some of the options are "global", for example, overriding the resolution of the file to load.

You manipulate the options of a certain format through the embedded classes inside the Options property of this RasterCodecs object. For example, to disable MMX when loading JPEG options, you would do:


rasterCodecsObject.Options.Jpeg.Load.DisableMmx = true;

Alternatively, you can obtain an instance of the correct options, manipulate the values before setting it back as follows:


CodecsOptions options = rasterCodecsObject.Options;
options.Jpeg.Load.DisableMmx = true;
rasterCodecsObject.Options = options;

You can access the various options with the following properties:

ClassDescription
CodecsLoadOptionsGlobal load options. Accessed through the CodecsOptions.Load property.
CodecsSaveOptionsGlobal save options. Accessed through the CodecsOptions.Save property.
CodecsAbcOptionsLEAD Advanced Bitonal Compression (ABC) options. Accessed through the CodecsOptions.Abc property.
CodecsEcwOptionsECW format options. Accessed through the CodecsOptions.Ecw property.
CodecsEpsOptionsEPS format options. Accessed through the CodecsOptions.Eps property.
CodecsFpxOptionsFPX (FlashPix) format options. Accessed through the CodecsOptions.Fpx property.
CodecsGifOptionsGIF format options. Accessed through the CodecsOptions.Gif property.
CodecsJbigOptionsJBIG format options. Accessed through the CodecsOptions.Jbig property.
CodecsJbig2OptionsJBIG2 format options. Accessed through the CodecsOptions.Jbig2 property.
CodecsJpegOptionsJPEG and LEAD CMP Compressed format options. Accessed through the CodecsOptions.Jpeg property.
CodecsJpeg2000OptionsJPEG 2000 and LEAD CMW Compressed format options. Accessed through the CodecsOptions.Jpeg2000 property.
CodecsPcdOptionsPCD format options. Accessed through the CodecsOptions.Pcd property.
CodecsPdfOptionsPDF format options. Accessed through the CodecsOptions.Pdf property.
CodecsPngOptionsPNG format options. Accessed through the CodecsOptions.Png property.
CodecsPtokaOptionsPTOKA format options. Accessed through the CodecsOptions.Ptoka property.
CodecsRawOptionsRAW format options. Accessed through the CodecsOptions.Raw property.
CodecsRtfOptionsRTF format options. Accessed through the CodecsOptions.Rtf property.
CodecsSidOptionsSID (DrSID) format options. Accessed through the CodecsOptions.Sid property.
CodecsTiffOptionsTIFF format options. Accessed through the CodecsOptions.Tiff property.
CodecsTxtOptionsTEXT format options. Accessed through the CodecsOptions.Txt property.
CodecsWmfOptionsWMF format options. Accessed through the CodecsOptions.Wmf property.
CodecsXpsOptionsXPS format options. Accessed through the CodecsOptions.Xps property.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also