Re: Strange effect when rotating and scaling
Re: Strange effect when rotating and scaling
- Subject: Re: Strange effect when rotating and scaling
- From: "John C. Randolph" <email@hidden>
- Date: Wed, 10 May 2006 17:40:20 -0700
On May 9, 2006, at 11:55 AM, Terry Heaford wrote:
Please be kind to a newbie.
I have a rotated scaled image in a sub-classed NSView within an
NSScroller.
I have just noticed that when the image is scaled and I am using
the rotation slider which is implemented in a panel I get a line
from 2 of the corners which seem to contain some remnants of the
image when at its previous location. The line is not for the full
length of the width or height of the bounds rect but is on its
perimeter.
It's as though the rect was not cleared correctly when the image is
rotated. I do not know enough cocoa to diagnose why this should be
happening.
Has anyone seen this before and could they please point me in the
right direction.
Make sure that your -drawRect: method completely fills all of the
rects you get from -getRectsBeingDrawn:count:
-jcr
"The problem with trying to child-proof the world, is that it makes
people neglect the far more important task of world-proofing the
child." -- Hugh Daniel
_______________________________________________
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