 | PdfiumFPDFBitmap_CompositeMask Method |
Composites specified bitmap and mask.
Namespace: Patagames.PdfAssembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntaxpublic static bool FPDFBitmap_CompositeMask(
IntPtr bitmap,
int dest_left,
int dest_top,
int width,
int height,
IntPtr pMaskBitmap,
uint color,
int src_left,
int src_top,
BlendTypes blend_type = BlendTypes.FXDIB_BLEND_NORMAL,
FX_RECT pClipRgn = null,
bool bRgbByteOrder = false,
int alpha_flag = 0
)
Public Shared Function FPDFBitmap_CompositeMask (
bitmap As IntPtr,
dest_left As Integer,
dest_top As Integer,
width As Integer,
height As Integer,
pMaskBitmap As IntPtr,
color As UInteger,
src_left As Integer,
src_top As Integer,
Optional blend_type As BlendTypes = BlendTypes.FXDIB_BLEND_NORMAL,
Optional pClipRgn As FX_RECT = Nothing,
Optional bRgbByteOrder As Boolean = false,
Optional alpha_flag As Integer = 0
) As Boolean
public:
static bool FPDFBitmap_CompositeMask(
IntPtr bitmap,
int dest_left,
int dest_top,
int width,
int height,
IntPtr pMaskBitmap,
unsigned int color,
int src_left,
int src_top,
BlendTypes blend_type = BlendTypes::FXDIB_BLEND_NORMAL,
FX_RECT^ pClipRgn = nullptr,
bool bRgbByteOrder = false,
int alpha_flag = 0
)
static member FPDFBitmap_CompositeMask :
bitmap : IntPtr *
dest_left : int *
dest_top : int *
width : int *
height : int *
pMaskBitmap : IntPtr *
color : uint32 *
src_left : int *
src_top : int *
?blend_type : BlendTypes *
?pClipRgn : FX_RECT *
?bRgbByteOrder : bool *
?alpha_flag : int
(* Defaults:
let _blend_type = defaultArg blend_type BlendTypes.FXDIB_BLEND_NORMAL
let _pClipRgn = defaultArg pClipRgn null
let _bRgbByteOrder = defaultArg bRgbByteOrder false
let _alpha_flag = defaultArg alpha_flag 0
*)
-> bool
public static boolean FPDFBitmap_CompositeMask(
IntPtr bitmap,
int dest_left,
int dest_top,
int width,
int height,
IntPtr pMaskBitmap,
UInt32 color,
int src_left,
int src_top,
BlendTypes blend_type = BlendTypes.FXDIB_BLEND_NORMAL,
FX_RECT pClipRgn = null,
boolean bRgbByteOrder = false,
int alpha_flag = 0
)
Patagames.Pdf.Pdfium.FPDFBitmap_CompositeMask = function(bitmap, dest_left, dest_top, width, height, pMaskBitmap, color, src_left, src_top, blend_type, pClipRgn, bRgbByteOrder, alpha_flag);
Parameters
- bitmap IntPtr
- A handle to the destination device independent bitmap.
- dest_left Int32
- The left point in the destination bitmap
- dest_top Int32
- The top point in the destination bitmap
- width Int32
- The width
- height Int32
- The height
- pMaskBitmap IntPtr
- A handle to the device independent bitmap, that represents transparency mask.
- color UInt32
- Mask color
- src_left Int32
- The left point in the source bitmap
- src_top Int32
- The top point in the source bitmap
- blend_type BlendTypes (Optional)
- The BlendTypes controls blending by specifying the blending type for source and destination bitmaps.
- pClipRgn FX_RECT (Optional)
- Clipping region
- bRgbByteOrder Boolean (Optional)
- Byte order
- alpha_flag Int32 (Optional)
- alpha flag
Return Value
BooleanTRUE if succeed, FALSE if failed.
See Also