• 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: getting path info from PDF image?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getting path info from PDF image?


  • Subject: Re: getting path info from PDF image?
  • From: Marcel Weiher <email@hidden>
  • Date: Tue, 16 Oct 2001 20:36:27 +0200

On Monday, October 15, 2001, at 02:04 AM, Joe wrote:

I've written a program which loads and displays a small PDF image in an NSView. It's a small circular icon.

I'd like to be able to generate an NSBezierPath of its outline,

If you you're thinking about getting the path data encoded in the PDF: no dice. Although Apple obviously has this data in Quartz someplace, there is no API for getting at it. All you can do with a PDF is render it or embed in another PDF.


so I can draw a beautiful pulsating curvy outline around this image. Actually, I want to do a lot of different things with the image data -- but that's my problem. Being a relative newcomer to Cocoa, I can't figure out any obvious way to work with NSImage data except in a very high level way (resizing, rotating etc).

If you want to get the bitmap data, you can get that into an NSBitmapImageRep using the -initWithFocusedViewRect: method (with the current focus either on a view as the name suggest, or on an NSImage for off-screen use).

After checking the reference documentation, I'm not even really sure where to start looking. After the 10.1 release, I was disappointed to still find a large amount of "Description forthcoming"'s still present in the docs.

Hmm, NSImage and NSBitmapImageRep are fairly well documented.

Marcel

--
Marcel Weiher Metaobject Software Technologies
email@hidden www.metaobject.com


  • Follow-Ups:
    • Re: getting path info from PDF image?
      • From: Joe <email@hidden>
References: 
 >getting path info from PDF image? (From: Joe <email@hidden>)

  • Prev by Date: Newbie Multiple Doc Question
  • Next by Date: Re: Changing Desktop picture from Cocoa app in 10.1 without re-starting Finder
  • Previous by thread: getting path info from PDF image?
  • Next by thread: Re: getting path info from PDF image?
  • Index(es):
    • Date
    • Thread