• 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
Re: again with paths and images
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: again with paths and images


  • Subject: Re: again with paths and images
  • From: Ronny Reichmann <email@hidden>
  • Date: Thu, 21 Dec 2006 18:03:18 +0100

Lock focus on the image, draw your path, unlock focus. After that you can scale your image with the drawn path up. Results will be anti- aliased. You can turn anti-aliasing off in the graphics context.


Am 21.12.2006 um 12:13 schrieb Livio Isaia:

Skip this if you have no time to loose!

I know that my problem seems a bit strange, if not silly, but here's the reason why.

I have two views into which I draw the same image: in the first one at normal size, in the second in a scaled size (bigger) so that the user can clearly see each image pixel. Practically a pixel in the first view will become a 6x6 rect in the second one.
Now, if I draw a bezier path (let's say an oval one, for example) in the first, I want it to be drawn also in the second, but here pixels will become rects, and if I use a scaling transformation I'll get a bigger oval but not a sequence of rects. Hope it's clear...


That's why I thought to draw it all in one image and then draw it in a bigger rect (after all the final result will be a single image...). Of course it' not a great solution, and it's expensive in terms of time and memory.

I tried to calculate the path rects using formulas but with no exciting results (do you know where to find the formulas used in bezier paths?).

So any idea will be apreciated!

Thanks again to everybody,
livio.
_______________________________________________

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


_______________________________________________

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


References: 
 >again with paths and images (From: Livio Isaia <email@hidden>)

  • Prev by Date: Re: Delegates -- WHAT is delegated?
  • Next by Date: NSTableView header and NSToolbar
  • Previous by thread: again with paths and images
  • Next by thread: Re: again with paths and images
  • Index(es):
    • Date
    • Thread