DioDocs for PDF
CreatePaletteFromBitmap メソッド

GrapeCity.Documents.Imaging.Windows アセンブリ > GrapeCity.Documents.Imaging.Windows 名前空間 > GcWicBitmap クラス : CreatePaletteFromBitmap メソッド
The number of colors to initialize the palette with.
A value to indicate whether to add a transparent color.
Creates a palette using a computed optimized values based on the bitmap.
シンタックス
'宣言
 
Public Function CreatePaletteFromBitmap( _
   ByVal colorCount As System.Integer, _
   ByVal addTransparentColor As System.Boolean _
) As GcWicBitmap.Palette
public GcWicBitmap.Palette CreatePaletteFromBitmap( 
   System.int colorCount,
   System.bool addTransparentColor
)

パラメータ

colorCount
The number of colors to initialize the palette with.
addTransparentColor
A value to indicate whether to add a transparent color.
解説
The resulting palette contains the specified number of colors which best represent the colors present in the bitmap. The algorithm operates on the opaque RGB color value of each pixel in the reference bitmap and hence ignores any alpha values. If a transparent color is required, set the addTransparentColor parameter to true and one fewer optimized color will be computed, reducing the colorCount, and a fully transparent color entry will be added.
参照

GcWicBitmap クラス
GcWicBitmap メンバ