IKImageView Behavior
IKImageView Behavior
- Subject: IKImageView Behavior
- From: Stephen Gerstacker <email@hidden>
- Date: Sat, 10 Nov 2007 17:47:39 -0500
I've been playing with IKImageView and I have some questions.
1. The documentation for IKImageView states that it can load an image
from an NSData object. I don't see an appropriate method for this in
the API. I currently have to convert my NSData object into a
CGImage. It would be nice to get rid of this code, just for
simplification purposes.
2. In my testing, I've create a program with a 'Next', 'Previous',
'Zoom In' and 'Zoom Out' button. If I do nothing but set an image for
the IKImageView, I get the image, scaled down to fit precisely into
the window. If I resize the window, the image 'disappears'. What
really happens is that the default scale factor is 0.30, so the image
readjusts and shrinks to the size of a pixel. I can then use my zoom
buttons to bring the image back, but I find it weird that the image is
scaled correctly on load. Why is this?
3. If I zoom in/out or resize the window, the image moves from being
centered to jumping the left, bottom corner. Why is this?
4. When I switch to a new image and the image is large, I see the
bottom left corner of the image. I understand this happens because
the coordinate system's origin is the bottom left, but how can I move
to viewing the top left part of the image? I like the Move Mode and
would to start from the top left.
Sorry if these are trivial... I'm just getting my feet wet with this
stuff.
- Stephen
_______________________________________________
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