|
THotPDF.AddImageWithSMask
|
Topo Anterior Próxima |
|
Adiciona um Image XObject colorido junto com um Image XObject de soft mask PDF 1.4 (ISO 32000-1 8.9.5.4) de modo que a imagem resultante carregue transparência completa por pixel em vez do limite binário on/off do caminho legado de
Sintaxe 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;
Sintaxe 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);
Descrição Imagens SMask carregam um canal independente DeviceGray de 8 bits cuja luminosidade dirige o alfa da imagem colorida no momento da pintura (0 = totalmente transparente, 255 = totalmente opaco). O HotPDF emite ambos os planos como Image XObjects comprimidos com Flate, liga a entrada AddImageWithTransparency e AddImageWithTransparency32 são apelidos de nomenclatura para o mesmo fluxo de soft mask do PDF 1.4. Eles existem para pontos de chamada que pensam em termos de imagens transparentes em vez da terminologia de dicionários do PDF
AddImageWithSMask(Width, Height, RGB, Alpha) - - -
AddImageWithSMask32(Width, Height, Pixels) Sobrecarga de conveniência para entrada RGBA empacotada de 32 bits.
Return value: um índice em
Exemplo de código
See Also AddImage, THPDFPage.ShowImage, Version, PDF Filter Support
|