DepthFillAll¶
Namespace Nfty.Core.Editing in assembly Nfty.Core.
Sets every solid pixel to one front/back depth, replacing whatever was there.
Constructors¶
DepthFillAll(byte, byte)¶
Creates the fill.
Parameters
front(byte) - Front depth to give every solid pixel.back(byte) - Back depth to give every solid pixel.
Methods¶
ComputePixels(IEditSurface<DepthPixel>)¶
protected override IReadOnlyList<(int, int, DepthPixel)> ComputePixels(IEditSurface<DepthPixel> surface);
Target pixels and their new values. Only in-bounds pixels, each coordinate at most once; computed before any mutation.
Parameters
surface(IEditSurface<DepthPixel>) - The surface being edited, for reading the pixels the edit depends on.
Returns. The pixels to write, before the opacity lock is applied to them.