TypeLib Xojo support Plugin |

# RawBitmap.Pixel Method

Sets or gets the color of a pixel in the RawBitmap.

Pixel(
x as Integer,
y as Integer) as Color
Pixel(
x as Integer,
y as Integer
assigns value as Color)

#### Parameters

x
  The x coordinate to set or get (zero based)
y
  The y coordinate to set or get (zero based)
value (assignment parameter)
  The color value to set at the given location.

#### Returns

Color
  The color value at the requested location

#### Remarks

Note that x and y are not bounds checked for performance reasons so if you go out of bounds then you will get a crash.
Note even if this class has the 4 drawing methods then it is not a Graphics context and never will be. The 4 drawing commands are more of to help make debugging easier.
When used with color space CMYK then the fill color is no longer RGB but CMYK, and is passed in like &cFFFFFFFF, where first 2 hex letters are C, 2nd 2 are M, next pair is Y and last pair is Key.
This method does nothing on 16bit per channel bitmaps.

#### See Also

RawBitmap Class