Images beyond 8192x8192

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
pcfreak
User
User
Posts: 75
Joined: Sat May 22, 2004 1:38 am

Images beyond 8192x8192

Post by pcfreak »

Well, some might or might not have ended up with the problem to get
images bigger than supported in PureBasic to be loaded. As I've some
hundred JPEGs over 100 MegaPixels which can only be shown by using
PureBasic with some Win API functions or by using external Libraries I'd
really like to get the 8192x8192 limit to be removed. I don't know how
much this affects the PureBasic functions but I don't understand why a
programming language should restrict the programmer. If I need to make
sure only smaller images can be made I'll check and restrict this myself.
It's not that I want to load some of my 65536x65536 PNG files in PureBasic
but at least the 12000x8000 pictures and such...
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Post by Rook Zimbabwe »

:!: 65536 pixels square is an image that would print out at:
64X64 inches at 1024 pixels to the inch resolution :!:

Thats almost 6 foot by 6 foot!

Commercial Images? Billboard? 8)
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Post by Mistrel »

You wouldn't want to keep an image that large in memory anyways. Break it up into smaller sectors and load them into multiple images.
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Post by Kaeru Gaman »

oh... and have a nice day.
User avatar
pcfreak
User
User
Posts: 75
Joined: Sat May 22, 2004 1:38 am

Post by pcfreak »

Commercial Images? Billboard? 8)
just some game screenshots...
You wouldn't want to keep an image that large in memory anyways. Break it up into smaller sectors and load them into multiple images.
12000x8000 is not even 300mb in memory. Currently you can even buy notebooks with 4GB ram for less than $700 so I don't think there is any problem with pictures like that, except that you can't really use them in purebasic (there is no flag for loadimage to load a chunk of an image) and even if there was one I don't want the language to restrict me, if there was a restriction it should be set by myself or the pc spec....

anyway, those restrictions are outdated, there are already even digital cameras with >50 mega pixels
Post Reply