This structure is used by the IG_gui_ip_resize_dlg function to change the dimensions of the image.
Declaration:
|
Copy Code |
typedef struct tag AT_IGGUI_IP_RESIZE
{
DWORD cbSize;
UINT uFlags;
HIGEAR hIGear;
HWND hWnd;
LPCHAR lpszTitle;
AT_DIMENSION nNewWidth;
AT_DIMENSION nNewHeight;
AT_MODE nInterpMethod;
LPAT_PIXEL lpBkgndColor;
BOOL bFixed;
BOOL bPercentage;
AT_ERRCOUNT nErrCount;
LPFNIGGUI_IP_UPDATE lpfnUpdateProc;
}AT_IGGUI_IP_RESIZE;
|
Members:
Name |
Type |
Description |
cbSize |
DWORD |
Specifies the length, in bytes, of the structure. |
uFlags |
UINT |
A set of bit flags you can use to initialize the dialog box. |
hIGear |
HIGEAR |
A handle of an image. |
hWnd |
HWND |
A handle of the window to update. |
lpszTitle |
LPCHAR |
A dialog title. |
nNewWidth |
AT_DIMENSION |
A width that the image is to be after resize. |
nNewHeight |
AT_DIMENSION |
A height that the image is to be after resize. |
nInterpMethod |
AT_MODE |
IG_INTERPOLATION_NONE, or the interpolation method to use to compute the new pixel values for the resized image. The IG_INTERPOLATION_ constants are listed in file accucnst.h. |
lpBkgndColor |
AT_PIXEL |
A far pointer to the RGB or pixel value that specifies the background color to be used in the displaced areas after the image has been resized using the resize with padding method. |
bFixed |
BOOL |
Use proportional resize. |
bPercentage |
BOOL |
Use percentage instead of pixels. |
nErrCount |
AT_ERRCOUNT |
The number of ImageGear errors that occurred during this function call. |
lpfnUpdateProc |
LPFNIGGUI_IP_UPDATE |
A pointer to the function that is called when the 'Apply' button is clicked. |