public IBitmapContainer AddBitmapContainer(string filename, int x, int y) { BitmapContainer bitmapContainer = new BitmapContainer(this); bitmapContainer.Load(filename); bitmapContainer.Left = x; bitmapContainer.Top = y; AddElement(bitmapContainer); return(bitmapContainer); }
public IBitmapContainer AddBitmapContainer(Bitmap bitmap, int x, int y) { BitmapContainer bitmapContainer = new BitmapContainer(this); bitmapContainer.Bitmap = bitmap; bitmapContainer.Left = x; bitmapContainer.Top = y; AddElement(bitmapContainer); return(bitmapContainer); }