PaintLab / PixelFarm

From Vectors to (sub) Pixels, C# 2D Rendering Library
Other
156 stars 20 forks source link

[INFO] Mask #45

Closed prepare closed 5 years ago

prepare commented 5 years ago

Before and After apply Mask

some svg 'clip region', so we implement that effect with mask.

1. Agg/CpuBlit see => https://github.com/PaintLab/PixelFarm/blob/dev/src/PixelFarm/PixelFarm.Drawing/7_CpuBlitPainter/DrawBoard/AggPainter.cs#L89

volcano

volcano.svg, rendered with Agg, left (no mask), right (with mask)


2. GLES2 see =>https://github.com/PaintLab/PixelFarm/blob/dev/src/PixelFarm/PixelFarm.Drawing.GLES/Painter/GLPainter.cs#L61

volcano_gles

volcano.svg, rendered with GLES2 (disable line-smooth-shader), left (no mask), right (with mask)