sizemode stretchimage

S

smoke

Is there a way to duplicate the functionality of
the pictureboxes sizemode stretchimage to the
backgroundimage of the form ?

In other words get the image that you put on your
form to fit perfectly if its to large.
 
N

Nicholas Paldino [.NET/C# MVP]

smoke,

Are you trying to custom paint the form background? If so, when you are
painting the background, you will want to call the overload of the DrawImage
method on the Graphics class which will allow you to scale the image you are
drawing.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top