CodeCarvings.Piczard
GetQuantizedImage(Image,Int32) Method
See Also  Send Feedback
CodeCarvings.Piczard.Plugins Namespace > IImageQuantizerPlugin Interface > GetQuantizedImage Method : GetQuantizedImage(Image,Int32) Method

image
The source image to quantize.
maxColors
The maximum number of colors the quantized image can contain (e.g. 256, 128, 64, 32, etc...).
Gets a quantized copy of an Image using the specified maximum color number.

Syntax

Visual Basic (Declaration)  
Overloads Function GetQuantizedImage( _
   ByVal image As Image, _
   ByVal maxColors As Integer _
) As PluginOperationResult(Of Bitmap)
C#  
PluginOperationResult<Bitmap> GetQuantizedImage( 
   Image image,
   int maxColors
)

Parameters

image
The source image to quantize.
maxColors
The maximum number of colors the quantized image can contain (e.g. 256, 128, 64, 32, etc...).

Return Value

PluginOperationResult<Bitmap> that indicates if the Plugin has handled the request.
In case of success (Handled=true) the Value property contains the quantized Bitmap.

Requirements

Platforms: Windows 8, Windows 7, Windows Vista, Windows XP Professional, Windows 2000 - Windows Server family: 2012, 2008.R2, 2008, 2003, 2000

See Also

©2013 Sergio Turolla. All Rights Reserved.