Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 4047

How to draw a GraphicsPath with offsets?

$
0
0

Hi,

I need to draw a GraphicsPath (a polygon made with several appended lines), and the view may be scrolled (in other words, the polygon may be drawn at a different location).

My first attempt was to try with GraphicsPath.MoveToPoint OffsetX,OffsetY, but that doesn’t have any effect. I also tried GraphicsPath.Bounds.Offset OffsetX,OffsetY with the same result.
Since there doesn’t appear to have a way to retrieve the path’s components, I can’t loop thru them to change their location either. It looks like the only way is to re-create the shape every single time the user scrolls, which doesn’t sound practical to me.

Am I missing an existing solution?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4047

Trending Articles