I would like to add Image scaling method to my SWING application. I am using the following code to zoom in/out images:
The problem is that after running this method an image becomes black. I tried different ways to improve the code, but all of them failed. Could please someone help me to solve the problem. Thanks a lot!