Thread: A great journey...
-
July 20th, 2010, 21:10 #11
ah, got it working now.
Is there a frame size limit? it seems to not want to take the full size of my frame and it crops the bottom partEverybody lies...
-Dr. Gregory House, HOUSE MD-
Urge to destroy world, rising...
-Black Mage, 8-Bit Theater-
-
July 20th, 2010, 23:18 #12
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,557
Are you talking the bitmap frames from the frame tag? If so, you will need to specify offsets in order to get your frame displaying the way you want, depending on how the framedef is defined.
Cheers,
JPG
-
July 20th, 2010, 23:28 #13<framedef name="my_charsheet">
<bitmap file="frames/charsheet_parchment.png" />
<topleft rect="0,0,60,60" />
<top rect="60,0,648,60" />
<topright rect="708,0,60,60" />
<left rect="0,60,60,887" />
<middle rect="60,60,648,887" />
<right rect="708,60,60,887" />
<bottomleft rect="0,947,60,60" />
<bottom rect="60,947,648,60" />
<bottomright rect="708,947,60,60" />
</framedef>Everybody lies...
-Dr. Gregory House, HOUSE MD-
Urge to destroy world, rising...
-Black Mage, 8-Bit Theater-
-
July 21st, 2010, 02:54 #14
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,557
The thing to remember with frames is that the corners will always be displayed, then the edges, then the center. If there is no remaining height/width after the corners/edges, then the center will not be displayed. For example, if you tried to use the frame you defined with a height or width of 120 or less, you would never see the center graphics.
The thing to double-check is the pixel counts on your image to make sure that 60 is the number you want for the corners/edges in all scenarios. It sounds like you may want a smaller number for the bottom edge.
Regards,
JPG
-
July 21st, 2010, 12:34 #15
I've attached a pdf version of the OpenOffice Calc spreadsheet to figure out the frame sizes.
The math adds up to be able to show the entire center using 60x60 corners but yet it doesn't. I'll try smaller corners but I don't want to get to close to the edge of the image due to the graphic (it has rough edges like old paper)Everybody lies...
-Dr. Gregory House, HOUSE MD-
Urge to destroy world, rising...
-Black Mage, 8-Bit Theater-
-
July 22nd, 2010, 22:24 #16
On the bottom sections, does it get the image from the bottom -> up or does it display it from where it left off on the other boxes?
Everybody lies...
-Dr. Gregory House, HOUSE MD-
Urge to destroy world, rising...
-Black Mage, 8-Bit Theater-
-
July 22nd, 2010, 23:54 #17
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,557
Consider each portion of the frame as a separate image (such as the bottom edge), where each image is defined as the section defined in the frame definition cut from the original image.
For your example, if your window is 200x200, then:
* Upper Left: 60x60 corner from topleft
* Upper Edge: 80x60 edge from top (using first 80 pixels horizontally from topleft of subimage)
* Upper Right: 60x60 corner from topright
* Left Edge: 60x80 edge from left (using first 80 pixels vertically from topleft of subimage)
* Right Edge: 60x80 edge from right (using first 80 pixels vertically from topleft of subimage)
* Bottom Left: 60x60 corner from bottomleft
* Bottom Edge: 80x60 edge from bottom (using first 80 pixels horizontally from topleft of subimage)
* Bottom Right: 60x60 corner from bottomright
The center will then be whatever is remaining. In this case, the center graphic will be used to fill whatever space is left. In this scenario, the space remaining will be an 80x80 square in the center of the window. The application will use the 80x80 topleft square of the center subimage to draw that area.
Hope that helps,
JPG
-
July 23rd, 2010, 00:44 #18
First, thanks for all the help so far, I'm getting there.
I've attached the image I'm working with. The size is 768 x 1007
I defined the frame with the following code:
Code:<framedef name="my_charsheet"> <bitmap file="frames/charsheet_parchment.png" /> <topleft rect="0,0,60,60" /> <top rect="60,0,648,60" /> <topright rect="708,0,60,60" /> <left rect="0,60,60,887" /> <middle rect="60,60,648,887" /> <right rect="708,60,60,887" /> <bottomleft rect="0,947,60,60" /> <bottom rect="60,947,648,60" /> <bottomright rect="708,947,60,60" /> </framedef>
Everybody lies...
-Dr. Gregory House, HOUSE MD-
Urge to destroy world, rising...
-Black Mage, 8-Bit Theater-
-
July 25th, 2010, 21:26 #19
defining a new frame with a new image...
why would the bottom show up on the top when I view the frame?
odd...Everybody lies...
-Dr. Gregory House, HOUSE MD-
Urge to destroy world, rising...
-Black Mage, 8-Bit Theater-
-
July 25th, 2010, 22:01 #20
oh, I figured out how to get the full image displayed on my other one. I had to add the minimum size properties to the windowclass
thanks for the helpEverybody lies...
-Dr. Gregory House, HOUSE MD-
Urge to destroy world, rising...
-Black Mage, 8-Bit Theater-
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks