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

Offscreen drawing again ...


  • Subject: Offscreen drawing again ...
  • From: email@hidden
  • Date: Thu, 7 Feb 2002 22:21:00 -0800

not much feedback on my questions, but I try it again ... ;-)

Did I answer you before? I meant to...

I have to find a way to get the bitmap data _back_!
Does anyone know how to get bitmap data out of an NSImage?

Well, you can do the same thing again: lock focus on your image, and then make a bitmapImageRep from the focussed area.
That said, I'm a bit mystified by NSBitmapImageRep versus NSCachedImageRep, and why they are separate classes, and how one is intended to use NSImage to do this sort of thing (a combination of drawing using Quartz and direct manipulation of bits). I generally have to flail about by trial and error until I find a way that works. The doc in this area could stand improvement too.
So is there an NSImage guru out there who could enlighten Manfred and I as to the One True Way of NSImage?

Ben Haller
Stick Software
_______________________________________________
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: Offscreen drawing again ...
      • From: Manfred Lippert <email@hidden>
    • Re: Offscreen drawing again ...
      • From: Manfred Lippert <email@hidden>
    • Re: Offscreen drawing again ...
      • From: John Hörnkvist <email@hidden>
  • Prev by Date: Re: Removing NSLog & NSAssert for deployment
  • Next by Date: Re: Memory Mania Revisted
  • Previous by thread: Offscreen drawing again ...
  • Next by thread: Re: Offscreen drawing again ...
  • Index(es):
    • Date
    • Thread