ImageGear Professional v18.2 > API Reference Guide > Display Component API Reference > Display Component Objects > IGPageDisplay Object > IGPageDisplay Methods > CalculateParams Method |
Calculates DisplayedImageRect, which is the exact rectangle in which the image is to be scaled. All options for drawing the image are taken from the dwGrpID group. This function does not perform any drawing, whether hDC is NULL or not.
CalculateParams(hWnd As Long, hDC As Long, Rectangle As
IGRectangle)
Name | Description |
---|---|
hWnd | Handle of window where image is to be displayed. Can be NULL, but in this case some display options may be calculated incorrectly if they are not set explicitly. |
hDC | Handle of the device context where image is to be drawn. |
Rectangle | The rectangle object which is DisplayedImageRect. This rectangle is calculated no matter whether hDC=NULL or not. If NULL, then this parameter is ignored. |
None
All
None.