MCPcopy Create free account
hub / github.com/DentonW/DevIL / PbmMaximize

Function PbmMaximize

DevIL/src-IL/src/il_pnm.cpp:687–694  ·  view source on GitHub ↗

Converts a .pbm to something viewable.

Source from the content-addressed store, hash-verified

685
686// Converts a .pbm to something viewable.
687void PbmMaximize(ILimage *Image)
688{
689 ILuint i = 0;
690 for (i = 0; i < Image->SizeOfPlane; i++)
691 if (Image->Data[i] == 1)
692 Image->Data[i] = 0xFF;
693 return;
694}
695
696
697#endif//IL_NO_PNM

Callers 1

iLoadPnmInternalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected