void FillScaledShape(Brush paint, awt.Shape shape) { Matrix m = null; if (!(paint is SolidBrush || paint is HatchBrush) && !_transform.IsIdentity) { m = paint.BrushTransform; paint.BrushMultiplyTransform( _transform ); } try { NativeObject.setPaint(paint); NativeObject.fill(shape); } finally { if (m != null) paint.BrushTransform = m; } }