Enum Enums.RegionShrink
How to calculate the output pixels when shrinking a 2x2 region.
Namespace: NetVips
Assembly: NetVips.dll
Syntax
public enum Enums.RegionShrink
Remarks
Images with alpha (see HasAlpha()) always shrink with Mean and pixels scaled by alpha to avoid fringing.
Set the image interpretation to Multiband to treat all bands equally.
Fields
| Name | Description |
|---|---|
| Max | Use the maximum. |
| Mean | Use the average. |
| Median | Use the median. |
| Min | Use the minimum. |
| Mode | Use the mode. |
| Nearest | Use the top-left pixel. |