Navigation
API > API/Developer > API/Developer/MaterialBaking > API/Developer/MaterialBaking/FMaterialBakingHelpers
References
| Module | MaterialBaking |
| Header | /Engine/Source/Developer/MaterialBaking/Public/MaterialBakingHelpers.h |
| Include | #include "MaterialBakingHelpers.h" |
| Source | /Engine/Source/Developer/MaterialBaking/Private/MaterialBakingHelpers.cpp |
static void PerformShrinking
&40;
TArray< FColor > & InOutPixels,
int32 & OnOutImageWidth,
int32 & InOutImageHeight,
FColor BackgroundColor
&41;
Remarks
Shrinks the array to a single pixel if the entire output is monochrome. Params will be adjusted accordingly when this occurs. It's useful to perform this before the border smear as a single non-magenta pixel value would have led to a monochrome image post-smear anyway, so the actual smearing process can be skipped.
Parameters
| Name | Description |
|---|---|
| InOutPixels | The image to shrink |
| ImageWidth | The width of the image in pixels |
| ImageHeight | The height of the image in pixels |