Dear programmers, I am hoping that the list can help me solve what I assume are 3 simple issues. I am starting to explore the murky details of working with images.
1. I have an NSImageView which scales the image to fit, aligned centered. My question is, how do I find the NSRect of the image in the image view (as it does not fill the frame)? 2. Also, I used Apples Cropped Image sample code to create a selection rectangle, but when I resize the frame the rectangle does not resize with it. Do I need to do some sort of NSAffineTransform for that to happen 3. The selection rectangles need to be saved in a format that is scale of nsimageview independent, i.e., whenever someone opens this image they should be able to see the selection view over X portion of the image immaterial of the size of the image. I am assuming that I need to use image size to create some absolute transformation of the selection rectangle and convert back and forth... Ideas? Help? Thanks in advance, Matthew TAMS Analyzer: Open source qualitative research tool for OS X http://tamsys.sf.net/ Matthew Weinstein Associate Professor of Science Education Education Program U.W. - Tacoma 253 692-4787 [email protected] Campus Box: 358435 1900 Commerce Street Tacoma, WA 98402-3100 Office: (253) 692-4787 FAX: (253) 692-5612 _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
