Re: Where is origin transformation in Sketch example?
Re: Where is origin transformation in Sketch example?
- Subject: Re: Where is origin transformation in Sketch example?
- From: Shawn Erickson <email@hidden>
- Date: Wed, 7 Dec 2005 13:23:08 -0800
On 12/7/05, Kevin Spraggs <email@hidden> wrote:
>
>
Evening/Morning/Afternoon* Chaps!
>
>
As a progressing newbie to this cocoa and Objective-C business, I
>
have moved from CoreData onto some simple graphics, and I am trying
>
to wrap my brain around Apple's Sketch example on Tiger. I thought
>
that I was progressing well, but I have one current nagging problem
>
with it: Where is the origin transformed from the bottom left to the
>
top left in the SKTGraphicView? I stumbled upon this fact, as I have
>
modified the Sketch example to have a zoom factor using NSView's
>
scaleUnitSquareToSize: method only to find that imported images do
>
not rescale accordingly due to the use of NSImage's
>
compositeToPoint:operation: in the SKTImage class. Replacing this
>
with the drawAtPoint:fromRect:operation:fraction: causes the images
>
to be rescaled correctly, but they then appear up-side-down.
- (BOOL)isFlipped {
return YES;
}
-Shawn
_______________________________________________
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