• 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
Annotating on a NSImageView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Annotating on a NSImageView


  • Subject: Annotating on a NSImageView
  • From: Paul Sargent <email@hidden>
  • Date: Sat, 30 Oct 2004 18:06:21 +0100

Hi,

I'm wanting to display an image and then add annotations on top of the image. An example might be a selection marquee in a photo editing program (not exactly what I'm doing but it gives an idea). My idea was to subclass an NSImageView, and then in drawRect call [super drawRect] first and then do some CG* calls to add my annotations.

My problem is that NSImageView will scale the image depending on how big the view is. How do I know what scaling NSImageView has decided upon so that I can draw my annotations at the same scale?

Thanks

Paul

Attachment: PGP.sig
Description: This is a digitally signed message part

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Follow-Ups:
    • Re: Annotating on a NSImageView
      • From: daniel <email@hidden>
  • Prev by Date: Re: Autoresizable NSTextField (2)
  • Next by Date: Re: Determining path to cocoa application in file system
  • Previous by thread: Re: Determining path to cocoa application in file system
  • Next by thread: Re: Annotating on a NSImageView
  • Index(es):
    • Date
    • Thread