Stroke image offset

Question
Why does the stroke image seem to be in the wrong position in relation to the user area position?

Answer
If strokes are being rendered in the wrong position when using the renderer.draw method, it probably depends on the top, left corner of a user area not being 0, 0. The top, left corner of the user area is set to 0, 0 by using the following code snippet for an ImageRender object called 'render' and a PageArea object called 'area':

<span class="wysiwyg-font-size-small">render.ObjectTransform.Translate -area.Bounds.Left, -area.Bounds.Top</span>

The same problem occurs when rendering penStrokes using a page object. The top, left corner should be set to Anoto coordinate 0, 0 by using the following code snippet for an ImageRender object called 'render' and a Page object called 'page':

<span class="wysiwyg-font-size-small">render.ObjectTransform.Translate -page.Bounds.Left, -page.Bounds.Top</span>

Applies To
PC SDK

Keywords
renderering

Was this article useful? Thanks for the feedback There was a problem submitting your feedback. Please try again later.