This function resizes the image referenced by hIGear without scaling it.
Copy Code
|
|
---|---|
AT_ERRCOUNT LACCUAPI IG_IP_resize_canvas( HIGEAR hIGear, AT_DIMENSION new_width, AT_DIMENSION new_height, AT_PIXPOS nXPos, AT_PIXPOS nYPos, LPAT_PIXEL lpBkgColor ); |
Name | Type | Description |
---|---|---|
hIGear | HIGEAR | Image to process. |
new_width | AT_DIMENSION | Width of the image after resizing. |
new_height | AT_DIMENSION | Height of the image after resizing. |
nXPos | AT_PIXPOS | X offset at which to put left top corner of the image after resizing. |
nYPos | AT_PIXPOS | Y offset at which to put left top corner of the image after resizing. |
lpBkgColor | LPAT_PIXEL | Color to fill the empty area. Ignored for vector images. |
All pixel formats supported by ImageGear for C and C++.
See GUI component source code.
The image data in the bitmap is not stretched or compressed, but copied to the specified offset in the new image.