Why dont these pictures load properly?
Posted: Thu Aug 18, 2011 12:41 am
Here are 3 different pictures:
http://dl.dropbox.com/u/3375468/b.png
http://dl.dropbox.com/u/3375468/b.jpg
http://dl.dropbox.com/u/3375468/b-2.png
I have two different programs that do the following:
program 1 is tile maker
program 2 is mapeditor
Here is what happens in program 1 (tile editor):
FileRequest(file$)
LoadBrush(1, file$)
Then make Animation frame by frame to size (95x95) with animstream commands ie:
WriteAnimFrame...
FinishAnimStream(1)
Then comes the program 2:
This one
LoadAnim(1, "b.anim")
then
displayanimframe(1)
and afterwards between REPEAT and UNTIL
NextFrame(1, x, y, 1)
To put this thing short. There shouldnt be anything wrong with the program because When i have tried loading some pictures and single colored example tiles, it worked just like it was supposed.
But when i try to load these specific b.png, b.jpg, b-2.png pictures, it shows either black or nothing. I dont know if its nothing or black, since the background is black.
Original picture that was made is the b.png.
I tried to change it into jpg in hopes it had fixed the problem, i also tried coloring it with more colors and saving it as b-2.png, but none of these helped.
Is this WINUAE problem only, or is there something wrong with the pictures, and how can i make these pictures so that they actually work?
http://dl.dropbox.com/u/3375468/b.png
http://dl.dropbox.com/u/3375468/b.jpg
http://dl.dropbox.com/u/3375468/b-2.png
I have two different programs that do the following:
program 1 is tile maker
program 2 is mapeditor
Here is what happens in program 1 (tile editor):
FileRequest(file$)
LoadBrush(1, file$)
Then make Animation frame by frame to size (95x95) with animstream commands ie:
WriteAnimFrame...
FinishAnimStream(1)
Then comes the program 2:
This one
LoadAnim(1, "b.anim")
then
displayanimframe(1)
and afterwards between REPEAT and UNTIL
NextFrame(1, x, y, 1)
To put this thing short. There shouldnt be anything wrong with the program because When i have tried loading some pictures and single colored example tiles, it worked just like it was supposed.
But when i try to load these specific b.png, b.jpg, b-2.png pictures, it shows either black or nothing. I dont know if its nothing or black, since the background is black.
Original picture that was made is the b.png.
I tried to change it into jpg in hopes it had fixed the problem, i also tried coloring it with more colors and saving it as b-2.png, but none of these helped.
Is this WINUAE problem only, or is there something wrong with the pictures, and how can i make these pictures so that they actually work?