CSharp examples for System.Drawing:PNG
Load png image as Bitmap
using System;/* ww w . ja v a2s .c om*/ using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Text; using System.Windows.Forms; namespace TestingUtils { public class BitmapViewerTest { public static void Main() { bmViewer.bitmapViewer1.Bitmap = (Bitmap) Image.FromFile(@"C:\Documents and Settings\Peter\My Documents\CourseScribe\TestFiles\rendering\a.png"); } } }