Stretching an image

  • Thread starter Thread starter Dougie
  • Start date Start date
D

Dougie

How would I stretch an image in a C# application to span the full width of
the screen?

Basically I've got a header logo and then a spacer image that I want to use
to fill the width of the screen.

Also does anyone know how to resize the background image instead of having
it tiled in a window??

Thanks,
Doug
 
Dougie said:
How would I stretch an image in a C# application to span the full width of
the screen?

Basically I've got a header logo and then a spacer image that I want to use
to fill the width of the screen.

Also does anyone know how to resize the background image instead of having
it tiled in a window??

Thanks,
Doug

You can just figure out the size of the rectangle you want to fill, and draw
the image like this
grfx.DrawImage(img, rect);

Or do you need to know how to figure the rectangle?

Eric
 
Back
Top