Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/15/03 14:11
Read: times


 
#43447 - RE: computer graphics (image rotation)
Responding to: ???'s previous message
Scaling isn't that difficult if you take a reference point (e.g. one corner of the bitmap) and multiply or divide the relative distances from any point in the bitmap by your scaling factor. However, the results are generally quite lousy, especially if you don't use a whole numbers as scaling factors (which will run you out of LCD space quickly).

Rotating a bitmap is done is a similar way, but then you need to calculate the relative movement of all points in both the X and Y directions (using sin and cos functions). Again, the results are generally lousy as well.

There are quite some sites on the internet where scaling and rotation of images is discussed in great depth. Google around a bit and become a bsc in it, I would say.

List of 4 messages in thread
TopicAuthorDate
computer graphics (image rotation)            01/01/70 00:00      
   RE: computer graphics (image rotation)            01/01/70 00:00      
   RE: computer graphics (image rotation)            01/01/70 00:00      
   RE: computer graphics (image rotation)            01/01/70 00:00      

Back to Subject List