Scaling a window background image quickly
Scaling a window background image quickly
- Subject: Scaling a window background image quickly
- From: "Mike R. Manzano" <email@hidden>
- Date: Sat, 5 Apr 2008 10:53:12 -0700
Hi everyone,
I have a window with a custom content view. The content view loads in
a PDF image to be used as the window's background. I'd like the image
to scale smoothly when the window is resized, so I set the source
image to scale when resized (scalesWhenResized returns YES), and in my
-drawRect: method, I'm setting the size of the image to the bounds of
the view. This works exactly as I intended, except that it's really
slow.
Is there a better way to do this that's much, much faster?
Thanks,
Mike
_______________________________________________
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