I’m drawing a histogram (custom data, not related to coloring) on an BufferedImage. And I’d like to make it as wide and tall as possible. Can I do this passing only BufferedImage.createGraphics result to my drawing function? I can’t find how to obtain image dimensions through an instance of Graphics.
I’m drawing a histogram (custom data, not related to coloring) on an BufferedImage. And
Share
I recommend to pass either:
BufferedImageitself orGraphicsinstance and aDimension(unless the plot only requires height, as opposed to WxH – then use anint).