Re: Newbie:The best way to resample a bitmap data?
Re: Newbie:The best way to resample a bitmap data?
- Subject: Re: Newbie:The best way to resample a bitmap data?
- From: James Chen <email@hidden>
- Date: Wed, 19 Nov 2003 13:04:25 +0800
Hi,
Thanks for all of these.
On Nov 19, 2003, at 12:41 PM, Shawn Erickson wrote:
On Nov 18, 2003, at 7:46 PM, James Chen wrote:
Hi all,
I'm newbie here in Cocoa. Sorry for duplicate posting of likely
issues.
Say, I have a image file and I'd like to do some image process on it,
such as convolution.
For things like convolution vImage is the way to go if you can target
10.3 or later.
Ya, vImage is what I'm currently using to perform the image processing.
http://developer.apple.com/documentation/Performance/Conceptual/
vImage/index.html
I can send some early code snippets for a side project that I am
working that outlines a way to use the vImage library from Cocoa,
nothing fancy but it works. I don't have it integrated with NSImage
but I could with a little more work (my project just does need that
ability at the moment).
-Shawn
On Nov 18, 2003, at 7:46 PM, James Chen wrote:
I can open image file with NSImage initWithContentsOfFile.
And I send a setSize message to it. The size I set seems to applied
when I render the image.
It doesn't change the bitmap data size in the NSBitmapImageRep within
the NSImage.
How do I really resample the bitmap data via NSImage or any other
class in Cocoa?
This may given a start...
http://developer.apple.com/documentation/Cocoa/Conceptual/DrawImages/
Tasks/CachingRepresentations.html#//apple_ref/doc/uid/20000816
I tried that, and it works. Thanks a lot.
Jam
------------------------------------
Ulead Systems Inc.
James Chen
Software Engineer
Image Div.
------------------------------------
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.