PaintLab / PixelFarm

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

snapshot #1

Open prepare opened 7 years ago

prepare commented 7 years ago

agg_software

  1. PixelFarm's Agg (pure software)

gdiplus

  1. GDI+

gles2_aa_shader

  1. PixelFarm's GLES2 + AA shader

skia_mem

  1. SkiaSharp Memory Backend

skia_gles2

  1. SkiaSharp GLES Backend
prepare commented 7 years ago

PixelFarm Typography:

lcd1


lcd2


lcd3


prepare commented 7 years ago

sc_04

pic 1: GLFW +SKIA (Native Windows / No WinForm/ No System.Drawing)

(https://github.com/prepare/PixelFarm-dev/tree/master/a_mini/projects/Tests/TestGLES_SKIA_GLFW)


sc_05 pic 2: GLFW +GLES2 (Native Windows / No WinForm/ No System.Drawing)

(1) load img with managed loader(https://github.com/PaintLab/ImgCodec), render to GL canvas (2) load img, pass to GLES2 shader (Blur shader) then render to GL canvas

(https://github.com/prepare/PixelFarm-dev/tree/master/a_mini/projects/Tests/TestGLES_SKIA_GLFW)

prepare commented 7 years ago

sc_03 pic 1: WinForm, Skia GL Canvas surface (https://github.com/prepare/PixelFarm-dev/tree/master/a_mini/projects/Tests/TestSkia1)


sc_02 pic 2: WinForm, Skia Memory surface (https://github.com/prepare/PixelFarm-dev/tree/master/a_mini/projects/Tests/TestSkia1)

prepare commented 7 years ago

Angle's GLES2 (https://github.com/google/angle)

sc_gles2_texture_wrap sc_gles2_hello_triangle sc_gles2_mipmap2d sc_gles2_sampletexture2d sc_gles2_stencil_op

prepare commented 7 years ago

gles2_textspan

pic 1: GLES2 texture font (a glyph is render with the Typography)

prepare commented 6 years ago

Test Application : Color Blender

(ported from ColorBlender, https://github.com/wieslawsoltes/ColorBlender)

Glyphs generated by our Typography lib(https://github.com/LayoutFarm/Typography)

sample_screen

pic 1: GLES2 canvas, lcd-effect-stecil-based texture glyph


Zoom on the text.

sample_screen2

pic 2: show lcd-effect-stencil-based texture


With TrueType Hinting + SubPixelRendering + Lcd Effect

(left) GLES2 on Angle (Hardware rendering) vs (right) GLES2 on Google's Swift Shader (Software-based GLES2 impl)

swift_shader

pic 3: (left) Angle vs (right) ShiftShader

prepare commented 6 years ago

Ghostscript's Tiger.svg

(https://commons.wikimedia.org/wiki/File:Ghostscript_Tiger.svg)

tiger

pic 1: PixelFarm's Agg (1) vs Chrome (2)

tiger2

pic 2: Agg's result, bitmap zoom-in to see fine details