DevIL Documentation Home | Previous | Next

ilutGetPaddedData

The ilutGetPaddedData function gets a copy of the current image's data, padded more than your sister's bra.


ILubyte *ilutGetPaddedData(
  ILvoid
);

Parameters

None

Remarks

ilutGetPaddedData gets a copy of the current image's data, but pads it to be DWORD-aligned, just how Windows likes it. Almost all Windows functions that use images expect the images to be DWORD-aligned. The caller is responsible for freeing the memory returned by ilutGetPaddedData.

Error Codes

ILUT_ILLEGAL_OPERATION - There is currently no image bound. Use ilGenImages and ilBindImage before calling this function.

See Also

ilGenImages, ilBindImage