 | PdfiumFFPDFBitmap_StretchTo Method |
Clone and stretch the bitmap.
Namespace: Patagames.PdfAssembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntaxpublic static IntPtr FFPDFBitmap_StretchTo(
IntPtr bitmap,
int width,
int height,
ImageInterpolation flags = ImageInterpolation.Default,
FX_RECT clip = null
)
Public Shared Function FFPDFBitmap_StretchTo (
bitmap As IntPtr,
width As Integer,
height As Integer,
Optional flags As ImageInterpolation = ImageInterpolation.Default,
Optional clip As FX_RECT = Nothing
) As IntPtr
public:
static IntPtr FFPDFBitmap_StretchTo(
IntPtr bitmap,
int width,
int height,
ImageInterpolation flags = ImageInterpolation::Default,
FX_RECT^ clip = nullptr
)
static member FFPDFBitmap_StretchTo :
bitmap : IntPtr *
width : int *
height : int *
?flags : ImageInterpolation *
?clip : FX_RECT
(* Defaults:
let _flags = defaultArg flags ImageInterpolation.Default
let _clip = defaultArg clip null
*)
-> IntPtr
public static IntPtr FFPDFBitmap_StretchTo(
IntPtr bitmap,
int width,
int height,
ImageInterpolation flags = ImageInterpolation.Default,
FX_RECT clip = null
)
Patagames.Pdf.Pdfium.FFPDFBitmap_StretchTo = function(bitmap, width, height, flags, clip);
Parameters
- bitmap IntPtr
- A handle to the device independent bitmap.
- width Int32
- The width, in pixels, of the resulting bitmap.
- height Int32
- The height, in pixels, of the resulting bitmap.
- flags ImageInterpolation (Optional)
- A flag indicating the interpolation mode.
- clip FX_RECT (Optional)
- Clipping area.
Return Value
IntPtrA bitmap descriptor containing copied pixels.
When an application is finished using the bitmap handle returned by
FFPDFBitmap_StretchTo(IntPtr, Int32, Int32, ImageInterpolation, FX_RECT),
use the
FPDFBitmap_Destroy(IntPtr) function to close the handle.
See Also