[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Slick Forums :: View topic - BUG: centerOfRotation() - Image general
Slick Forums
http://slick.ninjacave.com/forum/

BUG: centerOfRotation() - Image general
http://slick.ninjacave.com/forum/viewtopic.php?f=4&t=4252
Page 1 of 1

Author:  138 [ Wed Dec 07, 2011 9:45 am ]
Post subject:  BUG: centerOfRotation() - Image general


Author:  liamzebedee [ Wed Dec 07, 2011 11:39 am ]
Post subject:  Re: BUG: centerOfRotation() - Image general

And why would the expected output be 5,5? An image of width and height of 400, would have a center at 200,200.

Author:  138 [ Wed Dec 07, 2011 12:09 pm ]
Post subject:  Re: BUG: centerOfRotation() - Image general

Oh. A little typo there. The line that says "centerOfRotation(5,5)" should really be saying "setCenterOfRotation(5,5)". That is also what I expect it to return or it wouldn't be much point being able to set it at all.

Author:  R.D. [ Fri Dec 09, 2011 8:00 am ]
Post subject:  Re: BUG: centerOfRotation() - Image general

the init calls are actual pretty neat and also it's just a call which will be skipped if the image is initialized ;) Try getting a value from your object, and then setting the center so you know that init was called at least once and will not be invoked again (unless you have some fancy reinit code that is :))

Setting the center is okay, maybe there is just an init call missing before setting them to ensure it's initialized.

Author:  138 [ Mon Dec 12, 2011 1:52 pm ]
Post subject:  Re: BUG: centerOfRotation() - Image general


Author:  davedes [ Sat Dec 17, 2011 6:35 pm ]
Post subject:  Re: BUG: centerOfRotation() - Image general


Author:  Tommy [ Sat Dec 17, 2011 7:00 pm ]
Post subject:  Re: BUG: centerOfRotation() - Image general


Author:  davedes [ Sun Dec 18, 2011 6:35 am ]
Post subject:  Re: BUG: centerOfRotation() - Image general


Author:  Tommy [ Sun Dec 18, 2011 10:43 am ]
Post subject:  Re: BUG: centerOfRotation() - Image general

Aaah, you're right, davedes. Sorry, I missed that (width and height being int). Then your suggestions are of course all valid.

Seems Image needs a bit of an overhaul...

Author:  davedes [ Sun Mar 04, 2012 10:19 pm ]
Post subject:  Re: BUG: centerOfRotation() - Image general

Fixed in the . Will be included in the main branch on next merge.

Author:  Shockah [ Tue Mar 06, 2012 9:51 pm ]
Post subject:  Re: BUG: centerOfRotation() - Image general

Didn't want to make a new thread, but... Center of rotation doesn't use the image scale when drawing, so it's off when drawing a scaled image.

Author:  davedes [ Tue Mar 06, 2012 10:56 pm ]
Post subject:  Re: BUG: centerOfRotation() - Image general


Author:  R.D. [ Wed Mar 07, 2012 8:11 am ]
Post subject:  Re: BUG: centerOfRotation() - Image general

Yepp, sub image should stay like it is. This is how all my ressource managning relies on :)

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/