コード例 #1
0
ファイル: IconHandler.cs プロジェクト: philstopford/Eto
        public void DrawImage(GraphicsHandler graphics, float x, float y, float width, float height)
        {
            var image = Widget.GetFrame(1f, Size.Ceiling(new SizeF(width, height)));

            graphics.Control.DrawImage(image.Bitmap.ToSD(), x, y, width, height);
        }
コード例 #2
0
ファイル: BitmapHandler.cs プロジェクト: daddycoding/Eto
 public void DrawImage(GraphicsHandler graphics, float x, float y, float width, float height)
 {
     graphics.Control.DrawImage(Control, x, y, width, height);
 }
コード例 #3
0
ファイル: IconHandler.cs プロジェクト: philstopford/Eto
        public void DrawImage(GraphicsHandler graphics, RectangleF source, RectangleF destination)
        {
            var image = Widget.GetFrame(1f, Size.Ceiling(destination.Size));

            graphics.Control.DrawImage(image.Bitmap.ToSD(), destination.ToSD(), source.ToSD(), sd.GraphicsUnit.Pixel);
        }
コード例 #4
0
ファイル: BitmapHandler.cs プロジェクト: daddycoding/Eto
 public void DrawImage(GraphicsHandler graphics, RectangleF source, RectangleF destination)
 {
     graphics.Control.DrawImage(Control, destination.ToSD(), source.ToSD(), SD.GraphicsUnit.Pixel);
 }
コード例 #5
0
ファイル: BitmapHandler.cs プロジェクト: daddycoding/Eto
 public void DrawImage(GraphicsHandler graphics, float x, float y)
 {
     graphics.Control.DrawImage(Control, x, y);
 }
コード例 #6
0
ファイル: BitmapHandler.cs プロジェクト: daddycoding/Eto
 public void Create(int width, int height, Graphics graphics)
 {
     Control = new SD.Bitmap(width, height, GraphicsHandler.GetControl(graphics));
 }
コード例 #7
0
ファイル: IconHandler.cs プロジェクト: wnf0000/Eto
        public void DrawImage(GraphicsHandler graphics, float x, float y, float width, float height)
        {
            var image = GetImageWithSize((int)Math.Max(width, height));

            graphics.Control.DrawImage(image, x, y, width, height);
        }
コード例 #8
0
ファイル: IconHandler.cs プロジェクト: wnf0000/Eto
        public void DrawImage(GraphicsHandler graphics, float x, float y)
        {
            var image = GetLargestIcon().ToBitmap();

            graphics.Control.DrawImage(image, x, y);
        }
コード例 #9
0
ファイル: IconHandler.cs プロジェクト: wnf0000/Eto
        public void DrawImage(GraphicsHandler graphics, RectangleF source, RectangleF destination)
        {
            var image = GetImageWithSize((int)Math.Max(destination.Width, destination.Height));

            graphics.Control.DrawImage(image, destination.ToSD(), source.ToSD(), SD.GraphicsUnit.Pixel);
        }
コード例 #10
0
        public void DrawImage(GraphicsHandler graphics, float x, float y)
        {
            var image = GetIdealIcon().Bitmap;

            graphics.DrawImage(image, x, y);
        }