【文件属性】:
文件名称:用图像平铺形状程序(C#源代码编写)private void Form1_Paint(object sender, PaintEventArgs e)
文件大小:36KB
文件格式:RAR
更新时间:2012-01-28 08:12:06
用图像平铺形状程序(C#源代码编写)private void Form1_Paint(object sender, PaintEventArgs
用图像平铺形状程序(C#源代码编写)private void Form1_Paint(object sender, PaintEventArgs e)
{
Image image = new Bitmap("..\\..\\test.bmp");
TextureBrush tBrush = new TextureBrush(image);
tBrush.WrapMode = WrapMode.TileFlipXY;
e.Graphics.FillRectangle(tBrush, new Rectangle(0, 0, 200, 200));
Pen blackPen = new Pen(Color.Black);
e.Graphics.DrawRectangle(blackPen, new Rectangle(0, 0, 200, 200));
}
VisualStudio2008创建
【文件预览】:
C#090107-用图像平铺形状
----PingPu.sln(908B)
----PingPu.suo(13KB)
----PingPu()
--------TEST.BMP(7KB)
--------Form1.cs(894B)
--------bin()
--------obj()
--------Properties()
--------Program.cs(487B)
--------Form1.Designer.cs(1KB)
--------Form1.resx(6KB)
--------PingPu.csproj(4KB)
----readme.txt(588B)
网友评论
- 有部分是我需要的不错,赞一个!