CodeCarvings.Piczard
GetQuantizedImage(Image,Int32) Method
See Also  Send Feedback
CodeCarvings.Piczard.Plugins.Foundation Namespace > BuiltinImageQuantizer Class > GetQuantizedImage Method : GetQuantizedImage(Image,Int32) Method

image
The 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)  
Public Overloads Shared Function GetQuantizedImage( _
   ByVal image As Image, _
   ByVal maxColors As Integer _
) As Bitmap
C#  
public static Bitmap GetQuantizedImage( 
   Image image,
   int maxColors
)

Parameters

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

Return Value

A new Bitmap object containing a quantized version of the source Image.

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.