Putpixel

From Free net encyclopedia

Common name for a subroutine that takes two dimensinal coordiantes (x and y) and a color value as parameters, and draws a pixel on the screen by putting the color value in the computer's video RAM.

Access to such routine, enables a computer user to display data graphically, which is important for intuition.

A typical putpixel calculation in the C programming language can look like this:

<math>(Y * height) + X * (bpp >> 3)</math>

Where height is the max Y value, and bpp is bits per pixel.

See also:

A method for drawing pixels using SDL.

Template:Compu-soft-stub