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




Gets or sets the dithering method to use.

Syntax

Visual Basic (Declaration) 
Public Property DitheringMethod As RasterDitheringMethod
Visual Basic (Usage)Copy Code
Dim instance As CodecsThumbnailOptions
Dim value As RasterDitheringMethod
 
instance.DitheringMethod = value
 
value = instance.DitheringMethod
C# 
public RasterDitheringMethod DitheringMethod {get; set;}
Managed Extensions for C++ 
public: __property RasterDitheringMethod get_DitheringMethod();
public: __property void set_DitheringMethod( 
   RasterDitheringMethod value
);
C++/CLI 
public:
property RasterDitheringMethod DitheringMethod {
   RasterDitheringMethod get();
   void set (RasterDitheringMethod value);
}

Return Value

The dithering method to use.

Example

For an example, refer to RasterCodecs.ReadThumbnail.

Remarks

The DitheringMethod will be passed to ColorResolutionCommand internally when MaintainAspectRatio is true, ForceSize is true, and the source image is not 24-bit. In this case, the thumbnail image is converted to 24-bit, then, combined with a "background" image. The resulting image is then returned to the thumbnail image's original bit-depth using DitheringMethod.

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