本文介绍了如何制作图像到图像或绘制图像。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
public void drawPoint(int x, int y, SolidBrush brush)
{
Graphics g = Graphics.FromHwnd(picImage.Handle);
//using (Graphics g = Graphics .FromImage (bmp ))
//provides methods for drawing objects to the display device
//SolidBrush brush = new SolidBrush(Color.Black);
Point dPoint = new Point(x, (picImage.Height - y));
dPoint.X = dPoint.X - 2;
dPoint.Y = dPoint.Y - 2;
Rectangle rect = new Rectangle(dPoint, new Size(5, 5));
g.FillRectangle(brush, rect);
g.Dispose();
}
推荐答案
这篇关于如何制作图像到图像或绘制图像。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!