Load() loads an image from a file. Currently, only .PNG is supported. Images are converted into 32-bit RGBA (8-bits per channel) Call CATImage::ReleaseImage() when done with the returned image.
Currently, only .PNG is supported. Call CATImage::ReleaseImage() when done with the returned image.
Definition at line 1235 of file CATImage.cpp. References CAT_ERR_INVALID_PARAM, CAT_ERR_PNG_ERROR_CREATING_READ, CAT_ERR_PNG_UNSUPPORTED_FORMAT, CAT_SUCCESS, CATASSERT, CATImage(), CATRESULT, CATRESULTFILE, Create(), CATStream::GetName(), GetRawDataPtr(), CATStream::IsOpen(), kBytesPerPixel, PNGError(), PNGRead(), and PNGWarning(). Referenced by CATGuiObj::LoadSkinImage().
|