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

FileNameImage file to import
FromRed, FromGreen, FromBlueΚάτω όριο RGB color-key στο εύρος 0 έως 1
ToRed, ToGreen, ToBlueΠάνω όριο RGB color-key στο εύρος 0 έως 1
OptionsImage 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