Aurigma Forums
»
Graphics Mill
»
Discussions – Graphics Mill
»
Can't get pixel coordinates from VObject Points
Rank: Newbie
Groups: Guest
Joined: 2/12/2008(UTC) Posts: 5
|
In my code I am doing this to extract the point data from a vector object: Code:
for (int i = 0; i < myOutlineVObject.Points.Length; i++)
{
// this data gets saved to disk:
float x = myOutlineVObject.Points[i].X;
float y = myOutlineVObject.Points[i].Y;
}
However the points do not come up as pixel coordinates. Even though I have the MultiLayerViewer control set to Unit.Pixel from the very beginning. What am I missing here?
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 1/31/2005(UTC) Posts: 458
Was thanked: 5 time(s) in 5 post(s)
|
Hello, Unit.Pixel property doesn't affect on coordinates of the VObjects, they are always measured in points. So you should convert them into pixels by yourself (in most cases it will be: points * 96 / 72 = pixels) |
|
|
|
|
Aurigma Forums
»
Graphics Mill
»
Discussions – Graphics Mill
»
Can't get pixel coordinates from VObject Points
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.