Re: High-quality image upscaling
Re: High-quality image upscaling
- Subject: Re: High-quality image upscaling
- From: Christian Graus <email@hidden>
- Date: Wed, 11 Feb 2009 06:30:29 +1100
I'm not sure if there are any classes for this, but I'd assume so. A
bilinear or bicubic filter is often used to upscale an image, bicubic is
indeed better. The DPI setting of an image can be arbitrary and is
unrelated to the number of pixels ( for example, if you change the
resolution of your monitor, you'll see a different size image, the same
number of pixels will take up a different number of inches ). Do you need
to change the DPI setting, change the size of the image, or both ? The
typical way to use a framework to resize an image, is to create a bitmap in
the new size, and draw the image onto it, I'd assume you'd have options
there to use a smoothing filter if need be. Otherwise, the code to do such
a filter is easily found on the web ( there's definitely a C# version I
wrote , on Code Project, with an article explaining the algorithm ). Of
course, this would mean finding out how to iterate over the pixels of an
image, and create a new image with pixels that you set, which is well
outside my very limited Cocoa knowledge.
Probably someone who knows more about Cocoa than I do will give you a more
specific answer, but if not, then hopefully this helps.
Christian
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden