![]() |
Sourcerect for frames
I was wondering if any one has a slick trick with adobe photoshop or another programs to get the sourcerect for n,s,e,w,ne,nw,se,sw of frames?
I know you can double click on the sourcerect text in the UI builder and thats what I'm using now (nice little preview box opens) but it only shows the sourcerect for that part. I'd like to be able to see all of the sourcerects for that frame since they really work off each other. I'm basicly looking for something like the sliceing option in adobe Image Ready but it would give the sourcerect for each box instead of sliceing. |
I think I can, I think I can! Well.. Maybe.. :P
I have seen this and wish there was a way but the best answer I came up with was like this.
![]() So with that image your source rect would look something like.. 1st Column 100/150/140/175 for NW | Notice how the first and 3rd are the same? 100/175/140/205 for W | 2nd is the top edge and 4th is the bottom edge 100/205/140/230 for SW | of each row in the 1st column. 2nd Column 140/150/190/175 for N | 1st and 3rd are the 1st and 2nd edges in the 2nd 140/175/190/205 for C | column. 3rd and 4th are the top and bottom edge 140/205/190/230 for S | of each row in the 2nd column. 3rd Column 190/150/230/175 for NE | 1st and 3rd are the 1st and 2nd edges in the 3rd 190/175/230/205 for E | column. 3rd and 4th are the top and bottom edge 190/205/230/230 for SE | of each row in the 3rd column. If my math is correct and assumuming that the graphic's top left most corner started at 100 in and 150 down in the image file and had a total width of 130 pixels and a total hight of 80 pixels, then all the dimensions should be correct. These are just my thoughts but I think that I am thinking correctly. :p Sorak Hmm now that I think about it.. I should be able to wright a small app that if givin the the dimensions for the first column and row could spit out the dimensions needed for the rest... interesting in theory anyways lol |
| All times are GMT -5. The time now is 09:21 AM. |
vBulletin® - Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
© MMOUI