예제 #1
0
        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);
        }
예제 #2
0
        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);
        }