When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
6 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
It will truncate the float, so if you have 12.9999 when you cast it to an int you will just get 12, you can use std::round to round a number properly rather than truncating it. However having fractional parts of pixels doesn't make much sense unless you have some form of anti-aliasing
I have an Anti-aliasing in my main program.When i convert to Millimeters i get like "12.4" "11.32",rounding it dont make much sense because the circles will have wrong size.
rounding will make sizes worng. If i will get "8.5" and "8.90" that will be 9 after rounding,same sizes,but they are not.
@crude rose
Please don't delete forum posts. They can be helpful to refer to later and other members can learn from them. In the future you can use !solved to close a post and mark a post as solved.
!solved