Hello
Would it be possible to drop the 8192x8192 Limit for Images?
Working with 3D-Panoramas 16384x8192 i.e. is not possible at present.
Computers are more powerful than in 2000 - what may have had a reason 10 years ago may not be relevant these days anymore.
Fred, can you please check if it is possible to replace the limitation to a much higher value (32768 at least) in case a limitation is needed at all?
Thank you
RGR
No Limit for Images
No Limit for Images
--------------
Yes, its an Irish Wolfhound.
Height: 107 cm; Weight: 88 kg
Yes, its an Irish Wolfhound.
Height: 107 cm; Weight: 88 kg
Re: No Limit for Images
I don't think there is such limit anymore, i just tested CreateImage(0, 16000,16000) and it seems to work.
Re: No Limit for Images
The hardcoded? limit is 32000 x 32000 PixelsFred wrote:I don't think there is such limit anymore, i just tested CreateImage(0, 16000,16000) and it seems to work.
look here:
Code: Select all
[17:46:31] Waiting for executable to start...
[17:46:31] Executable type: Windows - x64 (64bit)
[17:46:31] Executable started.
[17:46:31] [ERROR] Line: 14
[17:46:31] [ERROR] Image 'Height' is > 32000 pixels.
Belive! C++ version of Puzzle of Mystralia
Bug Planet
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
Bug Planet
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
Re: No Limit for Images
It's a debugger only check
Re: No Limit for Images
It seems impossible to create an image with pixel data that is >2GB big, even using the x64 version. So an image of 23170x23170 works here, larger does not. You can go wider if you reduce the height.
I checked the code, this is not a PB limit. Seems the API cannot handle more. I didn't find any docs on this though. So it is hard to tell if this is a hard limit. This all applies to the Windows version only of course.
I checked the code, this is not a PB limit. Seems the API cannot handle more. I didn't find any docs on this though. So it is hard to tell if this is a hard limit. This all applies to the Windows version only of course.
quidquid Latine dictum sit altum videtur
Re: No Limit for Images
Thank you both for the info
I now see that the documentation says "at least"
I overread that in the hurry looking into it - I just saw that 8192x8192
CatchImage( ...)
CreateImage( ...)
LoadImage( ...)
ResizeImage( ...)
RGR
.
I now see that the documentation says "at least"
I overread that in the hurry looking into it - I just saw that 8192x8192
CatchImage( ...)
CreateImage( ...)
LoadImage( ...)
ResizeImage( ...)
Maybe "up to 32768x32768" should be mentioned in the documentation as well to make it more obvious.The limit for the image size that can be handled depends on the operating system and the available amount of memory. If enough memory is available, then images up to at least 8192x8192 are can be handled by all operating systems supported by PureBasic.
RGR
.
--------------
Yes, its an Irish Wolfhound.
Height: 107 cm; Weight: 88 kg
Yes, its an Irish Wolfhound.
Height: 107 cm; Weight: 88 kg