Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
The User loads an Image into a picturebox as its BackgroundImage and uses Arrows Keys to alter the size and location of this picturebox on the Form.

The User can also change the BackgroundImageLayout <normal,center,zoom,stretch,tile)>

Apon Pressing a 'Save' Button I want to save the Background Image now showing on the Form, but it only saves the originial Image and not the new Image with altered size and the selected BackgroundImageLayout.

What I have tried:

I tried this:

Dim filename As String = "TempPicture.jpg"
Dim bmap As Bitmap = New Bitmap(btn.BackgroundImage)
bmap.Save(filename, System.Drawing.Imaging.ImageFormat.Jpeg)
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900