 |
GdipDrawImageI ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
Draws an image at a specified location. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
GpStatus WINGDIPAPI GdipDrawImageI(
GpGraphics *graphics,
GpImage *image,
INT x,
INT y
)
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER GdipDrawImageI IN gdiplus;
INTEGER graphics,;
INTEGER img,;
INTEGER x,;
INTEGER y
|
 |
 |
 |
| Parameters: |
 |
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. |
 |
 |
| Return value: |
 |
| If succeeds, it returns Ok, which is an element of the Status enumeration. |
 |
 |
| My comment: |
 |
This function can be used for cropping images:
load a source image
create a blank image the size of the valid part of the source image
use negative x and y offsets to draw the source image on the target image |
 |
 |
| Word Index links for the GdipDrawImageI : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2004-07-08 11:01:19 | | Modified: | 2006-05-17 11:25:11 | Visited in last 7 days: 19 |