Welcome to TalkGraphics.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2011
    Location
    UK
    Posts
    11

    Question PNG image with transparent background mouse-over problem

    Hi,

    I have 4 pictures of characters that I want to use as buttons that get larger as you roll over them, like in the mouse -over tutorial. I have followed the tutorial and I have got the mouse-over working. The problem I am facing is that the images I am using are .png with transparent backgrounds and they are all overlapping each other slightly. When I go to roll-over the middle images the outer image enlarges. What is happening is that the transparent background for each image is being selected with the rest of the picture when being rolled-over. So instead of just selecting the the cutout image it is selecting the whole picturebox. Is there a way for the roll-over to not pick up the transparent background?

  2. #2
    Join Date
    Aug 2007
    Location
    Maghull UK
    Posts
    6,202

    Default Re: PNG image with transparent background mouse-over problem

    Answer: No. Transparent or not, it's still pixels and all bitmaps are rectangles. Only way is to use polygon image maps, but - xara can't do this.
    JOHN -XaReg (FB) XaReg (DB - ignore prompt to register)
    Windows 10 [Anniversary] pro Intel Pentium CPU G630 @ 2.70Ghz RAM: 4 GB; 64-bit x64

  3. #3
    Join Date
    Mar 2009
    Posts
    4,522

    Default Re: PNG image with transparent background mouse-over problem

    Actually you can, by using a workaround that I mention here: http://www.talkgraphics.com/showthre...429#post312429

  4. #4
    Join Date
    Jan 2011
    Location
    UK
    Posts
    11

    Default Re: PNG image with transparent background mouse-over problem

    Cheers guys esp boy. You are a Legend!! I was actually thinking about a work-around like this today at work. It's nice to get home and see it spelt out in black and white. Safe as houses!!! Works great now!!

  5. #5
    Join Date
    Mar 2009
    Posts
    4,522

    Default Re: PNG image with transparent background mouse-over problem

    Great! Show us your site when you're done. Might be interesting and give us new ideas...

  6. #6
    Join Date
    Aug 2007
    Location
    Maghull UK
    Posts
    6,202

    Default Re: PNG image with transparent background mouse-over problem

    Nice one Boy!
    JOHN -XaReg (FB) XaReg (DB - ignore prompt to register)
    Windows 10 [Anniversary] pro Intel Pentium CPU G630 @ 2.70Ghz RAM: 4 GB; 64-bit x64

 

 

Tags for this Thread

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
  •