Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Re: Issue of drawing image (Read 1577 times)
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Issue of drawing image
Jul 30th, 2015 at 9:09am
Print Post  
If you are custom-drawing the image, you will need to align it to device pixels to make it appear more crisp. Try using the Utilies.DrawImage method, which does that internally, or do something like this to get pixel coordinates for current measure unit:

Code
Select All
Point alignedPixelPos = view.DocToClient(graphics, new Point(imageX, imageY));
Point alignedDiagPos = view.ClientToDoc(graphics, alignedPixelPos);
// graphics.DrawImage(...alignedDiagPos...) 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint