Group: GDI+ Graphics - Library: gdiplus
GpStatus WINGDIPAPI GdipDrawImageI(
GpGraphics *graphics,
GpImage *image,
INT x,
INT y
)
DECLARE INTEGER GdipDrawImageI IN gdiplus;
INTEGER graphics,;
INTEGER img,;
INTEGER x,;
INTEGER y
graphics [in] Pointer to a Graphics object.
image [in] Pointer to an Image object that specifies the image to be drawn.
x [in] Integer that specifies the x-coordinate of the upper-left corner of the rendered image.
y [in] Integer that specifies the y-coordinate of the upper-left corner of the rendered image.
If succeeds, it returns Ok, which is an element of the Status enumeration.
This function can be used for cropping images: