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
Post a Comment