SetPNGTransparencyColor

Image handling, Colour

Description

Sets the RGB colour to use as the transparency mask in PNG images that are generated by the rendering functions.

Syntax

Delphi

Function TPDFlib.SetPNGTransparencyColor(RedByte, GreenByte, BlueByte: Integer): Integer;

ActiveX

Function PDFlib::SetPNGTransparencyColor(RedByte As Long, GreenByte As Long, BlueByte As Long) As Long

DLL

int DLSetPNGTransparencyColor(int InstanceID, int RedByte, int GreenByte, int BlueByte);

Parameters

RedByteThe red component
GreenByteThe green component
BlueByteThe blue component

Return values

Returns 1. Each byte value is masked to the range 0 through 255