Ejemplo n.º 1
0
        private static void DrawStretched(Image image, GraphicsEx graphics)
        {
            ImageAttributes attributes = GetImageAttributes(image);

            graphics.DrawImage(image,
                               new Rectangle(0, 0, image.Width, image.Height),
                               new Rectangle(0, 0, image.Width, image.Height),
                               attributes);
        }
Ejemplo n.º 2
0
        private void DrawNormal(GraphicsEx graphics)
        {
            ImageAttributes attributes = GetImageAttributes(Image);

            graphics.DrawImage(Image,
                               new Rectangle(0, 0, Image.Width, Image.Height),
                               new Rectangle(0, 0, Image.Width, Image.Height),
                               attributes);
        }
Ejemplo n.º 3
0
        private void DrawCentered(GraphicsEx graphics)
        {
            Point           location   = GraphicsEx.GetCenter(ClientSize, Image.Size);
            ImageAttributes attributes = GetImageAttributes(Image);

            graphics.DrawImage(Image,
                               new Rectangle(location.X, location.Y, Image.Width, Image.Height),
                               new Rectangle(0, 0, Image.Width, Image.Height),
                               attributes);
        }