How to incrementally compress jpeg?

2009-11-20 Thread Phi Le
I posted this question at http://stackoverflow.com/questions/1773360/how-to-compress-jpeg-image-with-cocoa . Copy and paste: I have an jpeg image and I want to be able to incrementally compress it using Cocoa/Core Image/Core Graphics.  For example, I have A.jpg (3MB), I compress A and get B.jpg (1M

Re: How to incrementally compress jpeg?

2009-11-20 Thread Phi Le
, Jens Alfke wrote: > > On Nov 20, 2009, at 1:47 PM, Phi Le wrote: > > I have an jpeg image and I want to be able to incrementally compress > it using Cocoa/Core Image/Core Graphics.  For example, I have A.jpg > (3MB), I compress A and get B.jpg (1MB), compress B and get C.jpg >

Cannot use malloc debug

2009-12-16 Thread Phi Le
Hello, I can't run malloc debug. Even on a simple program (Xcode -> New Project -> Application -> Cocoa Application ), without any modification the default project. I am developing on a Macbook Pro - 10.6.2 with Xcode 3.1.4. Thank you for you help. Here is my crash report: Process: Test

Banding/smoothing problem with drawing angled gradients.

2009-03-19 Thread Phi Le
Hello, I want to draw angled gradients with multiple sharp transitions using NSGradient. I am not getting very smooth transitions between the colors. Please take a look at my attachment to see the problem. Are there solutions without having to use NSShading? Thanks, Phi - (void) drawRect: (