Hi Erick, I've done this via method b), and it's really not that much of a pain. One session of sitting down with the rotate tool in Photoshop and automating the export process, and you're done. I found that 72 graphics made for a smooth rotate - one for every 5 degrees. My class stores the actual angle even more accurately, and just uses the closest angle graphic when rendering.
My DJ app uses this approach: http://www.dj1800.com/images/fullscreen.gif Works well if you want a true knob "turning" effect. Unfortunately, I'm a little wary of sharing the class or graphics - last time I shared something like this (it was some iTunes parsing classes in the previous case), a competitor (quite legitimately and fairly) integrated them into his app, so I don't really want to do the same again :-( Dave. > From: "E. Tejkowski" <[EMAIL PROTECTED]> > Reply-To: REALbasic NUG <[email protected]> > Date: Wed, 15 Mar 2006 19:16:56 -0600 > To: REALbasic NUG <[email protected]> > Subject: rotary knob? > > Does anyone have an example of a rotary knob that has the following > characteristics? > > (a) looks good, rotates smoothly and doesn't look like it has > "corners" in the travel > (b) doesn't require 64 pre-rendered/rotated knob images > (c) can use 2DShape, Graphics, or whatever > > I've found a few on the web, but most failied a and/or b. > > Thanks, > Erick > _______________________________________________ > Unsubscribe or switch delivery mode: > <http://www.realsoftware.com/support/listmanager/> > > Search the archives of this list here: > <http://support.realsoftware.com/listarchives/lists.html> _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
