コード例 #1
0
        public void DrawImage(Image image, float x, float y, float width, float height)
        {
            SetOffset(true);
            var bmp = image.ToDx(Control);

            Control.DrawBitmap(bmp, new s.RectangleF(x, y, width, height), 1f, ImageInterpolation.ToDx());
        }
コード例 #2
0
        public void DrawImage(Image image, float x, float y, float width, float height)
        {
            SetOffset(true);
            var bmp = image.ToDx(Control, Size.Ceiling(CurrentTransform.TransformSize(new SizeF(width, height))));

            Control.DrawBitmap(bmp, new s.RectangleF(x, y, width, height), 1f, ImageInterpolation.ToDx());
        }
コード例 #3
0
        public void DrawImage(Image image, float x, float y)
        {
            var bmp = image.ToDx(Control);

            Control.DrawBitmap(bmp, new s.RectangleF(x, y, bmp.Size.Width, bmp.Size.Height), 1f, ImageInterpolation.ToDx());
        }
コード例 #4
0
        public void DrawImage(Image image, float x, float y)
        {
            SetOffset(true);
            var bmp = image.ToDx(Control);

            if (bmp != null)
            {
                Control.DrawBitmap(bmp, new s.RectangleF(x, y, bmp.Size.Width, bmp.Size.Height), 1f, ImageInterpolation.ToDx());
            }
        }