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

WriteLUTPixelArray

write the color value generated from a given color table (V41)

Declaration

Source position: cybergraphics.pas line 185

function WriteLUTPixelArray(

  SrcRect: Pointer;

  SrcX: LongInt;

  SrcY: LongInt;

  SrcMod: LongWord;

  Rp: PRastPort;

  CTable: Pointer;

  DestX: LongInt;

  DestY: LongInt;

  SizeX: LongWord;

  SizeY: LongWord;

  CTabFormat: LongWord

):LongInt;

Arguments

SrcRect

  

Pointer to an array of pixels from which to fetch the CLUT data. Pixels are specified in bytes, 8bits/pixel

SrcX

  

X starting point in the source rectangle

SrcY

  

Y starting point in the source rectangle

SrcMod

  

The number of bytes per row in the source rectangle.

DestX

  

X starting point in the RastPort

DestY

  

Y starting point in the RastPort

SizeX

  

Width of the rectangle that should be transfered

SizeY

  

Height of the rectangle that should be transfered

Function result

number of pixels plotted

Description

write the color value generated from a given color table of a rectangular array of pixels starting at a specified x,y location and continuing through to another x,y location within a certain RastPort

For each pixel in a rectangular region, write the color value generated with a given color lookup table from a linear array of indexed pixel values into the bitmap used to describe a particular rastport.

Attention

Does only work on rastports with depth > 8bits

Errors

The count value returned is totally wrong.

With cgxsystem.library up to version 41.19, the call returns immediately with CTABFMT_XRGB8 due to a bug in the code

See also

ReadPixelArray

  

Read the color values of a rectangular array

WritePixelArray

  

write the color value of a rectangular array

WritePixelArray8

  

Write the pen number value of a rectangular array of pixels starting at a specified x,y location and continuing through to another x,y location within a certain RastPort.


Documentation generated on: 2021-07-30