Resizing image with slider
Resizing image with slider
- Subject: Resizing image with slider
- From: Michael Carter <email@hidden>
- Date: Mon, 20 Jun 2005 17:38:56 -0700
Hello all. I'm interested in being able to resize an image on the fly
using a slider control, much the same way that iChat allows you to
resize an image dropped on it's image well to fit within a pre-
defined rectangle.
I've subclassed an NSImageView and draw the "target" rect in the
middle, and can drop images onto the view. The next thing I need to
figure out is how best to provide (semi) smooth resizing using the
slider. What is the "best practice" to do this?
Should I make a copy of the imageView's image, change it's size based
on the floatValue of the slider, then copy the new image back to the
imageView? Or is there a better / more efficient way to resize?
Thanks!
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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