AddImageTransparentFromStream
影像處理
描述
從串流加入影像,並立即套用 RGB 色鍵透明遮罩
語法
Delphi
Function TPDFlib.AddImageTransparentFromStream(InStream: TStream; FromRed, FromGreen, FromBlue, ToRed, ToGreen, ToBlue: Double; Options: Integer): Integer;
參數
| InStream | Image stream to import |
|---|---|
| FromRed, FromGreen, FromBlue | RGB 色鍵下界,0 到 1 範圍 |
| ToRed, ToGreen, ToBlue | RGB 色鍵上界,0 到 1 範圍 |
| Options | 傳給 AddImageFromStream 的影像匯入選項 |
傳回值
傳回新的 ImageID;影像匯入或遮罩指派失敗時傳回 0
備註
影像位元組已以串流形式備妥、且要一次呼叫就指派色鍵遮罩時,請用此進入點
另見
AddImageTransparentFromFile, AddImageTransparentFromString, SetImageMask