哎,百思不得其解,原本自己重画一个窗体,换上皮肤变得漂亮,谁知道重画右边的图像变样了
也不知窗体的相关属性设置错误,还是怎么得
重画窗体,把图像画到左边没问题,宽度没变,但是重画图像到右边就变样,真晕死
代码:
private System.Drawing.Image Top_RightActive;
        public Form1()
        {
            rm = new ResourceManager("GUpdate.Properties.Resources", Assembly.GetExecutingAssembly());
            Top_RightActive = (Bitmap)rm.GetObject("Top_RightActive"); //右上角边
        }          private void Form1_Paint(object sender,System.Windows.Forms.PaintEventArgs e)
        {
            Graphics g = e.Graphics;
            //手工画窗体的各个部?
            DrawBottom_Right(e.Graphics);//画右下角
        }
        private void DrawTop_Right(Graphics g) //右上角边
        {
            Rectangle rect = new Rectangle(0, 0, Top_RightActive.Width, Top_RightActive.Height);
            Brush brush = new TextureBrush(Top_RightActive, rect);
            Rectangle rect1 = new Rectangle(Width - Top_RightActive.Width, 0, Top_RightActive.Width, Top_RightActive.Height);
            g.FillRectangle(brush, rect1);
        }