HDK
|
#include <TIL_UVEnlarger.h>
Public Types | |
enum | Scheme { SCHEME_FILL_AVERAGE, SCHEME_FLOOD_FILL, SCHEME_DIFFUSE_FILL, SCHEME_INVALID } |
Public Member Functions | |
TIL_UVEnlarger (PXL_Raster &raster, const PXL_Raster *alpha_raster, Scheme scheme=SCHEME_FLOOD_FILL, int fillPadding=4) | |
~TIL_UVEnlarger () | |
void | setFillPadding (int fp) |
void | setScheme (Scheme scheme) |
Sets the scheme to use when enlarging. More... | |
bool | enlarge (bool doUnpremult=true) const |
Definition at line 22 of file TIL_UVEnlarger.h.
Definition at line 25 of file TIL_UVEnlarger.h.
TIL_UVEnlarger::TIL_UVEnlarger | ( | PXL_Raster & | raster, |
const PXL_Raster * | alpha_raster, | ||
Scheme | scheme = SCHEME_FLOOD_FILL , |
||
int | fillPadding = 4 |
||
) |
If PXL_Raster is an RGB raster (with no alpha), then the alpha will be pulled from the alpha_raster. If there's no alpha, all non-black pixels will be considered opaque.
TIL_UVEnlarger::~TIL_UVEnlarger | ( | ) |
bool TIL_UVEnlarger::enlarge | ( | bool | doUnpremult = true | ) | const |
How many pixels to pad each UV island with, when using the flood filling scheme for enlarging.
Definition at line 55 of file TIL_UVEnlarger.h.
Sets the scheme to use when enlarging.
Definition at line 59 of file TIL_UVEnlarger.h.