GDI画图从右到左显示怎么实现
pgcat 2008-12-30 05:23:32 从左到右拉升显示
int width = this.MyBitmap.Width; //图像宽度
int height = this.MyBitmap.Height; //图像高度
Graphics g = this.panel1.CreateGraphics();g.Clear(Color.Gray); //初始为全灰色
for (int x = 1; x <= width; x++)
{
Bitmap bitmap=MyBitmap.Clone (new Rectangle
(0,0,x ,height),
System.Drawing .Imaging.PixelFormat .Format24bppRgb );
g.DrawImage (bitmap,0,0);
System.Threading.Thread.Sleep(10);
}
}
catch (Exception ex){MessageBox.Show(ex.Message, "信息提示");
}
从右到左 怎么实现呢 谢谢