|
THotPDF.AddImageWithSMask
|
トップへ 前へ 次へ |
|
カラー画像 XObject と PDF 1.4 のソフトマスク画像 XObject(ISO 32000-1 8.9.5.4)を一緒に追加します。結果の画像は、従来の
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;
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);
説明 SMask 画像は独立した 8 ビット DeviceGray チャンネルを持ち、その輝度が描画時にカラー画像のアルファを駆動します(0 = 完全に透明、255 = 完全に不透明)。HotPDF は両方のプレーンを Flate 圧縮の画像 XObject として出力し、カラー画像ディクショナリーの AddImageWithTransparency と AddImageWithTransparency32 は、同じ PDF 1.4 ソフトマスクワークフローの別名です。PDF のディクショナリー用語よりも透過画像という考え方で書かれた呼び出し側のために用意されています
AddImageWithSMask(Width, Height, RGB, Alpha) - - -
AddImageWithSMask32(Width, Height, Pixels) パックされた 32 ビット RGBA 入力向けの簡易オーバーロードです。
戻り値: AddImage が返すのと同じ
コード例
関連項目 AddImage, THPDFPage.ShowImage, Version, PDF フィルターサポート
|