Sign in Join
FPDoc Onlineexperiment

TLazIntfImage.AlphaBlend procedure

Member of TLazIntfImagepublicIn unit IntfGraphics

Merges a source image with alpha blending.

Declaration

pascal
procedure AlphaBlend(ASource: TLazIntfImage; 
 ASourceAlpha: TLazIntfImage; const ADestX: Integer; 
 const ADestY: Integer)

Description

Merges an image to a canvas using alpha blending according to a separate image containing the alpha channel. White pixels in the alpha channel will correspond to the source image pixel being fully drawn, grey ones are merged and black ones ignored.

If ASourceAlpha is Nil then it will utilize the alpha channel from ASource.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.