• 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
NSUndoManager and Image Manipulation & Zoom
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSUndoManager and Image Manipulation & Zoom


  • Subject: NSUndoManager and Image Manipulation & Zoom
  • From: Michael Becker <email@hidden>
  • Date: Mon, 19 Jan 2004 14:43:26 +0100

Hi all!

I am fairly new to NSUndoManager. In my application, the user can perform several image (NSImage) manipulating actions and I want them to be able to undo/redo them.

E.g., if the user applies a "mosaic"-effect to the image, or draws into it, what is the best way to enable undo?

Another question concerning this topic is: How can I achieve Zooming into images? Right now, I am using the usual NSAffineTransform scale methods, but when I zoom out of the image, and then zoom in again, it's totally corrupted (which is quite obvious as shrinking a 400x400 image to 40x40 results in loss of information).

Do I need to have a "background" image which always stays in its original state and perform the modifications/manipulations on copies of it?

Bye,
Michael
_______________________________________________
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.

  • Prev by Date: How to know the name of the Outlet we are typing in?
  • Next by Date: how to capture data on USB port
  • Previous by thread: RE: How to know the name of the Outlet we are typing in?
  • Next by thread: how to capture data on USB port
  • Index(es):
    • Date
    • Thread