PeachDrawing
PeachDrawing.ColorMatrixFilter
ColorMatrixFilter.ApplyInPlace Method
| Overloads | |
|---|---|
| ApplyInPlace(RasterSurface, ColorMatrix) | Applies matrix to surface in place. |
| ApplyInPlace(RasterSurface, IReadOnlyList<ColorMatrix>) | Applies matrices to surface in place, one after another, in a single pass over the pixels. Each stage’s result is clamped to the 0-1 range before the next runs, as Filter Effects 1 evaluates a filter list function by function: brightness(2) sepia(1) is not the composition of the two matrices, because the brightened channels clip at 1 before sepia mixes them. |
ColorMatrixFilter.ApplyInPlace(RasterSurface, ColorMatrix) Method
Applies matrix to surface in place.
public static void ApplyInPlace(PeachDrawing.Core.RasterSurface surface, in PeachDrawing.Core.ColorMatrix matrix);
Parameters
surface RasterSurface
matrix ColorMatrix
ColorMatrixFilter.ApplyInPlace(RasterSurface, IReadOnlyList<ColorMatrix>) Method
Applies matrices to surface in place, one after another, in a single pass over the
pixels. Each stage’s result is clamped to the 0-1 range before the next runs, as Filter Effects 1 evaluates a filter list
function by function: brightness(2) sepia(1) is not the composition of the two matrices, because the brightened
channels clip at 1 before sepia mixes them.
public static void ApplyInPlace(PeachDrawing.Core.RasterSurface surface, System.Collections.Generic.IReadOnlyList<PeachDrawing.Core.ColorMatrix> matrices);
Parameters
surface RasterSurface
matrices System.Collections.Generic.IReadOnlyList<ColorMatrix>