N
N
Neonoviiwolf2018-02-07 01:16:19
Java
Neonoviiwolf, 2018-02-07 01:16:19

How can one change the resolution of PNG or JPEG in javaFX and Android?

Good
There is a difficulty, you need to add pictures in the application that will be saved, but the pictures can be of different sizes, but I need to bring them to a certain form.
Those. you need a resolution of 800*600, and the picture is 1600*800, but you need to save it in a resolution of 800*600. If the picture is smaller, then stretch it a bit. Another point, if the resolution is, for example, 1920 * 1080, then reduce the horizontal to 800, and the height is a multiple, i.e. somewhere around 450.
These things need to be implemented on javafx and then similarly in android. So far, it’s primarily needed in javafx, but I still couldn’t find an understandable example, I haven’t looked for android yet, I’ll be grateful for the tips in these directions

Answer the question

In order to leave comments, you need to log in

1 answer(s)
U
uncleJasper, 2018-02-09
@uncleJasper

Here www.cyberforum.ru/post2629882.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question