• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Compositing shrunk cells
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Fwd: Compositing shrunk cells
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: Getting the last date of the month?
  • Next by Date: Re: NSTable and custom NSCell issues
  • Previous by thread: Re: How to get key events correctly
  • Next by thread: Fwd: Compositing shrunk cells
  • Index(es):
    • Date
    • Thread