AddImageTransparentFromStream
Image handling
תיאור
Adds an image from a stream and immediately applies an RGB color-key transparency mask
תחביר
Delphi
Function TPDFlib.AddImageTransparentFromStream(InStream: TStream; FromRed, FromGreen, FromBlue, ToRed, ToGreen, ToBlue: Double; Options: Integer): Integer;
פרמטרים
| InStream | Image stream 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 AddImageFromStream |
ערכי החזרה
מחזיר את ה-ImageID החדש, או 0 אם ייבוא התמונה או שיוך המסכה נכשלים
הערות
Use this entry when image bytes are already available as a stream and a color-key mask should be assigned in one call
ראו גם
AddImageTransparentFromFile, AddImageTransparentFromString, SetImageMask