GP32 Rotate and Scale


vishwats

Still Fresh
Joined
Dec 4, 2003
Messages
51
Hi,
does any one have custom libraries with functions that can rotate and scale bitmaps ? (ported for GP32 use), what do you do when you need to rotate or scale images ? as GP32 do not have hardware support.

Rotation of 90 deg is not a problem, but rotating at any angle is what I need.
Kindly let me know of a Library or source code that has this implemented.

Thanks in advance
-vishwa
 
I think that you can find comething like that on Mr.Spiv's site... www.deadcodersocciety.tk
 
I checked it out,
it is mostly in ASM, I need a c or c++ implementation of the same.

At least some discussion or article, as to how it has been implemented for GP32 SDK, I have read quite a few of those for Pascal, Delphi, VC++, some of them work, some of them don't, and all of them are slow.

Hence this request

Thanks
-vishwa
 
The "code" also includes pure C implementation.. If you checked the code the ASM and C version of the rotation code can be selected via #ifdef etc.. :blink:
 
I tried to use it,
I failed. The screen flashes like crazy when I use it.
huh :(

Can you tell me how to use it with some explanation, sorry if Iam being little stupid.

It compiles well, I send two buffers as parameters, and some values as angle and zoom.

What are valid values for angle and zoom ? and also what size of bitmap the source and dest should be ?

Thanks for all the help
-vishwa
 
Are you using the h3.tgz "RotoZoom" code?

If so... how do you compile it using devkitadv (I've set it up following Rico's tutorial) - i.e what needs to go in the Makefile and what other files need to change?

Thanks.
 
I just copied the CRotozoom function into one of my classes and call it directly.
Of course you also need to copy the sinc. and some of the variable declarations from the top.

I am also usiong Rico's setup, and I love it.

My only problem is to make it work.

Do any1 have an example of how the usage is ? and does it take any size of bitmaps ?

Thanks
-vishwa
 
Back
Top