Weird debug bitmap problem

About Monkey 2 Forums Monkey 2 Development Weird debug bitmap problem

This topic contains 4 replies, has 2 voices, and was last updated by  AdamStrange 2 years, 9 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1974

    AdamStrange
    Participant

    ok, the buttons for debug were a bit small, so I made them larger in photoshop – nice normal transparent png.

    after banging my head about the resources not being found, I worked out how to do it 😉

    Then altered the following to the new bitmap sizes:

    Method New()
    If Not icons[0] Then
    icons = Theme.LoadIcons( “asset::ted2/debug_icons20.png”,20 )
    End If

    note the new graphics and size of 20 instead of 16

    An this is the result: a borked bitmap. any suggestions here?

    #2033

    AdamStrange
    Participant

    Just to bump this one again.

    I’ve tried every setting in photoshop for png and it still looks like the dogs.

    Mark any ideas?

    Here is the file I am using:

    Attachments:
    #2035

    Mark Sibly
    Keymaster

    It’s possible the BackgroundColor style for Mojo.ToolButton style class is not transparent.

    #2036

    AdamStrange
    Participant

    mmmmmm, I’ll look into it – thanks for the heads up on this one

    #2038

    AdamStrange
    Participant

    No definitely not!

    This is really annoying. it works with the supplied 16×16 but not 20×20

    The display bug is with canvas.drawimage if you zoom into the first image you can see the malformed transparency in the bitmap. I have no idea where that came from – it’s not my png

     

    OK further investigation. Mark WTF is going on with the style system: the padding, placement and borders? Noe of this makes any logical sense. I’ve been into the style code itself and it still makes no sense. I’ll start a separate entry for this

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.