【发布时间】:2011-08-02 22:59:34
【问题描述】:
我创建了自己的 UIPrintPageRenderer 子类,在 DrawContentForPage() 的重载中,我绘制了一个简单的矩形,但没有渲染:
public override void DrawContentForPage (int index, RectangleF contentRect)
{
Context vContext = UIGraphics.GetCurrentContext ();
vContext.SetStrokeColor (new float[] { 1.0f, 0.0f, 0.0f, 1.0f });
vContext.SetLineWidth (10);
vContext.StrokeRect (new RectangleF (PrintableRect.Left + 10, PrintableRect.Top + 10, 100, 100));
}
为什么不呢?
【问题讨论】:
标签: iphone ios mono xamarin.ios