New topic: 

How to rotate a picture in a graphic around the center

<http://forums.realsoftware.com/viewtopic.php?t=45552>

         Page 1 of 1
   [ 2 posts ]                 Previous topic | Next topic          Author  
Message        seanclancy          Post subject: How to rotate a picture in a 
graphic around the centerPosted: Mon Oct 08, 2012 12:12 pm                      
   
Joined: Fri Jan 08, 2010 9:59 am
Posts: 243                Hi - I have a delimma which I'm sure somebody may 
have solved.

I am creating a kind of workpage.  I collect snapshot graphics from my software 
like fretboards and such.
on my workpage I have a list box with the graphics images - these I can drag 
onto the workpage canvas and they instantly create a new canvas with the image 
inside them.

Obviously, I want to add a few options - scale and so forth is pretty straight 
forward.

However, I have tried using rotate and what happens is that the image in the 
canvas rotates once and works well, then I go to rotate it again and it draw 
right mostly off the sides of the canvas dimensions.  Obviously, if there's a 
way to rotate the image around the centre it would a solve.
I think the steps would be:
1. Create a picture from the canvas backdrop.  
2. Rotate it.
3. change the dimensions of the canvas so that the width and height will change 
to fit the width and height of the newly rotated shape
Put it back into the image.backdrop

is there any problems with these steps?  Does anybody have a snippet with will 
facilitate rotating a picture around it's centre?
Rock On 
Sean   
                             Top                DaveS          Post subject: 
Re: How to rotate a picture in a graphic around the centerPosted: Mon Oct 08, 
2012 12:14 pm                                 
Joined: Sun Aug 05, 2007 10:46 am
Posts: 4164
Location: San Diego, CA                look at my TRAIN example in this post

http://forums.realsoftware.com/viewtopic.php?f=1&t=45351      
_________________
Dave Sisemore
MacPro, OSX Lion 10.7.4 RB2012r1
Note : I am not  interested in any solutions that involve custom Plug-ins of 
any kind  
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 2 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to