GDI DrawLine

M

Michele Santucci

Re all,

I draw an user control where I draw a grid and then allow users to zoom and
pan and rotate it.
When I zoom-in I noticed that the line thickness grows also but I would like
to avoid that.
Is it possible?

Best Regards,
Mike
 
P

Peter Duniho

Michele said:
Re all,

I draw an user control where I draw a grid and then allow users to zoom
and pan and rotate it.
When I zoom-in I noticed that the line thickness grows also but I would
like to avoid that.
Is it possible?

Sure. You just have to scale the pen size inversely with the scaling
factor being used to draw.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top