Affichage des articles dont le libellé est User-BufferedImage rotieren im Zentrum und ohne "anpassung". Afficher tous les articles
Affichage des articles dont le libellé est User-BufferedImage rotieren im Zentrum und ohne "anpassung". Afficher tous les articles

lundi 26 septembre 2016

User-BufferedImage rotieren im Zentrum und ohne "anpassung"

lundi 26 septembre 2016 0
Hey Leute,

Ich hab das Problem das ich ein spezielles BufferedImage immer und solange die S taste gedrueckt ist rotieren will.

Ich verwende dafuer bisher folgenden Code

Code (Java):
     public static BufferedImage rotateImageX(BufferedImage img, double angle) {
            double sin = Math.abs(Math.sin(Math.toRadians(angle))), cos = Math.abs(Math.cos(Math.toRadians(angle)));
            int w = img.getWidth(null), h = img.getHeight(null);
            int neww = (int) Math.floor(w * cos...
User-BufferedImage rotieren im Zentrum und ohne "anpassung"

User-BufferedImage rotieren im Zentrum und ohne "anpassung"
 
◄Design by Pocket