• 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: drawing views to images
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: drawing views to images


  • Subject: Re: drawing views to images
  • From: matt neuburg <email@hidden>
  • Date: Tue, 22 Jul 2003 11:00:09 -0700

On Tue, 22 Jul 2003 07:20:42 -0700, Francisco Tolmasky
<email@hidden> said:
>Is it possible to render a view to a an image? Something like:
>
>NSImage *myViewImage= [[NSImage alloc] initWithSize:
>NSMakeSize(10.0,10.0)];
>[myViewImage lockFocus];
>[myView drawRect: NSMakeRect(0.0,0.0,10.0,10.0)];
>[myVIewImage unlockFocus];

Yes. m.

--------
matt neuburg, phd = email@hidden, http://www.tidbits.com/matt
pantes anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart. http://www.tidbits.com/
_______________________________________________
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.

  • Prev by Date: Re: Button IB action on rename
  • Next by Date: Re: Public key algorithm
  • Previous by thread: drawing views to images
  • Next by thread: Swapping NSMovieViews
  • Index(es):
    • Date
    • Thread