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;

פרמטרים

InStreamImage stream 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 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