// INTERNAL INCLUDES
#include <dali/integration-api/debug.h>
#include <dali/integration-api/bitmap.h>
-#include <dali/public-api/images/image-attributes.h>
namespace Dali
{
}//unnamed namespace
-bool LoadIcoHeader(FILE *fp, const ImageAttributes& attributes, unsigned int &width, unsigned int &height )
+bool LoadIcoHeader( const ImageLoader::Input& input, unsigned int& width, unsigned int& height )
{
IcoData chosen;
Dali::Vector<unsigned char> map;
unsigned int fsize;
+ FILE* const fp = input.file;
if ( false == LoadIcoHeaderHelper(fp, chosen, map, fsize) )
{
return true;
}
-bool LoadBitmapFromIco( FILE *fp, Integration::Bitmap& bitmap, ImageAttributes& attributes, const ResourceLoadingClient& client )
+bool LoadBitmapFromIco( const ResourceLoadingClient& client, const ImageLoader::Input& input, Integration::Bitmap& bitmap )
{
IcoData chosen;
Dali::Vector<unsigned char> map;
unsigned int fsize;
+ FILE* const fp = input.file;
if ( false == LoadIcoHeaderHelper(fp, chosen, map, fsize) )
{
memset(pixels, 0, w * h * 4);
memcpy(pixels, (unsigned char*)&surface[0], w * h * 4);
- attributes.SetSize(w, h);
-
return true;
}