New topic: 

How to Load images into an array the rotate them

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

         Page 1 of 1
   [ 2 posts ]                 Previous topic | Next topic          Author  
Message        Astral          Post subject: How to Load images into an array 
the rotate themPosted: Thu Mar 22, 2012 9:22 pm                         
Joined: Sun Jan 01, 2012 10:33 am
Posts: 3                Greetings,

I am trying to Load Images for an application into an one dimensional array, 
this is the easy part.  The part I cannot figure out is how to rotate the image 
once is loaded in the array.  I though about creating the different sides of 
the picture characters like front, back, left and right then based on the index 
number of the array display the image corresponding to the key the user 
presses.  Can anyone tell me if this is feasible or is there a better way?  
Your help is appreciated!


Regards,


Astral    
                             Top                 JoeStrout          Post 
subject: Re: How to Load images into an array the rotate themPosted: Fri Mar 
23, 2012 9:46 am                         
Joined: Fri Sep 16, 2011 5:23 pm
Posts: 44
Location: Ft. Collins, CO                I don't quite understand what you're 
trying to accomplish.  Drawing a picture rotated is pretty easy using the 
PixmapShape class (the docs include a good example to get you started).  But 
your mention of front, left, back, and right suggests that you actually have 
four different images for each concept (character or whatever it is).  In that 
case, yes, you need to load all four and then do a bit of math or logic to 
figure out which one to draw.

HTH,
- Joe      
_________________

Joe Strout — Luminary Apps
custom desktop & mobile software  
                             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