lundi 26 septembre 2016

User-BufferedImage rotieren im Zentrum und ohne "anpassung"

lundi 26 septembre 2016
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"

0 commentaires:

Enregistrer un commentaire

 
◄Design by Pocket