(The bicubic interpolation algorithm can realize the arbitrary share scaling of images. Java programs can run completely, but there is no solution. Come to My Love Open Source and have a look. There will be materials or software you need, tutorials, patches, source code, etc)