I'm trying to save the previously loaded background image of a button:
Dim bm As New Bitmap(Button3.BackgroundImage)
bm.Save("c:\users\user\desktop\test.png", System.Drawing.Imaging.ImageFormat.Png)
The loaded PNG image: 186 x 186, size 51.9 KB
The Saved image file test.png: 186 x 186, size 62.3 KB
- Why is the saved PNG bigger than the source, while the height and width are the same?
- How to optimize the size to be less or equal to the original PNG?