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 - ScrollTo Effect (href to div) -

javascript - ng-class not responding to change in model in Angular? -

javascript - document.registerElement extending HTMLInputElement prototype while using custom tag name to avoid implicit browser style -