C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » Windows »

Drawing Gridlines over image


Posted Date: 20 Nov 2008      Posted By: JACOB MATHEW K      Member Level: Bronze     Points: 1   Responses: 1



Hi all ,

I need to draw measurment gird over an image.
I am using the following code to draw line. when i am zooming the image, grid lines get distorted.Any one worked on gridlines. Please help.

int gridSize = 10;

int x = gridSize;

int y = gridSize;

while (x < _image.Width)

{

g.DrawLine(Pens.Black, x, 0, x, _image.Height);

x += gridSize;

}

while (y < _image.Height)

{

g.DrawLine(Pens.Black, 0, y, _image.Width, y);

y += gridSize;

}


regards

Jacob







Responses

Author: Sravya    03 Dec 2008Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

Hi,

visit my blog for more resources..
www.codesnippetforyou.bogspot.com

thanks and regards



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : on click of send mail button i need to open mail message along with specifie emailid in to
Previous : Windows vista
Return to Discussion Forum
Post New Message
Category: Windows

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use