Skip to content

ComRender - cComStdPicture

Draws the specified portion of the picture contained in this cComStdPicture object

Type: Procedure

Parameters

Parameter Type Description
llhdc Integer Handle of device context on which to render the image
llx Integer Horizontal position of image in LLhdc
lly Integer Vertical position of image in LLhdc
llcx Integer Horizontal dimension of destination rectangle
llcy Integer Vertical dimension of destination rectangle
llxSrc OLE_XPOS_HIMETRIC Horizontal offset in source picture
llySrc OLE_YPOS_HIMETRIC Vertical offset in source picture
llcxSrc OLE_XSIZE_HIMETRIC Amount to copy horizontally in source picture
llcySrc OLE_YSIZE_HIMETRIC Amount to copy vertically in source picture
llprcWBounds Variant Pointer to position of destination for a metafile LLhdc

Syntax

Procedure ComRender Integer llhdc Integer llx Integer lly Integer llcx Integer llcy OLE_XPOS_HIMETRIC llxSrc OLE_YPOS_HIMETRIC llySrc OLE_XSIZE_HIMETRIC llcxSrc OLE_YSIZE_HIMETRIC llcySrc Variant llprcWBounds

Call Example

Send ComRender llhdc llx lly llcx llcy llxSrc llySrc llcxSrc llcySrc llprcWBounds

Description

The ComRender procedure draws the specified portion of the picture contained in this cComStdPicture object. The picture is drawn to the device context specified in LLhdc. The portion of the picture to be drawn is specified using the LLxSrc, LLySrc and LLcxSrc, LLcySrc parameters. The position and size to draw the picture in the destination device context is specified using the LLx, LLy and LLcx, LLcy parameters. The LLprcWBounds parameter is only used if LLhdc is a metafile device context, and in which case it should be a pointer to a rectangle containing the position of the destination within the metafile device context.