Change the pen num of one specific pixel in a specified RastPort.
Source position: agraphics.pas line 2411
function WritePixel( |
rp: pRastPort; |
x: LongInt; |
y: LongInt |
):LongInt; |
rp |
|
A pointer to a RastPort |
x |
|
X coordinate of Pixel |
y |
|
Y coordinate of Pixel |
0 if pixel succesfully changed = -1 if (x,y) is outside the RastPort
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.
|
read the pen number value of the pixel at a specified x,y location within a certain RastPort. |