• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Newbie:The best way to resample a bitmap data?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Newbie:The best way to resample a bitmap data?
      • From: Shawn Erickson <email@hidden>
    • Re: Newbie:The best way to resample a bitmap data?
      • From: Shawn Erickson <email@hidden>
  • Prev by Date: Dynamically Generating GUI forms from an XML file?
  • Next by Date: manual key value binding
  • Previous by thread: Re: Dynamically Generating GUI forms from an XML file?
  • Next by thread: Re: Newbie:The best way to resample a bitmap data?
  • Index(es):
    • Date
    • Thread