我现在有这样一段代码
DimMyPicGraphicsAsGraphics=PictureBox1.CreateGraphics
DimPinkBrushAsNewSolidBrush(Color.Pink)
DimBlackPenAsNewPen(Brushes.Black)'采用默认的画笔宽度值为1
'在窗体上填充一个实心的椭圆
MyPicGraphics.FillEllipse(PinkBrush,NewRectangle(2,2,80,50))
'在窗体上绘制一个空心的椭圆
MyPicGraphics.DrawEllipse(BlackPen,NewRectangle(2,2,80,50))
MyPicGraphics.DrawString("测试文字",NewFont("宋体",20),NewSolidBrush(Color.Blue),50,10)
这个Graphics绘制好了,但我现在想打印这个Graphics内容
我直接用:PrintDocument1.Print()打出来是空白的,应该怎么使用?
分 -->
|