[Visual Basic]
Public Function SetBitmapPixel( _
x As Integer, y As Integer, palette As Byte, red As Byte, green As Byte, blue As Byte _
) As Boolean
[C#]
public bool SetBitmapPixel(
int x, int y, byte palette, byte red, byte green, byte blue
);
パラメータ
- x,y
- 設定するピクセルのX,Y座標
- palette
- 設定するパレット番号
- red
- 設定するRGBの赤
- green
- 設定するRGBの緑
- blue
- 設定するRGBの青
戻り値
成功の場合は true、失敗の場合は false を返します。
解説
LayerNumber
プロパティによって処理されるイメージが決まります。
1,4,8ビットイメージの場合はPalette、16,24,32ビットイメージの場合はred,green,blueの値が設定されます。
処理の流れとしては
StartBitmapAccess
|
GetBitmapPixel, SetBitmapPixel
|
EndBitmapAccess
となります。
コード例についてはStartBitmapAccessメソッドを参照してください。