Forums

Welcome Guest Search | Active Topics | Members

Can't get pixel coordinates from VObject Points Options
NeilN
Posted: Monday, April 21, 2008 5:47:12 PM
Rank: Newbie
Groups: Member

Joined: 2/12/2008
Posts: 5
Points: 15
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
Posted: Wednesday, April 23, 2008 1:23:39 AM
Rank: Advanced Member
Groups: Administration , Member

Joined: 1/31/2005
Posts: 386
Points: 403
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)


Best wishes, Alex.
Users browsing this topic
Guest


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.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Yet Another Forum.net version 1.9.1.6 running under Cuyahoga.
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.