• 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: Offscreen drawing again ...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Offscreen drawing again ...


  • Subject: Re: Offscreen drawing again ...
  • From: Manfred Lippert <email@hidden>
  • Date: Sat, 09 Feb 2002 00:06:38 +0100

> Well, you can do the same thing again: lock focus on your image, and
> then make a bitmapImageRep from the focussed area.

Yeah! That does the trick! I got it working now.

I create an NSBitmapImageRep
I add it to an NSImage
I "lockFocus" the NSImage
I draw my NSAttributedString
I create another NSBitmapImageRep with initWithFocusedViewRect and so I get
the resulting bitmap!
I "unlockFocus"

The result is RGB not RGBA as I wanted it, but that is OK for me at this
point.

Thank you all! :-)
Mani
_______________________________________________
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.

References: 
 >Offscreen drawing again ... (From: email@hidden)

  • Prev by Date: Re: Two ?'s: Default code for NSView & FileMerge problem
  • Next by Date: Drag & Drop stall
  • Previous by thread: Re: Offscreen drawing again ...
  • Next by thread: Re: Offscreen drawing again ...
  • Index(es):
    • Date
    • Thread