예제 #1
0
        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
 public void DrawImage(GraphicsHandler graphics, float x, float y, float width, float height)
 {
     graphics.Control.DrawImage(Control, x, y, width, height);
 }
예제 #3
0
        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
 public void DrawImage(GraphicsHandler graphics, RectangleF source, RectangleF destination)
 {
     graphics.Control.DrawImage(Control, destination.ToSD(), source.ToSD(), SD.GraphicsUnit.Pixel);
 }
예제 #5
0
 public void DrawImage(GraphicsHandler graphics, float x, float y)
 {
     graphics.Control.DrawImage(Control, x, y);
 }
예제 #6
0
 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);
        }