+ 1
Picture output
in java can we display a picture on the output screen? Or can we take input complex like a signature from user? through mouse drag and drop.
5 Answers
+ 6
You can use BufferedImage (works like a bitmap) to generate images from byte[] or copy an image, etc. (Basically anything that deals with image data)
The object will then be the image that is generated/stored. Outputting the image depends on what you are doing and how you want it to be displayed.
+ 2
Unfortunately not in Sololearn š
+ 1
@shobhit I have a task in which I need to input a signature and then output it within a square of specified dimensions could you please help me with it?
it's not here though.
0
u can do it all.
but usually using java api which are supports gui like swing, awt, javafx they instead open a new window to output your graphics. So all graphics which you make opens in a new window rather than command line.
0
sure but what do u mean by signature.