Skip navigation.
 
mlAnnotating on a NSImageView
FROM : Paul Sargent
DATE : Sat Oct 30 19:06:21 2004

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

Related mailsAuthorDate
mlAnnotating on a NSImageView Paul Sargent Oct 30, 19:06
mlRe: Annotating on a NSImageView daniel Oct 30, 20:02