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); }
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); }
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); }