Image.setPixel(Int32, Int32, Int32) Method

Definition

Sets the color for the pixel that is specified by the x and y parameters.

public:
 virtual int setPixel(int _x, int _y, int _pixel);
public virtual int setPixel (int _x, int _y, int _pixel);
abstract member setPixel : int * int * int -> int
override this.setPixel : int * int * int -> int
Public Overridable Function setPixel (_x As Integer, _y As Integer, _pixel As Integer) As Integer

Parameters

_x
Int32

The ARGB value of the color that you want to use.

_y
Int32

The ARGB value of the color that you want to use.

_pixel
Int32

The ARGB value of the color that you want to use.

Returns

0 indicates success; otherwise, failure.

Remarks

To convert an RGB color value to an ARGB value, use the Image::rgb Method.

Applies to