Compositing shrunk cells
Compositing shrunk cells
- Subject: Compositing shrunk cells
- From: Nick Zitzmann <email@hidden>
- Date: Fri, 23 Mar 2007 19:32:03 -0600
I've checked the archives, and although this has come up before, no
one had a solution...
I've got three cells which I'm drawing into a view. The cells have a
fixed cell size and can't be drawn pre-shrunk. I want to draw these
cells into a view and shrink them.
At first I was just using NSAffineTransform to scale down the
drawing, but then I couldn't get them to draw at the top of the view,
since apparently scaling the drawing also scaled the available space.
So then I tried creating an NSImage, applying the transform, and
drawing the cells into the image. That worked great, and I got an
image that I could draw anywhere, but the problem is the image lost
all of its vector data, so I'm left with a blurry and pixelated trio
of cells. No matter what I do with image caching and data retention,
it still loses vector data.
What do I need to do to draw these cells in the view, shrunk, at the
top of the view, and arranged horizontally, without losing quality?
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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