Raster gets compositing

on 12 Mar 2011 by Mukund (@muks)

Raster now natively implements all the SVG compositing ops. Results from Raster tests follow. Note that these are all 16-bits per component RGBA images.

Oh and another thing: Raster gained support for PNG files too (reading 8-bit and 16-bit, and writing 16-bits per component). PNG is a useful portable format for images with alpha, something that most PPM variants don't do.

clear:

clear

src:

src

dst:

dst

src-over:

src-over

dst-over:

dst-over

src-in:

src-in

dst-in:

dst-in

src-out:

src-out

dst-out:

dst-out

src-atop:

src-atop

dst-atop:

dst-atop

xor:

xor

plus:

plus

multiply:

multiply

screen:

screen

overlay:

overlay

darken:

darken

lighten:

lighten

color-dodge:

color-dodge

color-burn:

color-burn

hard-light:

hard-light

soft-light:

soft-light

difference:

difference

exclusion:

exclusion