Java Graphics fillrec() method with double parameters -


i working on graphics project university. trying use fillrect method java graphics class.

the problem method takes in integer values:

fillrect(int x, int y, int width, int height) 

i need take in decimal values double instead of integers. possible or there sneaky way pass this?

thanks

remember, pixel whole number, unless you're doing high resolution printing, don't need double value. having said that, use rectangle2d.double shape , use graphics2d#fill if feel need it

have @ working gemoetry more details


Comments

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -