Create Image - CSharp System.Drawing

CSharp examples for System.Drawing:Image Effect

Description

Create Image

Demo Code


using System.Windows.Media.Imaging;
using System.Linq;
using System.Collections.Generic;
using System;/*from ww w . j  a v  a 2  s .  c om*/

public class Main{
        public static BitmapImage CreateImage(string imageName)
        {
            return new BitmapImage(new Uri("/Images/" + imageName + ".png", UriKind.Relative));
        }
}

Related Tutorials