Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Percentage or Absolute Value? (Read 971 times)
alesdario
Junior Member
**
Offline



Posts: 71
Joined: Mar 7th, 2007
Percentage or Absolute Value?
Sep 17th, 2007 at 8:55am
Print Post  
Hi stoyan. Whene i set Box' shapetemplate i don't understand if value i set are absolute value or percentage...i post a code example:

Code
Select All
box.Resize(240,48);
ShapeTemplate newshape =  new ShapeTemplate(

ShapeTemplate.FromId("Rectangle").Outline,

null,

new ElementTemplate[]
               {

  new LineTemplate(20,0,100,0),

  new LineTemplate(100,0,100,100),

  new LineTemplate(100,100,20,100),

  new LineTemplate(20,100,20,0)

},

System.Drawing.Drawing2D.FillMode.Winding,   "test" );

newshape.ImageRectangle = new    System.Drawing.RectangleF(0,0,20,20); 



values of LineTemplate and values of RectangleF are percentage of box boundigs or are absolute value?

Tanks
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Percentage or Absolute Value?
Reply #1 - Sep 17th, 2007 at 10:14am
Print Post  
Hi Alesdario,

The template coordinates are specified in percent of the box bounding rectangle.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint