Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
NeilN  
#1 Posted : Monday, April 21, 2008 9:47:12 AM(UTC)
NeilN

Rank: Newbie

Groups: Member
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?

Alex Kon  
#2 Posted : Tuesday, April 22, 2008 5:23:39 PM(UTC)
Alex Kon

Rank: Advanced Member

Groups:
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)

Users browsing this topic
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.