|
THotPDF.AddImageWithSMask
|
Top Previous Next |
|
Aggiunge un Image XObject a colori insieme a un soft-mask image XObject PDF 1.4 (ISO 32000-1 8.9.5.4) così l'immagine risultante porta trasparenza completa per pixel invece del limite binario on/off del
Sintassi Delphi: function AddImageWithSMask(Width, Height: Integer; const RGB: del campo di Byte; const Alfa: del campo di Byte): Integer; function AddImageWithTransparency(Width, Height: Integer; const RGB: del campo di Byte; const Alfa: del campo di Byte): Integer; function AddImageWithSMask32(Width, Height: Integer; const Pixel: del campo di Byte): Integer; function AddImageWithTransparency32(Width, Height: Integer; const Pixel: del campo di Byte): Integer;
Sintassi C++: int AddImageWithSMask(int Width, int Height, const TBytes& RGB, const TBytes& Alpha); int AddImageWithTransparency(int Width, int Height, const TBytes& RGB, const TBytes& Alpha); int AddImageWithSMask32(int Width, int Height, const TBytes& Pixels); int AddImageWithTransparency32(int Width, int Height, const TBytes& Pixels);
Descrizione Le immagini SMask portano un canale DeviceGray a 8 bit indipendente la cui luminosità pilota l'alfa dell'immagine a colori al momento della pittura (0 = completamente trasparente, 255 = completamente opaco). HotPDF emette entrambi i piani come Image XObject compressi Flate, collega il AddImageWithTransparency e AddImageWithTransparency32 sono alias di denominazione dello stesso flusso di soft mask PDF 1.4. Sono forniti per i siti di chiamata che ragionano in termini di immagini trasparenti invece che di terminologia dei dizionari PDF
AddImageWithSMask(Width, Height, RGB, Alpha) - - -
AddImageWithSMask32(Width, Height, Pixels) Overload di comodo per input RGBA compresso a 32 bit.
Valore restituito: un indice in
Esempio di codice
Vedi anche: AddImage, THPDFPage.ShowImage, Version, Supporto dei filtri PDF
|