AddImageTransparentFromFile
Obrada slika
Opis
Adds an image from a file and immediately applies an RGB color-key transparency mask
Sintaksa
Delphi
Function TPDFlib.AddImageTransparentFromFile(Const FileName: WideString; FromRed, FromGreen, FromBlue, ToRed, ToGreen, ToBlue: Double; Options: Integer): Integer;
Parametri
| FileName | Image file to import |
|---|---|
| FromRed, FromGreen, FromBlue | Donja granica RGB color-key vrijednosti u rasponu od 0 do 1 |
| ToRed, ToGreen, ToBlue | Gornja granica RGB color-key vrijednosti u rasponu od 0 do 1 |
| Options | Image import options passed to AddImageFromFile |
Povratne vrijednosti
Vraća novi ImageID ili 0 ako uvoz slike ili dodjela maske ne uspije
Napomene
Pomagač drži novu sliku odabranom i izgradnju maske delegira na SetImageMask
Vidi također
AddImageTransparentFromStream, AddImageTransparentFromString, SetImageMask