AddImageTransparentFromFile
Image handling
Περιγραφή
Προσθέτει εικόνα από αρχείο και εφαρμόζει αμέσως mask διαφάνειας RGB color-key
Syntax
Delphi
Function TPDFlib.AddImageTransparentFromFile(Const FileName: WideString; FromRed, FromGreen, FromBlue, ToRed, ToGreen, ToBlue: Double; Options: Integer): Integer;
Parameters
| FileName | Image file to import |
|---|---|
| FromRed, FromGreen, FromBlue | Κάτω όριο RGB color-key στο εύρος 0 έως 1 |
| ToRed, ToGreen, ToBlue | Πάνω όριο RGB color-key στο εύρος 0 έως 1 |
| Options | Image import options passed to AddImageFromFile |
Τιμές επιστροφής
Επιστρέφει το νέο ImageID ή 0 αν αποτύχει η εισαγωγή εικόνας ή η ανάθεση mask
Remarks
The helper keeps the new image selected and delegates mask construction to SetImageMask
Δείτε επίσης
AddImageTransparentFromStream, AddImageTransparentFromString, SetImageMask