How to create an empty Image?

  • Thread starter Thread starter Mehdi Mousavi
  • Start date Start date
M

Mehdi Mousavi

Hi,
I need to create a 16x16 blank icon programmatically (in C#) but I've got no
idea how to do so.

Any help would be highly appreciated,

Cheers,
Mehdi
 
Something like:

Bitmap newie = new Bitmap( 16, 16, PixelFormat.something );

Stream stream = new FileStream( "image.jpg", FileMode.xxx, FileAccess.xxx )
;

newie.Save( stream , ImageFormat.Jpeg );
 
Back
Top