Sfairadora

  • Reference Guide

draw_pixel_pal

var_bmp <- draw_pixel_pal(x, y, color)
The var_bmp parameter is an l-value referring to a variable of the type Bitmap. The function sets the color of a single pixel in the bitmap. The color is specified as an index to the palette for paletted images or as a gray intensity for monochrome images. If the bitmap has no palette or is not monochrome, an error is returned.

Parameters

var_bmp
An l-value of the type Bitmap to which the function draws.
x, y
The coordinates of the pixel.
color
The palette index or the intensity to be set to the pixel (the type Int).

Return Value

The return value is an l-value referring to the modified bitmap.