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

Re: Rotated display of bitmap images?


  • Subject: Re: Rotated display of bitmap images?
  • From: Dinu Gherman <email@hidden>
  • Date: Tue, 18 Jun 2002 08:35:03 +0200 (CEST)

Andreas Mayer <email@hidden>:

> > [self setFrameRotation:10.0];
>
> Use NSAffineTransform instead:
>
> NSAffineTransform *transform = [NSAffineTransform transform];
> [transform rotateByDegrees:-angle];

That has exactly the same effect as setFrameRotation: iff
I add either

[transform set];

or

[transform concat];

to enable the transform. Only the image "origin" is rotated,
but not the image data. In fact, I can also remove this code
and still get the same thing displayed:

> > [img drawAtPoint: p
> > fromRect: rect
> > operation: NSCompositeDestinationAtop
> > fraction: 1.0];

Anybody more of a clue?

Regards,

Dinu
_______________________________________________
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: Rotated display of bitmap images?
      • From: Andreas Mayer <email@hidden>
    • Re: Rotated display of bitmap images?
      • From: Dinu Gherman <email@hidden>
References: 
 >Re: Rotated display of bitmap images? (From: Andreas Mayer <email@hidden>)

  • Prev by Date: Revisiting Servlets
  • Next by Date: Re: Protecting Software w/ Software License Keys...
  • Previous by thread: Re: Rotated display of bitmap images?
  • Next by thread: Re: Rotated display of bitmap images?
  • Index(es):
    • Date
    • Thread