protected override void onDraw(Context gr) { base.onDraw(gr); if (_pic == null) { return; } _pic.Paint(gr, ClientRectangle, _svgSub); }
protected override void onDraw(Context gr) { base.onDraw(gr); if (_pic == null) { return; } _pic.Paint(gr, ClientRectangle, _svgSub); if (Opacity < 1.0) { gr.SetSourceRGBA(0.0, 0.0, 0.0, 1.0 - Opacity); gr.Operator = Operator.DestOut; gr.Rectangle(ClientRectangle); gr.Fill(); gr.Operator = Operator.Over; } }