|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectdraw.sources.formats.Image
draw.sources.formats.Pgm
public class Pgm
Image PGM.
Le fichier se décomposent en 6 parties.
2 couches suffisent à définir ces parties.
Types utilisées :
| Field Summary | |
|---|---|
static java.lang.String[] |
pgmComments
Commentaires. |
static int |
pgmGrey
Couleur entre noir et blanc. |
private int |
pgmHeight
Hauteur de l'image. |
static java.lang.String |
pgmName
Nom du format. |
private int[][] |
pgmPixels
Pixels de l'image en RGB avec R = G = B. |
private int |
pgmWidth
Largeur de l'image. |
private java.awt.Color[][] |
pixels
Optimisation. |
| Constructor Summary | |
|---|---|
Pgm()
Crée une image PGM. |
|
Pgm(Cadre cadre)
Crée une image PGM. |
|
| Method Summary | |
|---|---|
Draw |
convert()
Convertit l'image en une image DRAW. |
int |
getHeight()
Retourne pgmHeight. |
java.lang.String |
getName()
Retourne pgmName. |
int |
getWidth()
Retourne pgmWidth. |
void |
read(java.lang.String fichier)
Lit un fichier PGM. |
void |
write(java.lang.String fichier)
Ecrit un fichier PGM. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String pgmName
public static final java.lang.String[] pgmComments
private int pgmWidth
private int pgmHeight
public static final int pgmGrey
private int[][] pgmPixels
private java.awt.Color[][] pixels
| Constructor Detail |
|---|
public Pgm(Cadre cadre)
cadre - Cadre.public Pgm()
| Method Detail |
|---|
public java.lang.String getName()
getName in class Imagepublic int getWidth()
getWidth in class Imagepublic int getHeight()
getHeight in class Imagepublic void read(java.lang.String fichier)
read in class Imagefichier - Nom du fichier.public void write(java.lang.String fichier)
write in class Imagefichier - Nom du fichier.public Draw convert()
convert in class Image
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||