Created
November 19, 2019 06:37
-
-
Save ESidenko/2bff5c26321d6d3fb35dffce2c4033d3 to your computer and use it in GitHub Desktop.
Resizing Images : Svg native resize
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String inputFileName = "Logotype.svg"; | |
try (Image image = Image.load(inputFileName)) | |
{ | |
image.resize(image.getWidth() * 10,image.getHeight() * 15); | |
image.save("Logotype_10_15.png", new PngOptions() | |
{{ | |
setVectorRasterizationOptions(new SvgRasterizationOptions()); | |
}}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment