Unit 'CYBERGRAPHICS' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#amunits]

WriteLUTPixelArray

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

Declaration

Source position: cybergraphics.pas line 240

function WriteLUTPixelArray(

  srcRect: POINTER;

  SrcX: Word;

  SrcY: Word;

  SrcMod: Word;

  a1arg: pRastPort;

  ColorTab: POINTER;

  DestX: Word;

  DestY: Word;

  SizeX: Word;

  SizeY: Word;

  CTFormat: Byte

):LongWord;

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.

a1arg

  

Pointer to a RastPort structure

ColorTab

  

pointer to the color table using the format specified with CTabFormat

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

CTFormat

  

color table format in the source rectangle Currently supported formats are: CTABFMT_XRGB8

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