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;
פרמטרים
| FileName | Image file to import |
|---|---|
| FromRed, FromGreen, FromBlue | Lower RGB color-key bound in the 0 to 1 range |
| ToRed, ToGreen, ToBlue | Upper RGB color-key bound in the 0 to 1 range |
| Options | Image import options passed to AddImageFromFile |
ערכי החזרה
מחזיר את ה-ImageID החדש, או 0 אם ייבוא התמונה או שיוך המסכה נכשלים
הערות
The helper keeps the new image selected and delegates mask construction to SetImageMask
ראו גם
AddImageTransparentFromStream, AddImageTransparentFromString, SetImageMask