AddImageTransparentFromFile

Image handling

תיאור

Adds an image from a file and immediately applies an RGB color-key transparency mask

תחביר

Delphi

Function TPDFlib.AddImageTransparentFromFile(Const FileName: WideString; FromRed, FromGreen, FromBlue, ToRed, ToGreen, ToBlue: Double; Options: Integer): Integer;

פרמטרים

FileNameImage file to import
FromRed, FromGreen, FromBlueLower RGB color-key bound in the 0 to 1 range
ToRed, ToGreen, ToBlueUpper RGB color-key bound in the 0 to 1 range
OptionsImage import options passed to AddImageFromFile

ערכי החזרה

מחזיר את ה-ImageID החדש, או 0 אם ייבוא התמונה או שיוך המסכה נכשלים

הערות

The helper keeps the new image selected and delegates mask construction to SetImageMask

ראו גם

AddImageTransparentFromStream, AddImageTransparentFromString, SetImageMask