Method FillUnusedPixels
FillUnusedPixels(uint, ColorAlpha?, int, uint, bool)
Fill unused pixels by propagating and averaging used pixels
Declaration
[HandleProcessCorruptedStateExceptions]
public uint FillUnusedPixels(uint image, ColorAlpha? unusedColor = null, int size = -1, uint validityMask = 0, bool inPlace = false)
Parameters
Type | Name | Description |
---|---|---|
uint | image | Image to process |
ColorAlpha? | unusedColor | Color used to identify unused pixels |
int | size | Dilation size in pixels |
uint | validityMask | Image describing which texels are valid (color set to white) and which ones need to be filled (color set to black). If zero, unusedColor is used instead. |
bool | inPlace | If True, the source image is modified. Otherwise, a new one is created |
Returns
Type | Description |
---|---|
uint |