How to write ipeg image created with CGImageRef?

2009-07-10 Thread norio ota
Hi, I'm trying to save an NSBitmapImageRep initialized with - initWithCGImage: onto a disk. But the image of the saved file is bad. This means only black and white horizontal lines are drawn meaninglessly. The _rep in the below code is the NSBitmapImageRep instance allocated and

Re: How to write ipeg image created with CGImageRef?

2009-07-10 Thread Scott Thompson
I'm trying to save an NSBitmapImageRep initialized with - initWithCGImage: onto a disk. But the image of the saved file is bad. This means only black and white horizontal lines are drawn meaninglessly. The _rep in the below code is the NSBitmapImageRep instance allocated and initialized