PeachDrawing
PeachDrawing.RasterCanvas
RasterCanvas.DrawImageBlendedOver(Image, Image, Rect, PaintBlendMode) Method
Paints bottom normally at destRect, then
top on top of it at the same rect composited with blendMode -
both same-adapter tiles from CreateTile(double, double), sized/positioned identically in their
own local coordinate systems. The motivating future use case is SVG’s feBlend, which
blends two independently-rendered filter inputs together inside a fresh tile rather than
blending freshly-painted content against whatever the page already has underneath it (which
is what PushBlendMode(PaintBlendMode)/PopBlendMode() do). A no-op if either image
wasn’t created via CreateTile(double, double) on this same Canvas.
public override void DrawImageBlendedOver(PeachDrawing.Core.Image top, PeachDrawing.Core.Image bottom, PeachDrawing.Core.Rect destRect, PeachDrawing.Core.PaintBlendMode blendMode);
Parameters
top Image
bottom Image
destRect Rect
blendMode PaintBlendMode