void BaseImage::Create_Black_Texture ( std::string tex_name, int w, int h, csColor * transp, int flags ) { iImage* image; csRef buff; csImageIOFileFormatDescription image_file_desc; std::string extraoptions; // Setup image type we want to create image_file_desc.cap = CS_IMAGEIO_SAVE ; image_file_desc.mime = "image/png"; image_file_desc.subtype = "8 bit palettized"; extraoptions = "compress=50"; // Get iEngine csRef engine = app->GetEngine(); if (!engine) printf("BaseImage::Create_Black_Texture: Failed to locate iEngine renderer!"); // Get iImageIO csRef image_io = app->Get_ImageIO (); if (!image_io) printf("BaseImage::Create_Black_Texture: Failed to locate iImageIO object!"); // Get VFS csRef vfs = app->Get_VFS (); if (!vfs) printf("BaseImage::Create_Black_Texture: Failed to load VFS!"); // Create the black texture textwrapper = engine->CreateBlackTexture ( tex_name.c_str() , w, h, transp, flags ); image = textwrapper->GetImageFile(); csImageMemory imagecopy ( image ); // Save the image to disk so i can look at it csRef databuffer = image_io->Save( image , image_file_desc , extraoptions.c_str() ); vfs->WriteFile ( "testimage.png" , databuffer->GetData() , databuffer->GetSize() ); can anyone point out why i am getting this compile error? src/texgen.cpp: In member function ‘void BaseImage::Create_Black_Texture(std::string, int, int, csColor*, int)’: src/texgen.cpp:63: error: no matching function for call to ‘iImageIO::Save(iImage*&, csImageIOFileFormatDescription&, const char*)’ /home/mec/development/CS/include/igraphic/imageio.h:112: note: candidates are: virtual csPtr iImageIO::Save(iImage*, csImageIOFileFormatDescription*, const char*) /home/mec/development/CS/include/igraphic/imageio.h:119: note: virtual csPtr iImageIO::Save(iImage*, const char*, const char*)