Leadtools名前空間 > RasterColor構造体 :FromPaletteIndexメソッド |
public static RasterColor FromPaletteIndex( int index )
'Declaration
Public Shared Function FromPaletteIndex( _ ByVal index As Integer _ ) As RasterColor
'Usage
Dim index As Integer Dim value As RasterColor value = RasterColor.FromPaletteIndex(index)
public static RasterColor FromPaletteIndex( int index )
function Leadtools.RasterColor.FromPaletteIndex( index )
public: static RasterColor FromPaletteIndex( int index )
RasterColorオブジェクトは、true RGBカラーまたはimageのパレットへのインデックス値でありえます。
IsPaletteIndexの値がtrueであるならば、このカラーはtrue RGB値を格納しません、代わりに、保存される値はimageのパレットへのインデックスです。インデックス値を取得するために、ToRgbを使います。
IsPaletteIndexの値がfalseであるならば、このカラーはtrue RGB値を格納します。
パレットインデックスであるカラーを作成するために、このメソッドを使います。