AddImageWithTransparency

Image handling

תיאור

Selects an existing image and applies an RGB color-key transparency range in one call

תחביר

Delphi

Function TPDFlib.AddImageWithTransparency(ImageID: Integer; FromRed, FromGreen, FromBlue, ToRed, ToGreen, ToBlue: Double): Integer;

פרמטרים

ImageIDExisting image handle that receives the color-key mask
FromRedLower red value of the transparent color range
FromGreenLower green value of the transparent color range
FromBlueLower blue value of the transparent color range
ToRedהערך העליון של האדום בטווח הצבע השקוף
ToGreenהערך העליון של הרכיב הירוק בטווח הצבע השקוף
ToBlueהערך העליון של הכחול בטווח הצבע השקוף

ערכי החזרה

מחזיר ImageID בהצלחה, או 0 אם אין אפשרות לבחור את התמונה

הערות

This helper is equivalent to selecting the image and calling SetImageMask

ראו גם

SetImageMask, AddImageTransparentFromFile, AddImageWithMask