Unit 'agraphics' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#os4units]

WritePixel

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

Declaration

Source position: agraphics.pas line 2347

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: 2021-07-30