• 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: affine transformation of bitmap images
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: affine transformation of bitmap images


  • Subject: Re: affine transformation of bitmap images
  • From: Robert Clair <email@hidden>
  • Date: Fri, 25 Feb 2005 14:27:42 -0500

Did you draw the image on the screen at some point ? This, at least in my experience, is what makes it cache. The ways of NSImage are mysterious. Try adding

  [newImg setDataRetained: YES];

before you draw. If that doesn't do it, then

[newImg lockFocus];
NSBitmapImageRep* newBitmapRep =
         [[NSBitmapImageRep alloc] initWithFocusedViewRect:
             NSMakeRect( 0.0,0.0, [newImg size].width,
                [newImg size].height)];
[newImg unlockFocus];

will give you a bitmapRep with the pixels.

Bob Clair

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: affine transformation of bitmap images
      • From: "Sean McBride" <email@hidden>
  • Prev by Date: Re: Releasing what's in an array?
  • Next by Date: Re: Releasing what's in an array?
  • Previous by thread: Re: affine transformation of bitmap images
  • Next by thread: Re: affine transformation of bitmap images
  • Index(es):
    • Date
    • Thread