MCPcopy Create free account
hub / github.com/DentonW/DevIL / ILAPIENTRY iluEnlargeImage

Function ILAPIENTRY iluEnlargeImage

DevIL/src-ILU/src/ilu_scale.cpp:18–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16
17
18ILboolean ILAPIENTRY iluEnlargeImage(ILfloat XDim, ILfloat YDim, ILfloat ZDim)
19{
20 if (XDim <= 0.0f || YDim <= 0.0f || ZDim <= 0.0f) {
21 ilSetError(ILU_INVALID_PARAM);
22 return IL_FALSE;
23 }
24
25 iluCurImage = ilGetCurImage();
26 return iluScale((ILuint)(iluCurImage->Width * XDim), (ILuint)(iluCurImage->Height * YDim),
27 (ILuint)(iluCurImage->Depth * ZDim));
28}
29
30
31ILimage *iluScale1D_(ILimage *Image, ILimage *Scaled, ILuint Width);

Callers

nothing calls this directly

Calls 1

ilSetErrorFunction · 0.85

Tested by

no test coverage detected