Re: Flipping Text
Re: Flipping Text
- Subject: Re: Flipping Text
- From: Ian was here <email@hidden>
- Date: Wed, 9 Nov 2005 15:21:25 -0800 (PST)
The view and image are both flipped before text is
being drawn in. I found a solution to the problem:
The view is flipped, but I do not set the image to be
flipped. I draw the text onto the image, then I do an
affine transformation onto a temporary image that
cuases it to flip vertically. Then I apply the
temporary image onto the view.
--- Douglas Davidson <email@hidden> wrote:
>
> On Nov 9, 2005, at 9:20 AM, Ian was here wrote:
>
> > I have a flipped view that I am display images in.
> > Each image has text drawn onto it (before being
> > rendered into the view), then the image is flipped
> to
> > match the view using [theImage setFlipped:YES];
> >
> >
> > When the image is rendered into the view, it looks
> > correct; except for the text on the image, it's
> upside
> > down! The text does not seem to flip with the
> image
> > after it's been rendered to the image.
> >
>
> The text system generally assumes flippedness. Try
> flipping the
> image before drawing text into it.
>
> Douglas Davidson
>
>
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
_______________________________________________
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