NSImage resizing
NSImage resizing
- Subject: NSImage resizing
- From: Anthony Duer <email@hidden>
- Date: Wed, 4 Feb 2004 06:02:53 -0800
Hey all,
Currently I'm attempting to size a NSImage to be displayed in a
NSImageView. Depending on the user, I'd like to display the image at
various percentages of it's current height. What I've been doing is
storing the images original size via the -size call. When the user
alters the height, I'm multiplying the original size by the float
scale. This produces the correct result of a size of the original width
and original*scale height. However, when I call -setImage: on my
NSImageView with my new NSImage, the NSImageView doesn't change, it
still displays the full height image. Currently, the NSImage has been
set to NO for scaling when resized, the NSImageView has no scaling and
has the NSImage displayed centered at the bottom. The NSImageView is
also enabled. Any help?
~Anthony Duer
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.