I have a filebrowser.
I can load png files, but how do i get the with and height of that image ?
This is what i have :
Code: Select all
char buffer[200];
Image* Image;
sprintf(buffer, path);
Image = loadImage(buffer);
blitAlphaImageToScreen(0 ,0 ,480, 272, Image, 0, 0);
flipScreen();
But an image of 200x200 not...
So it need to be something (i dont now, just a thought) like this :
Code: Select all
char buffer[200];
Image* Image;
sprintf(buffer, path);
Image = loadImage(buffer);
blitAlphaImageToScreen(0 ,0 ,with(Image), height(Image), Image, 0, 0);
flipScreen();
Does someone now how to do this ?
Thanks in advance