GrAPiC
Graphics for Algo/Prog in C/C++

◆ image_isInit()

bool grapic::image_isInit ( const Image &  im)
inline

return true if the image is initialized

d.im = image("data/grapic.bmp", true, 255, 255, 255, 255);
if (!image_isInit(d.im)) // if the image was not loaded, try an other path
d.im = image("../data/grapic.bmp", true, 255,255,255,255 );
bool image_isInit(const Image &im)
return true if the image is initialized
Definition: Grapic.h:660
Image image(const char *filename, bool transparency=false, unsigned char r=255, unsigned char g=255, unsigned b=255, unsigned char a=255)
Return an image loaded from the file filename.
Definition: Grapic.h:587