Mouse input on/and scaled images
Mouse input on/and scaled images
- Subject: Mouse input on/and scaled images
- From: "Brian O'Brien" <email@hidden>
- Date: Wed, 6 Oct 2004 09:30:01 -0600
I've subclassed NSImageView so that I can handle mouseDown events...
now, how do I translate those mouseDown coordinates into coordinates
that relate to the image data? Basically, I want to be able to click
on the image and know what pixel of the original image data was
selected.
Secondly, I've done [myView setImageScaling:NSScaleProportionally] and
[[myView image] setScalesWhenResized:Yes] but the images still don't
scale up from their defined size... scaling down works fine. Any way
to get them to scale up as well? Do I have to do something different
now to map mouse clicks to the appropriate pixel?
_______________________________________________
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