I generate bitmap images with Cocoa using NSImage or CGImage (UIImage would work similar probably)
How do I determine what would be the maximum image size I can generate?
I guess it should be in some relation to the memory available?
I generate bitmap images with Cocoa using NSImage or CGImage (UIImage would work similar probably)
How do I determine what would be the maximum image size I can generate?
I guess it should be in some relation to the memory available?
Apart from a tech curiosity, is always bad to allocate big images. Apple (especially for iPhone/iOS) has worked hard to use tiles and "tiled" classes (i.e. CATiledLayer) to display very large images. I saw it directly at WWDC in past years (see sample code PhotoScroller, https://developer.apple.com/library/content/samplecode/PhotoScroller/Introduction/Intro.html)