Re: Cocoa-dev Digest, Vol 16, Issue 1

2019-01-15 Thread Bruce Stephens
Thanks. Appreciated. > On 16 Jan 2019, at 9:43 am, Vince DeMarco wrote: > > Here is code that will write it out as a PNG > > void WriteImageToPath(CGImageRef image,const char *path) > { >CGImageDestinationRef dest; >CFURLRef url; > >url = CFURLCreateFromFileSystemRepre

Re: Cocoa-dev Digest, Vol 16, Issue 1

2019-01-15 Thread Alex Zavatone
Real easy to google for. Search on jpegRepresentation. Sent from my iPhone > On Jan 15, 2019, at 4:35 PM, Bruce Stephens wrote: > > Any chance to see those few lines of code for NSimage ImageIO to jpeg? > Thanks. Bruce. > >> On 16 Jan 2019, at 7:00 am, cocoa-dev-requ...@lists.apple.com wrote

Re: Cocoa-dev Digest, Vol 16, Issue 1

2019-01-15 Thread Vince DeMarco
Here is code that will write it out as a PNG void WriteImageToPath(CGImageRef image,const char *path) { CGImageDestinationRef dest; CFURLRef url; url = CFURLCreateFromFileSystemRepresentation(kCFAllocatorDefault,(const UInt8 *)path,strlen(path),0); dest = CGImageDest

Re: Cocoa-dev Digest, Vol 16, Issue 1

2019-01-15 Thread Bruce Stephens
Any chance to see those few lines of code for NSimage ImageIO to jpeg? Thanks. Bruce. > On 16 Jan 2019, at 7:00 am, cocoa-dev-requ...@lists.apple.com wrote: > > Send Cocoa-dev mailing list submissions to >cocoa-dev@lists.apple.com > > To subscribe or unsubscribe via the World Wide Web, visi