森林单机游戏怎么过关:在C#用GDI+对picturebox绘图的问题
来源:百度文库 编辑:神马品牌网 时间:2024/10/04 20:28:02
为什么使用picturtbox的onpaint 事件后 pitcturbox.image为空
private void pictureBox1_Paint(object sender,PaintEventArgs e)
{
int a = 32;
Graphics dra = e.Graphics;
SolidBrush Brush_Black = new SolidBrush(Color.Black);
SolidBrush Brush_White = new SolidBrush(Color.White);
dra.FillRectangle(Brush_Black, 0, 0, 512, 256);
dra.FillRectangle(Brush_White, 128 - a / 2, 128 - a / 2, a, a);
dra.FillRectangle(Brush_White, 256 + 128 - a / 2, 128 - a / 2, a, a);
}
用pictureBox1.Image.Save(dlg.FileName,System .Drawing .Imaging .ImageFormat.Bmp);保存 picturebox1.image 为空
private void pictureBox1_Paint(object sender,PaintEventArgs e)
{
int a = 32;
Graphics dra = e.Graphics;
SolidBrush Brush_Black = new SolidBrush(Color.Black);
SolidBrush Brush_White = new SolidBrush(Color.White);
dra.FillRectangle(Brush_Black, 0, 0, 512, 256);
dra.FillRectangle(Brush_White, 128 - a / 2, 128 - a / 2, a, a);
dra.FillRectangle(Brush_White, 256 + 128 - a / 2, 128 - a / 2, a, a);
}
用pictureBox1.Image.Save(dlg.FileName,System .Drawing .Imaging .ImageFormat.Bmp);保存 picturebox1.image 为空
你的代码
在C#用GDI+对picturebox绘图的问题
c#中picturebox的一个问题
MICROSOFT GDI+检测工具有什么用啊?
VB,请问怎样在picturebox里添加一张图片?急!
想用VB6在picturebox控件中打印文本能够自动按照picturebox的宽度进行换行,请VB高手指点.
怎样在Direct 模式下显示GDI对象
C#中,怎样能让窗体中的内容和GDI绘图的内容随窗体大小改变而缩放?
c#中GDI画波浪线,但为什么只显一次,有什么办法控制波浪线的显示吗?
请问怎么样用C#对SQL SERVER操作
编程入门学C#之前先学C,学会了C对学C#有多大帮助,表现在哪些方面?