• 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
NSImage and NSImageView questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSImage and NSImageView questions


  • Subject: NSImage and NSImageView questions
  • From: Matthew Weinstein <email@hidden>
  • Date: Sat, 8 May 2010 08:50:36 -0700

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@hidden

Campus Box: 358435
1900 Commerce Street
Tacoma, WA  98402-3100
Office:  (253) 692-4787
FAX:     (253) 692-5612



_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSImage and NSImageView questions
      • From: Steve Christensen <email@hidden>
  • Prev by Date: Re: self = [super init], nil?
  • Next by Date: Re: self = [super init], nil?
  • Previous by thread: Re: prevent drag from QTMovieView
  • Next by thread: Re: NSImage and NSImageView questions
  • Index(es):
    • Date
    • Thread