Image resizing and displaying in a JPanel or a JLabel without loss of quality
问题 I\'m developing a java program to capture employee images at the time of registration using a webcam. I can obtain the picture without any problem, and save it in my C: drive but upon retrieval of the image only a part of the image is displayed on the label. Is there a way of re sizing the JPEG before saving it? or before displaying it? like shrinking it without a quality loss.... Thankz a lot Cheerz! :)! okay guys... here goes:- I have commented the code in the way I have used them. //This