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

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -