|
THotPDF.AddImageWithSMask
|
Top Previous Next |
|
컬러 image XObject와 PDF 1.4 soft-mask image XObject(ISO 32000-1 8.9.5.4)를 함께 추가하여, 기존
Delphi syntax: 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++ syntax: 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);
Description SMask 이미지는 독립된 8비트 DeviceGray 채널을 가지며, 이 채널의 휘도가 그리는 시점에 컬러 이미지의 알파를 결정합니다(0 = 완전 투명, 255 = 완전 불투명). HotPDF는 두 plane을 모두 Flate 압축 image XObject로 기록하고, 컬러 이미지 dictionary의 AddImageWithTransparency와 AddImageWithTransparency32는 동일한 PDF 1.4 soft-mask 워크플로우를 가리키는 별칭입니다. PDF 딕셔너리 용어보다 투명 이미지라는 관점으로 코드를 작성하는 호출부를 위해 제공됩니다
AddImageWithSMask(Width, Height, RGB, Alpha) - - -
AddImageWithSMask32(Width, Height, Pixels) 32비트 RGBA 패킹 입력을 위한 편의 오버로드입니다.
반환 값:
Code Example
See Also AddImage, THPDFPage.ShowImage, Version, PDF Filter Support
|