[Overview][Constants][Types][Procedures and functions][Variables][Index] Reference for unit 'agraphics' (#aros)

WritePixel

Change the pen num of one specific pixel in a specified RastPort.

Declaration

Source position: agraphics.pas line 2108

function WritePixel(

  Rp: PRastPort;

  x: LongInt;

  y: LongInt

):LongInt;

Arguments

Rp

  

A pointer to a RastPort

x

  

X coordinate of Pixel

y

  

Y coordinate of Pixel

Function result

0 if pixel succesfully changed = -1 if (x,y) is outside the RastPort

Description

Changes the pen number of the selected pixel in the specified RastPort to that currently specified by PenA, the primary drawing pen. Obeys minterms in RastPort.

See also

ReadPixel

  

read the pen number value of the pixel at a specified x,y location within a certain RastPort.


Documentation generated on: 2017-01-10