SetPixel


static unsigned SetPixel(Handle Device,
                         int X,
                         int Y,
                         unsigned ColorPixel)

This function draws a pixel and returns its previous color value.

Parameters

Handle Device

The handle of the device context.

int X

The x-coordinate of the pixel to be drawn.

int Y

The y-coordinate of the pixel to be drawn.

unsigned ColorPixel

The color in which to draw the pixel.

Return

unsigned

The previous color of the pixel.

Notes

The pixel must lie within the clipping region and be on the visible part of the device.

The function GetDeviceCapabilities with capability index Capability::Raster may be used to determine if this function is supported (see enumerator CapabilityRaster::BitBlock).

Details

Name Space IPlusPlus::Graphics
Class Gdi
Assembly IPlusPlus.WinPlus.dll