示例#1
0
        protected override void OnRender(IDrawingContext dc, RectFloat clipRect, CanvasView canvasView)
        {
            Matrix3x2Float transform         = dc.Transform;
            SizeDouble     canvasSize        = canvasView.CanvasSize;
            RectFloat      rect              = new RectFloat(0f, 0f, (float)canvasSize.Width, (float)canvasSize.Height);
            RectFloat      num4              = transform.Transform(rect);
            int            recommendedExtent = this.dropShadowRenderer.GetRecommendedExtent(num4.Int32Bound.Size);

            using (dc.UseTransform(Matrix3x2Float.Identity))
            {
                this.dropShadowRenderer.RenderOutside(dc, new ColorRgba128Float(0f, 0f, 0f, 0.5f), num4, recommendedExtent);
            }
            base.OnRender(dc, clipRect, canvasView);
        }
示例#2
0
 public ITransformedGeometry CreateTransformedGeometry(IGeometry source, Matrix3x2Float transform) =>
 base.innerRefT.CreateTransformedGeometry(source, transform);