GlyphImageMask
字型、Type 3 字型、影像處理
描述
把位於指定字形空間矩形的 1 位元鏤空影像遮罩(BI /IM true ... EI)附加到作用中的 Type 3 字形程式
語法
Delphi
Function GlyphImageMask(X, Y, Width, Height: Double; MaskWidth, MaskHeight: Integer; Const MaskData: WideString): Integer;ActiveX
Function PDFlib::GlyphImageMask(X As Double, Y As Double, Width As Double, Height As Double, MaskWidth As Long, MaskHeight As Long, MaskData As String) As LongDLL
int DLGlyphImageMask(int InstanceID, double X, double Y, double Width, double Height, int MaskWidth, int MaskHeight, const wchar_t* MaskData);
int DLGlyphImageMaskA(int InstanceID, double X, double Y, double Width, double Height, int MaskWidth, int MaskHeight, const char* MaskData);參數
| X, Y | 遮罩在字形空間中的左下原點 |
|---|---|
| Width, Height | 遮罩在字形空間中的寬與高 |
| MaskWidth, MaskHeight | 1 位元遮罩的取樣尺寸(1 到 4096) |
| MaskData | 1 位元遮罩樣本,以十六進位字串、0/1 位元字串,或按列填充的緊湊位元組字元提供 |
傳回值
| 成功附加時為 1,沒有開啟的字形或尺寸/遮罩承載無效時為 0 |
備註
僅在 BeginGlyph 與 EndGlyph 之間有效;遮罩以 /F /AHx 編碼進字形的 CharProc 串流