Rotate an image

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
DAanDASja
Posts: 17
Joined: Sun Oct 14, 2007 8:58 am

Rotate an image

Post by DAanDASja »

Hi

What I want is simple: Rotate an image.

Does anyone know how I can do this?

Thx for your help
DAan
hibbyware
Posts: 78
Joined: Wed Mar 28, 2007 10:29 am

Post by hibbyware »

Take a look at this as it may be ideal for you and has image rotation --> Link <--
DAanDASja
Posts: 17
Joined: Sun Oct 14, 2007 8:58 am

Post by DAanDASja »

Thanks Dude!
This is exactly what I was looking for.

Thx ;)
Art
Posts: 642
Joined: Wed Nov 09, 2005 8:01 am

Post by Art »

Yeah thanks, tried it, it works good.

Should be helpful for use with my Mickey Mouse watch style clock,
where an animated character of myself points at the numbers on a clock face
with his/my arms.

I guess it should be possible with two arm sprites.
Even one if I can flip one of them.
If not actually, then potentially.
DAanDASja
Posts: 17
Joined: Sun Oct 14, 2007 8:58 am

Post by DAanDASja »

Hey guys
After a long time I tried to get along with the Easy Accelerated Image Lib.
But it didn't work as i expected.
The images were displayed incorrectly. For example, an image of a drawn person (with Photoshop) becomes completely black and has a fat black border around its body...

Does anyone know how to solve this problem?
Thanks in advance!

DAan
Art
Posts: 642
Joined: Wed Nov 09, 2005 8:01 am

Post by Art »

Wasn't a problem for me.
Did you try the windmill example?
The rotor is being rotated.
If not actually, then potentially.
DAanDASja
Posts: 17
Joined: Sun Oct 14, 2007 8:58 am

Post by DAanDASja »

The windmill example works fine, but not if I try it with my images... :(
So my images must be the reason. I just wonder why, because with the lib from the tutorial they were displayed correctly.
User avatar
jean
Posts: 489
Joined: Sat Jan 05, 2008 2:44 am

Blue screen for dummies

Post by jean »

Let's say we are going to make a special effect of you falling in an endless hole like in "Lord of the Rings". You have to act shaking yourself in front of a the camera having a blue sheet as a background (Computer Graphic will put some cool effect under you in its place...). Once you have captured the image sequence on your PC, you can take it and feed a program that elaborates alpha masks. For instance, we could say: "if blue component of a point is far grater than red and green toghether, then this point is completely transparent", but if the specified squelch is not adequate, the blue points near your white dress (that result too bright to belong to the blue screen) will NOT be masked out, resulting in a blue aura around you. When you draw by hand your images, quite the same thing happens: you must think that a colour is ALWAYS 4 components, so you cannot forget about the RGB color of transparent pixels, because in resampling -or other type- operations they will screw up everything adding those borders. Solutions? Specify for background color of pixels that will become transparent a color that's not too disturbing, and cut your images by hand trying to reduce the "feather" (i.e. make sharp cuts).
That's all i can say without taking a look to your images or your code...

jean
DAanDASja
Posts: 17
Joined: Sun Oct 14, 2007 8:58 am

Post by DAanDASja »

Thanks for your reply, but I couldn't solve the problem.
I tried everything to reduce the "half-transparent" pixels around the drawing to avoid a black aura like you've said... But I can't remove the whole aura...
Is there a way to change some values in the library (maybe reducing the tolerance of transparency) or something like that?

DAan
Art
Posts: 642
Joined: Wed Nov 09, 2005 8:01 am

Post by Art »

If anyone has the Windmill example could you please rapidshare it???
The link is dead :(
If not actually, then potentially.
hibbyware
Posts: 78
Joined: Wed Mar 28, 2007 10:29 am

Post by hibbyware »

Not sure what version the windmill example came with,

It could of been with both,

Easy Accelerated Image Rendering Lib v0.1

Easy Accelerated Image Rendering Lib v0.2
Pirata Nervo
Posts: 409
Joined: Tue Oct 09, 2007 4:22 am

Post by Pirata Nervo »

Last time I used this library, I used 0.2 and it came with the Windmill, it worked perfectly with my images, I bet the problem is your images or if you changed something in the lib files, that might be the problem too.
Image
Upgrade your PSP
Art
Posts: 642
Joined: Wed Nov 09, 2005 8:01 am

Post by Art »

Thanks for the link.
I remember searching QJ for "Windmill" :D

I had no problem replacing the images:
http://rapidshare.com/files/103150997/Demo.zip.html
They were made with Paint, the Windows bundled Paint program.
Art.
If not actually, then potentially.
Post Reply