Leadtools.Codecs Namespace > RasterCodecs Class : Options Property |
public CodecsOptions Options {get; set;}
'Declaration Public Property Options As CodecsOptions
'Usage Dim instance As RasterCodecs Dim value As CodecsOptions instance.Options = value value = instance.Options
public CodecsOptions Options {get; set;}
get_Options();
set_Options(value);
public: property CodecsOptions^ Options { CodecsOptions^ get(); void set ( CodecsOptions^ value); }
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:
Class | Description |
---|---|
CodecsLoadOptions | Global load options. Accessed through the CodecsOptions.Load property. |
CodecsSaveOptions | Global save options. Accessed through the CodecsOptions.Save property. |
CodecsAbcOptions | LEAD Advanced Bitonal Compression (ABC) options. Accessed through the CodecsOptions.Abc property. |
CodecsEcwOptions | ECW format options. Accessed through the CodecsOptions.Ecw property. |
CodecsEpsOptions | EPS format options. Accessed through the CodecsOptions.Eps property. |
CodecsFpxOptions | FPX (FlashPix) format options. Accessed through the CodecsOptions.Fpx property. |
CodecsGifOptions | GIF format options. Accessed through the CodecsOptions.Gif property. |
CodecsJbigOptions | JBIG format options. Accessed through the CodecsOptions.Jbig property. |
CodecsJbig2Options | JBIG2 format options. Accessed through the CodecsOptions.Jbig2 property. |
CodecsJpegOptions | JPEG and LEAD CMP Compressed format options. Accessed through the CodecsOptions.Jpeg property. |
CodecsJpeg2000Options | JPEG 2000 and LEAD CMW Compressed format options. Accessed through the CodecsOptions.Jpeg2000 property. |
CodecsPcdOptions | PCD format options. Accessed through the CodecsOptions.Pcd property. |
CodecsPdfOptions | PDF format options. Accessed through the CodecsOptions.Pdf property. |
CodecsPngOptions | PNG format options. Accessed through the CodecsOptions.Png property. |
CodecsPtokaOptions | PTOKA format options. Accessed through the CodecsOptions.Ptoka property. |
CodecsRawOptions | RAW format options. Accessed through the CodecsOptions.Raw property. |
CodecsRtfOptions | RTF format options. Accessed through the CodecsOptions.Rtf property. |
CodecsTiffOptions | TIFF format options. Accessed through the CodecsOptions.Tiff property. |
CodecsTxtOptions | TEXT format options. Accessed through the CodecsOptions.Txt property. |
CodecsWmfOptions | WMF format options. Accessed through the CodecsOptions.Wmf property. |
CodecsXpsOptions | XPS format options. Accessed through the CodecsOptions.Xps property. |
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2