DisplayImageRectOnHwnd Method

See Also     Examples     Applies To

Displays a portion of the native image into a window defined by a Win32 Window Handle.

Syntax

object.DisplayImageRectOnHwnd (nHWND, nDstX, nDstY, nDstWidth, nDstHeight, nSrcX, nSrcY, nSrcWidth, nSrcHeight, nSmoothingMode, nInterpolationMode)

The DisplayImageRectOnHwnd syntax has these parts:

Part Description
object Required. An object expression that evaluates to an object in the Applies To list.
nHWND Required. Long. A Win32 Window Handle.
nDstX Required. Long. Left pixel destination of the window.
nDstY Required. Long. Top pixel destination of the window.
nDstWidth Required. Long. Width in pixel of the drawed image.
nDstHeight Required. Long. Height in pixel of the drawed image.
nSrcX Required. Long. Left pixel source of the image to draw.
nSrcY Required. Long. Top pixel source of the image to draw.
nSrcWidth Required. Long. Width portion in pixel of the image to draw.
nSrcHeight Required. Long. Height portion in pixel of the image to draw.
nSmoothingMode Optional. Long SmoothingMode. Default value is 3 (SmoothingModeNone).
nInterpolationMode Optional. Long InterpolationMode. Default value is 0 (InterpolationModeDefault).

Returns

GdTwainStatus

Remarks

The GdTwainStatus constants are defined HERE

Category

Display an image





© Copyright 2007 GdPicture All rights reserved.
Documentation MAP.