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

Re: Problems with flipping an NSImage


  • Subject: Re: Problems with flipping an NSImage
  • From: Michael Watson <email@hidden>
  • Date: Tue, 17 Oct 2006 14:09:27 -0400

You replace all of your transformation code with it.

NSImage *pants = [[NSImage alloc] initWithWhatever:blah];
[pants setFlipped:YES];

Then do whatever you like with your image.


-- mikey

On 17 Oct, 2006, at 12:58, Aychamo Aychamo wrote:

Where in the code would I put that?  Before it draws the image to the
screen, or after?  And would it be while the image has -lockFocus?

Thank you
AA

On 10/17/06, Stephane <email@hidden> wrote:

Le Oct 17, 2006 à 6:47 PM, Aychamo Aychamo a écrit :

> Hello
>
> I'm trying to flip an NSImage so that it will be upside down (...)
> I've searched the list's archives and have seen this done dozens of
> times. I've tried all their code, and it still wont' work for me. I
> must be doing something horribly wrong, but I can't seem to spot it.
>
> The NSImage is drawn inside of one of my NSView subclasses - drawRect
> method as follows:
>
> // result is an NSImage that contains what I want to be flipped...
>
> [...]
>
> Thank you


[myImage setFlipped:YES];

?


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


This email sent to email@hidden

_______________________________________________ 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
References: 
 >Problems with flipping an NSImage (From: "Aychamo Aychamo" <email@hidden>)
 >Re: Problems with flipping an NSImage (From: Stephane <email@hidden>)
 >Re: Re: Problems with flipping an NSImage (From: "Aychamo Aychamo" <email@hidden>)

  • Prev by Date: Re: Localized string coming displaying in All Caps
  • Next by Date: Re: Problems with flipping an NSImage
  • Previous by thread: Re: Re: Problems with flipping an NSImage
  • Next by thread: Re: Problems with flipping an NSImage
  • Index(es):
    • Date
    • Thread