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

BltTemplateAlpha

Alpha blends the current foreground colour into a rectangular area of an rastport

Declaration

Source position: cybergraphics.pas line 235

procedure BltTemplateAlpha(

  src: Pointer;

  srcx: LongInt;

  srcmod: LongInt;

  rp: PRastPort;

  destx: LongInt;

  desty: LongInt;

  width: LongInt;

  height: LongInt

);

Arguments

src

  

Pointer to an array of source alpha values.

srcx

  

byte/pixel offset of top-lefthand corner of alpha template.

srcmod

  

The number of bytes in each row of the source array.

rp

  

The RastPort to write to.

destx

  

Left corner of portion of destination RastPort to write to (in pixels)

desty

  

Top corner of portion of destination RastPort to write to (in pixels)

width

  

Width of the area to copy (in pixels)

height

  

Height of the area to copy (in pixels)

Description

Alpha blends the current foreground colour into a rectangular portion of a RastPort. The source alpha channel to use for each pixel is taken from an array of 8-bit alpha values. This alpha template may be any rectangle within a larger array/rectangle of alpha values.

The size and destination coordinates may be outside the RastPort boundaries, in which case the affected area is safely truncated.


Documentation generated on: 2021-07-30