• 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: NSImage and flipping
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSImage and flipping


  • Subject: Re: NSImage and flipping
  • From: "Louis C. Sacha" <email@hidden>
  • Date: Mon, 16 Feb 2004 14:43:16 -0800

Hello...

This doesn't actually work (the resulting image would be right side up, but it would still have the text ordering problem that the original poster is dealing with). See the previous posts in this thread for more information (specifically that the NSImage instance method setFlipped: only applies to how the image is displayed / composited in the destination, not the coordinate system used when the image is being drawn into...).

Louis


On 14. Feb 2004, at 10:08, Bjvrn Carlstrvm wrote:

I am trying to implement dragging from a custom view. The view is flipped to make text-rendering work correctly. To drag a piece of graphic from the view I create a NSImage. To get it to render the text correctly I use SetFlipped:YES. Or so I thought... The image comes out upside down!
> [...]
Could anybody tell me what I am missing here. And what is the solution?

You must setFlipped:NO before giving the image to drag:image:...
--
Private Mails To Allan At Top-House Dot DK
http://www.diku.dk/hjemmesider/studerende/duff/
_______________________________________________
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: NSImage and flipping
      • From: "Louis C. Sacha" <email@hidden>
    • Re: NSImage and flipping
      • From: Allan Odgaard <email@hidden>
References: 
 >NSImage and flipping (From: Björn Carlström <email@hidden>)
 >Re: NSImage and flipping (From: Allan Odgaard <email@hidden>)

  • Prev by Date: Re: NSTableView/NSPopUpButtonCell Mysteries
  • Next by Date: Re: Slow Cocoa
  • Previous by thread: Re: NSImage and flipping
  • Next by thread: Re: NSImage and flipping
  • Index(es):
    • Date
    • Thread