Starfinder Playlist
Page 2 of 2 First 12
  1. #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 part
    Everybody lies...
    -Dr. Gregory House, HOUSE MD-

    Urge to destroy world, rising...
    -Black Mage, 8-Bit Theater-

  2. #12
    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

  3. #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>
    The image is 768 x 1007, the width of the image is working fine, but the height seems like it took the bottom of the image and pushed it up, over lapping some of the bottom-middle section.
    Everybody lies...
    -Dr. Gregory House, HOUSE MD-

    Urge to destroy world, rising...
    -Black Mage, 8-Bit Theater-

  4. #14
    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

  5. #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-

  6. #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-

  7. #17
    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

  8. #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>
    The edge of the image is perfect, but its not going the full height which is causing an overlap at the bottom. I've tried increasing the frame def to go over the actual size and it still doesn't get any longer.
    Everybody lies...
    -Dr. Gregory House, HOUSE MD-

    Urge to destroy world, rising...
    -Black Mage, 8-Bit Theater-

  9. #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-

  10. #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 help
    Everybody 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
STAR TREK 2d20

Log in

Log in