摘要:
.NET的GDI+绘图基础:Graphics类的绘图方法2:Graphics.DrawRectangle()方法 ...Graphics.DrawRectangle()方法MSDN官网: http://msdn.microsoft.com/zh-cn/library/system.drawing.graphics.drawrectangle.aspxPS; Graphics.DrawRectangle()方法: 绘制由坐标对、宽度和高度指定的矩形。重载此成员。 有关此成员的完整信息(包括语法、用法和示例),请单击重载列表中的相应名称。Graphics.DrawRectangle()方法的重载列 阅读全文
posted @ 2011-04-28 22:11
linjianlong
阅读(677)
评论(0)
推荐(0)
摘要:
一.底片效果原理:GetPixel方法获得每一点像素的值,然后再使用SetPixel方法将取反后的颜色值设置到对应的点.代码实现:底片效果privatevoidbutton1_Click(objectsender,EventArgse){//以底片效果显示图像try{intHeight=this.pictureBox1.Image.Height;intWidth=this.pictureBox1.Image.Width;Bitmapnewbitmap=newBitmap(Width,Height);Bitmapoldbitmap=(Bitmap)this.pictureBox1.Image;C 阅读全文
posted @ 2011-04-28 21:42
linjianlong
阅读(306)
评论(0)
推荐(0)
摘要:
七.光照效果原理:对图像中的某一范围内的像素的亮度分别进 行处理.效果图:实现代码:光照效果privatevoidbutton1_Click(objectsender,EventArgse){//以光照效果显示图像GraphicsMyGraphics=this.pictureBox1.CreateGraphics();MyGraphics.Clear(Color.White);BitmapMyBmp=newBitmap(this.pictureBox1.Image,this.pictureBox1.Width,this.pictureBox1.Height);intMyWidth=MyBmp. 阅读全文
posted @ 2011-04-28 21:40
linjianlong
阅读(437)
评论(0)
推荐(0)

浙公网安备 33010602011771号