public static PixelFarm.Drawing.Image LoadBitmap(string filename) { System.Drawing.Bitmap gdiBmp = new System.Drawing.Bitmap(filename); DemoBitmap bmp = new DemoBitmap(gdiBmp.Width, gdiBmp.Height, gdiBmp); return(bmp); }
public static PixelFarm.Drawing.Image LoadBitmap(string filename) { System.Drawing.Bitmap gdiBmp = new System.Drawing.Bitmap(filename); DemoBitmap bmp = new DemoBitmap(gdiBmp.Width, gdiBmp.Height, gdiBmp); return bmp; }