• 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
NSBezierPath to NSImage?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSBezierPath to NSImage?


  • Subject: NSBezierPath to NSImage?
  • From: Michael Briscoe <email@hidden>
  • Date: Mon, 29 Apr 2002 20:45:36 -0700

Hello List!

This is probably a stupid question, but it's driving me nuts! Is there a way to draw NSBezierPath's directly to an NSImage? I need this so that I can render the NSBezierPath data as a bitmap, and use composite operations in my NSView.

Here's an except of my code:

theImage = [[NSImage alloc] initWithSize:NSMakeSize(theSize, theSize)];

[theImage lockFocus];
[self drawShape]; // bezier path drawing routines
[theImage unlockFocus];

This doesn't seem to be working.

Thanks is advance!



Best Regards,
Michael Briscoe
SkyRocket Multimedia
http://www.digitalfireworks.com/SkyRocket/index.html
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: NSBezierPath to NSImage?
      • From: "John C. Randolph" <email@hidden>
  • Prev by Date: Cocoa Wrapper for Carbon Resource Manager
  • Next by Date: Flood filing an NSImage
  • Previous by thread: Re: Cocoa Wrapper for Carbon Resource Manager
  • Next by thread: Re: NSBezierPath to NSImage?
  • Index(es):
    • Date
    • Thread