+ 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.

24th Sep 2017, 3:40 PM
Sahaj Bamba
Sahaj Bamba - avatar
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.
24th Sep 2017, 5:10 PM
Wen Qin
Wen Qin - avatar
+ 2
Unfortunately not in Sololearn šŸ˜…
24th Sep 2017, 4:03 PM
Ekansh
+ 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.
24th Sep 2017, 4:50 PM
Sahaj Bamba
Sahaj Bamba - avatar
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.
24th Sep 2017, 4:01 PM
shobhit
shobhit - avatar
0
sure but what do u mean by signature.
24th Sep 2017, 4:51 PM
shobhit
shobhit - avatar