Image coordinate system
Posted: Tue Feb 28, 2012 4:44 am
I'm wondering if someone can help explain this issue I'm having:
1. Create an image and draw a series of rectangles
- create image
- choose rect tool
- drag from 100,100 to 150,120
- etc...
2. Create a field and give it the same dimensions as the rectangle above
- set the rect of field "f1" to 100,100,150,120
- etc...
I'm finding that I don't get a perfect overlap between the rectangles and fields. Some are off by 1 or 2 pixels, some on the right, some on the bottom - but it's not consistent.
I'm building an app where I want to overlay fields on the image but I'm not getting perfect alignment. I've attached a small screenshot. Any ideas?
Thanks in advance!
Ritch
1. Create an image and draw a series of rectangles
- create image
- choose rect tool
- drag from 100,100 to 150,120
- etc...
2. Create a field and give it the same dimensions as the rectangle above
- set the rect of field "f1" to 100,100,150,120
- etc...
I'm finding that I don't get a perfect overlap between the rectangles and fields. Some are off by 1 or 2 pixels, some on the right, some on the bottom - but it's not consistent.
I'm building an app where I want to overlay fields on the image but I'm not getting perfect alignment. I've attached a small screenshot. Any ideas?
Thanks in advance!
Ritch