Computer Science Canada

turing not loading large image

Author:  michaelp [ Fri Feb 06, 2009 7:03 pm ]
Post subject:  turing not loading large image

Okay, I'm trying to load a large background for a game that I'm making in Turing. It's 1536x751 pixels, and the maxx is 640, and maxy is 400. When I try and blit the image with Pic.Draw, I get an error saying that the image was not created successfully. I tried another background that is 640x480, and it worked just fine.
Is there a limit to how large an image can be in Turing?

Author:  andrew. [ Fri Feb 06, 2009 7:18 pm ]
Post subject:  RE:turing not loading large image

I'm pretty sure there is a limit, but I am not sure what it is and it probably depends on the file type.

Author:  michaelp [ Fri Feb 06, 2009 7:36 pm ]
Post subject:  RE:turing not loading large image

It's a 24-bit bitmap.

Author:  zero-impact [ Sat Feb 07, 2009 11:43 am ]
Post subject:  Re: turing not loading large image

Maybe try saving it in a different format such as a jpeg.

Author:  The_Bean [ Sat Feb 07, 2009 1:52 pm ]
Post subject:  Re: turing not loading large image

Also check the way it was saved, i know that gif's in photoshop can saved with a row order of normal or interlaced, and normal works in turing but interlaced doesn't. There might be something like that messing up the bmp.

Author:  michaelp [ Sat Feb 07, 2009 4:29 pm ]
Post subject:  RE:turing not loading large image

It worked when I changed it to a .jpg in Paint.
It was originally a .png.

Author:  zero-impact [ Sat Feb 07, 2009 9:57 pm ]
Post subject:  RE:turing not loading large image

Very Happy good job

Author:  michaelp [ Sun Feb 08, 2009 1:00 pm ]
Post subject:  RE:turing not loading large image

Very Happy
BTW, for sprites, what file format do you think I should use in Turing? Right now I use .bmp for pretty much everything, but would .jpg or .gif be better, in terms of size, speed, quality, etc.

Author:  copthesaint [ Wed Feb 18, 2009 8:47 am ]
Post subject:  RE:turing not loading large image

Well this isn't the best for picture quality, but for best results with merge use 256 color bitmap

Author:  DemonWasp [ Wed Feb 18, 2009 10:34 am ]
Post subject:  RE:turing not loading large image

Weird that it wouldn't work by default. I just had Turing load a 2048x2048 24-bit BMP file and it worked just fine (even drawing it to the default-sized console).

Author:  Razgriz [ Wed Feb 25, 2009 6:57 am ]
Post subject:  RE:turing not loading large image

Well, Speaking from experience, BMP's are pretty huge files, when compared to JPEG. I can have a picture 1042x768, and in bitmap (Depending on the quality of the image) it takes up as much as a full 4-minute MP3 file, versus when I change it to a JPG. it takes only about 200 KB (versus 3-4000).

GIFs, I'm not sure of their size.


: