Results 1 to 3 of 3

Thread: Masking an image

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2003
    Posts
    89

    Masking an image

    Hello everybody,
    I have an image with transparent background inside my picturebox on a winform.
    I would really like to make the picturebox respond to click events only when the user clicks inside the picture. Nothing should happen if he clicks the background instead. How to do this?

    Thanks in advance.
    bye
    - mo! I said MOOOOOOO!!
    - ...yep, that's a cow, alright.

  2. #2
    Frenzied Member
    Join Date
    Mar 2004
    Location
    Orlando, FL
    Posts
    1,618
    Maybe look into regions in the GDI+ stuff.
    Sean

    Some days when I think about the next 30 years or so of my life I am going to spend writing code, I happily contemplate stepping off a curb in front of a fast moving bus.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jun 2003
    Posts
    89
    thanks, I found a very interesting how-to about regions here
    http://www.bobpowell.net/manipulate_graphics.htm
    I think I'm happy ^^

    Time for another topic, though
    - mo! I said MOOOOOOO!!
    - ...yep, that's a cow, alright.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width