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

WriteLUTPixelArray

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

Declaration

Source position: cybergraphics.pas line 233

function WriteLUTPixelArray(

  srcRect: Pointer;

  SrcX: Word;

  SrcY: Word;

  SrcMod: Word;

  rp: PRastPort;

  CTable: Pointer;

  DestX: Word;

  DestY: Word;

  SizeX: Word;

  SizeY: Word;

  CTabFormat: Byte

):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

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