Message: 3
Date: Wed, 18 May 2005 17:16:08 +0200
Subject: Loading already scaled JPEGs
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Hello!
Recently, a friend told me, that in certain libraries available to
Delphi, there are functions to load JPEGs in an already scaled
version. That means, I have a 1024 x 768 pixel JPEG on disk and can
load it at, say, scale factor 0.5, resulting in a 512 x 384 pixel
image. The idea here is to circumvent the procedure of loading the
full-sized JPEG and then resizing it.
Is there any such thing in Cocoa? Or anything similar?
My problem is that right now I am loading lots of images, and if some
of those are really big, it noticeably slows down my application's
response time. The images will be displayed at about 400 x 400 pixels
max. anyways, so loading them in an already scaled version would help
me.
Any suggestions / hints?
Regards,
Michael