Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a blank png image in vb.net

Tags:

.net

image

wpf

This seems so trivial, yet I cannot find where or how to do this.

i need to be able to create on the fly blank png in a WPF project. Size of the png does not matter, I just need to be able to create one and save it on a specifiy path by pressing a button.

For some reason, I can't find it anywhere.

like image 313
David Brunelle Avatar asked Feb 24 '23 20:02

David Brunelle


1 Answers

You can create a Bitmap object and manipulate it as you need. The Bitmap object has a Save method that let's you specify what file format to save it as, one choice being Png.

http://msdn.microsoft.com/en-us/library/system.drawing.bitmap.aspx

like image 158
Corey Ogburn Avatar answered Feb 26 '23 15:02

Corey Ogburn