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

WritePixelLine8

Write the pen number value of a horizontal line of pixels starting at a specified x,y location and continuing right for count pixels.

Declaration

Source position: agraphics.pas line 2178

function WritePixelLine8(

  Rp: PRastPort;

  xStart: LongWord;

  yStart: LongWord;

  Width: LongWord;

  Array_: PByte;

  TempRP: PRastPort

):LongInt;

Arguments

Rp

  

A pointer to a RastPort

xStart

  

X Start point

yStart

  

Line To write

Width

  

Count of horizontal pixels to write

Array_

  

pointer to an array of Bytes from which to fetch the pixel data allocate at least (((Width + 15) shr 4) shl 4) bytes.

TempRP

  

temporary rastport (copy of rp with Layer set = nil, temporary memory allocated for temprp^.BitMap with Rows set = 1, temprp^.BitMap BytesPerRow = (((Width + 15) shr 4) shl 1), and temporary memory allocated for temprp^.BitMap^.Planes[])

Function result

Count will be set to the number of pixels plotted

Description

For each pixel in a horizontal region, decode the pen number selector from a linear array of pen numbers into the bit-planes used to describe a particular rastport.

See also

WritePixel

  

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


Documentation generated on: 2017-01-10