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
|
| Author: Sravya 03 Dec 2008 | Member Level: Gold | Rating:  Points: 2 |
Hi,
visit my blog for more resources.. www.codesnippetforyou.bogspot.com
thanks and regards
|