Image Shapes

  • Thread starter Thread starter Craig Whatley
  • Start date Start date
C

Craig Whatley

I would like to place an image of a round button on a Windows Form. The
Windows form will also have a background image. The only way I know how to
do that is to create a PictureBox and put the image in it. The picture box,
however, is square/rectangular. I would like the unused edges around the
image within the picture box to be transparent so that it displays the
background image of the form. Is there a way to do this?

It looks as though every graphic with the .NET CF must be rectangular in
shape if you are overlaying that graphic onto a control (like a form) that
is displaying an image. Is this correct?

Thanks,
Craig Whatley
 
Take a look at what I did for the RoundGauge in the Smart Device Framework.
I'm drawing *lots* of things there - circles, tick marks, a sweeping needle,
text, etc. It should give you some ideas on how to achieve it.

-Chris
 
I'll be posting an article tomorrow on OpenNETCF.org that describes how to
force a window to occupy a specified shape (changing the actual window
bounds).
 
Alex,
Once you post the article, can you post the URL to the article here?
Thanks!

Craig
 
Back
Top