Andwho.Windows.Forms.QQTabControl.DrawImage C# (CSharp) Метод

DrawImage() приватный Метод

绘图
private DrawImage ( Graphics g, Image image, Rectangle rect ) : void
g System.Drawing.Graphics
image Image
rect System.Drawing.Rectangle
Результат void
        private void DrawImage(Graphics g, Image image, Rectangle rect)
        {
            g.DrawImage(image, new Rectangle(rect.X, rect.Y, 5, rect.Height), 0, 0, 5, image.Height,
                GraphicsUnit.Pixel);
            g.DrawImage(image, new Rectangle(rect.X + 5, rect.Y, rect.Width - 10, rect.Height), 5, 0, image.Width - 10, image.Height, GraphicsUnit.Pixel);
            g.DrawImage(image, new Rectangle(rect.X + rect.Width - 5, rect.Y, 5, rect.Height), image.Width - 5, 0, 5, image.Height, GraphicsUnit.Pixel);
        }