public class Rotation extends Transformation
| Modifier and Type | Field and Description |
|---|---|
protected int |
type
Type de rotation : 1, 2 ou 3 pour 90°, 180° ou 270°.
|
| Constructor and Description |
|---|
Rotation(int type)
Constructeur : définit le type de rotation.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.awt.Color[][] |
transforme(java.awt.Color[][] pixels)
Tente d'appliquer une rotation à l'image.
|
public Rotation(int type)
type - type de rotation : 1, 2 ou 3 pour 90°, 180° ou 270°protected java.awt.Color[][] transforme(java.awt.Color[][] pixels)
La rotation n'est possible que si l'attribut type vaut 1 (rotation à 90°), 2 (rotation à 180°) ou 3 (rotation à 270°).
transforme in class Transformationpixels - tableau source