Re: Loading very large image files (>10GB)

2017-12-05 Thread Rick Mann
Thanks. I was wondering if a technique like that would work (to read the image in horizontal bands to create a lower-res version). I guess so. > On Dec 5, 2017, at 12:28 , Jean-Daniel wrote: > > UIImage is optimized to read pixel from disk at draw time and can be used to

Re: Loading very large image files (>10GB)

2017-12-05 Thread Jean-Daniel
UIImage is optimized to read pixel from disk at draw time and can be used to downsample a large image progressively ( https://developer.apple.com/library/content/samplecode/LargeImageDownsizing/Introduction/Intro.html ) I guess NSImage can do something similar. If not, this can probably be

Re: NSString equivalent of CFSTR macro?

2017-12-05 Thread Alastair Houghton
On 4 Dec 2017, at 22:47, Rick Mann wrote: > > I have to use some C header file that #defines some string constants. Is > there an equivalent to CFSTR() that constructs NSString literals? E.g., > > > #define NSSTR(s) (@ ## s) <-- magic; this