Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Problem with rotate_image function. Piece of image is cut away

Author
Message
Mulderman
20
Years of Service
User Offline
Joined: 8th Jan 2004
Location: C:\\
Posted: 9th Nov 2009 19:55 Edited at: 9th Nov 2009 20:15
Here is code that rotates image.

It works but it cuts away piece of image, no matter the rotation.





Can somebody look at the function. Maybe there is some error?

I got the code from forum here:
http://forum.thegamecreators.com/?m=forum_view&t=12583&b=4


I attached screenshot. See that black part? It must be bigger.
Piece of it is cut away. Left hand of ped is gone.
Like offset bug or something.


But code works in DBC. But i need this in DBPro

New GTA2 Map Editor :: http://www.gta2madness.co.cc

Attachments

Login to view attachments
Hodgey
14
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 11th Nov 2009 12:19
Hi, ummm, try adding an extra ,1 to the image that you are loading. This will keep pixel perfect quality of the image.

Try changing


To


Hope this helps

A clever person solves a problem, a wise person avoids it - Albert Einstein
Mulderman
20
Years of Service
User Offline
Joined: 8th Jan 2004
Location: C:\\
Posted: 11th Nov 2009 16:56
Thanks. Seems that it helped.

New GTA2 Map Editor :: http://www.gta2madness.co.cc

Login to post a reply

Server time is: 2024-09-28 12:27:28
Your offset time is: 2024-09-28 12:27:28