Esempio n. 1
0
        public void DrawImage(__Image image, __Rectangle rect)
        {
            var b = image as __Bitmap;
            if (b != null)
            {
                b.InternalContext.putImageData(
                    b.InternalBitmapData.InternalImageData,
                    0,
                    0,
                    0,
                    0,
                    image.Width,
                    image.Height
                );

                if (AfterDrawImage != null)
                    AfterDrawImage(b, rect);
            }
        }
Esempio n. 2
0
        public void DrawImage(__Image image, __Rectangle rect)
        {
            var b = image as __Bitmap;

            if (b != null)
            {
                b.InternalContext.putImageData(
                    b.InternalBitmapData.InternalImageData,
                    0,
                    0,
                    0,
                    0,
                    image.Width,
                    image.Height
                    );

                if (AfterDrawImage != null)
                {
                    AfterDrawImage(b, rect);
                }
            }
        }