PeachDrawing
PeachDrawing.RasterCanvas
RasterCanvas.DrawImageWithColorMatrix(Image, Rect, ColorMatrix) Method
Draws image (a tile from CreateTile(double, double)) at
destRect, composited through a CSS/SVG filter color-matrix
transform (grayscale(), sepia(), saturate(), hue-rotate(),
invert(), brightness(), contrast(), or feColorMatrix) expressed as
matrix. Only representable when IsChannelIndependent
is true - see ColorMatrix’s remarks for why a PDF ExtGState transfer function
(the mechanism this goes through) cannot express a matrix that mixes color channels, and what
a caller needs instead for one that does. A no-op if image wasn’t created
via CreateTile(double, double) on this same Canvas.
public override void DrawImageWithColorMatrix(PeachDrawing.Core.Image image, PeachDrawing.Core.Rect destRect, PeachDrawing.Core.ColorMatrix matrix);
Parameters
image Image
destRect Rect
matrix ColorMatrix