Load png image as Bitmap - CSharp System.Drawing

CSharp examples for System.Drawing:PNG

Description

Load png image as Bitmap

Demo Code



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");
 
        }
    }
}

Related Tutorials