Newbie:The best way to resample a bitmap data?
Newbie:The best way to resample a bitmap data?
- Subject: Newbie:The best way to resample a bitmap data?
- From: James Chen <email@hidden>
- Date: Wed, 19 Nov 2003 11:46:08 +0800
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.
I'd like to provide a preview of the result. the preview should be
produced fast.
So I'd like to resample/resize input data to a small one and process it
so that I can give the user a fast feedback on preview.
How do I do resample/resize input with NSImage module?
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?
Very appreciate for any answer or comment,
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.