| View previous topic :: View next topic |
| Author |
Message |
dbear

Joined: 02 Jul 2008 Posts: 25 Location: Caliphonya
|
Posted: Fri Sep 14, 2012 8:30 pm Post subject: percent_rectangle, pixel_rectangle?? |
|
|
Can someone explain in really simple terms how percent_rectangle and pixel_rectangle work?
I think I get that pixel_rectangle is simply offsets from Left, Right, Top and Bottom. But that's somehow monitored by percent_rectangle? Just what does percent_rectangle limit?
Thanx for any input.
|
|
|
| Back to top |
|
 |
DimPal
Joined: 03 Jul 2008 Posts: 12
|
Posted: Mon Sep 24, 2012 11:12 am Post subject: |
|
|
The final rect is result of arithmetical sum of two components: percent_rectangle + pixel_rectangle.
For pixel_rectangle, when percent_rectangle set to {0,0,0,0}: coord (0, 0) is left-top corner; coord(pix-with, pix-height) is right-bottom corner
For percent_rectangle, when pixel_rectangle set to {0,0,0,0}: coord (0, 0) is left-top corner; coord(100, 100) is right-bottom corner
As example I can show how to define rect 5 pixel inside cotracted:
percent_rectangle {x=0, y=0, x2=100, y2=100}
pixel_rectangle {x=5, y=5, x2=-5, y2=-5}
P.S.: read the manual please http://www.astonshell.com/aston2/skinningtutorial/object_attributes.htm
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|