ImageGear Professional for Windows ActiveX
CalculateParams Method

Description:

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.

Syntax:

      CalculateParams(hWnd As Long, hDC As Long, Rectangle As
IGRectangle)

Parameters:

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.

Return Value:

None

Bits Per Pixel:

All

Sample:

None.

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback