See Also Examples Applies To
Draws a portion of an image into the native image.
Syntax
object.DrawImageRect (nimageID, nDstX, nDstY, nDstWidth, nDstHeight, nSrcX, nSrcY, nSrcWidth, nSrcHeight, nInterpolationMode)
The DrawImageRect syntax has these parts:
| Part | Description |
| object | Required. An object expression that evaluates to an object in the Applies To list. |
| nimageID | Required. Long. GDI+ bitmap handle. Image ID of the image to draw into the native image. |
| nDstX | Required. Long. Left pixel destination of the native image. |
| nDstY | Required. Long. Top pixel destination of the native image. |
| nDstWidth | Required. Long. Width of the drawed image. |
| nDstHeight | Required. Long. Height 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. |
| nInterpolationMode | Optional. Long InterpolationMode. Default value is 5 (InterpolationMode.InterpolationModeNearestNeighbor). |
Returns
Remarks
The ImagingStatus constants are defined HERE
Category
Draw (Images)