|
THotPDF.AddImageWithSMask
|
Top Previous Next |
|
Añade un XObject de imagen en color junto con un XObject de imagen de máscara suave PDF 1.4 (ISO 32000-1 8.9.5.4), de modo que la imagen resultante lleve transparencia completa por píxel en lugar del límite binario on/off de la ruta legada
Sintaxis Delphi: function AddImageWithSMask(Width, Height: Integer; const RGB: array of Byte; const Alpha: array of Byte): Integer; function AddImageWithTransparency(Width, Height: Integer; const RGB: array of Byte; const Alpha: array of Byte): Integer; function AddImageWithSMask32(Width, Height: Integer; const Pixels: array of Byte): Integer; function AddImageWithTransparency32(Width, Height: Integer; const Pixels: array of Byte): Integer;
Sintaxis 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);
Descripción Las imágenes SMask llevan un canal DeviceGray independiente de 8 bits cuya luminosidad gobierna el alfa de la imagen en color en el momento de pintar (0 = totalmente transparente, 255 = totalmente opaco). HotPDF emite ambos planos como XObjects de imagen comprimidos con Flate, conecta la entrada AddImageWithTransparency y AddImageWithTransparency32 son alias de denominación para el mismo flujo de máscara suave PDF 1.4. Se ofrecen para los puntos de llamada que razonan en términos de imágenes transparentes en vez de la terminología de diccionarios PDF
AddImageWithSMask(Width, Height, RGB, Alpha) - - -
AddImageWithSMask32(Width, Height, Pixels) Sobrecarga de conveniencia para entrada RGBA de 32 bits empaquetada.
Valor de retorno: un índice de
Code Example
Véase también AddImage, THPDFPage.ShowImage, Version, PDF Filter Support
|