IInkRenderer::DrawStroke method (msinkaut.h)
Draws the IInkStrokeDisp object using the known device context, and optionally draws the IInkStrokeDisp object with the known InkDrawingAttributes object.
Syntax
HRESULT DrawStroke(
[in] LONG_PTR hDC,
[in] IInkStrokeDisp *Stroke,
[in, optional] IInkDrawingAttributes *DrawingAttributes
);
Parameters
[in] hDC
The hWnd of the device context on which to draw.
[in] Stroke
The stroke to draw.
[in, optional] DrawingAttributes
Optional. Specifies the InkDrawingAttributes to use on the drawing. The default value is NULL. If InkDrawingAttributes is specified, they override the DrawingAttributes on the IInkStrokeDisp.
Return value
This method can return one of these values.
Return code | Description |
---|---|
|
Success. |
|
A parameter contained an invalid pointer. |
|
The strokes parameter is associated with a different InkDisp object. |
|
Invalid display handle. |
|
The stroke or the drawingAttributes parameter does not point to a valid object. |
|
An exception occurred inside the method. |
|
Unexpected parameter or property type. |
Remarks
The pen width is multiplied (or scaled) by the square root of the determinant of the view transform.
The InkRenderer forces the viewport and window origins to 0, 0. Any existing settings are saved and restored, but are not used by the InkRenderer. To perform scrolling, use the InkRenderer object's view and object transform methods.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP Tablet PC Edition [desktop apps only] |
Minimum supported server | None supported |
Target Platform | Windows |
Header | msinkaut.h |
Library | InkObj.dll |