Jump to content

Button: Ignore transparent area of image


gabriel
 Share

Recommended Posts

Hi! I'm new programming and I suppose this is a simple question but I've been looking around and couldn't find much. 

I have some png images with irregular forms to create buttons. I need the transparent part to be ignored (not clickable).

How can I do this? I think I have, some way, to map the image, or I've been thinking in creating objects (like rectangules and triangles) over the image to aproximate to its shape. I've been reading about HTML5 canvas, but not sure if that's the solution.

Thanks.

post-7398-0-31574000-1394202412.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...