|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--base.Rimage
Inner classes inherited from class java.awt.Component |
java.awt.Component.AWTTreeLock |
Field Summary | |
static int |
BW
valeur de type pour une image en noir et blanc. |
static int |
COLOR
valeur de type pour une image en couleurs. |
int |
colors
Le nombre de composantes de couleurs de l'image. |
static int |
GRAYSCALE
valeur de type pour une image en niveaux de gris. |
int |
height
La hauteur de l'image. |
short |
max
La valeur la plus élevée dans le tableau des pixels. |
java.lang.String |
name
Le nom de l'image. |
short[][][] |
pixel
Le tableau contenant les points de l'image. |
int |
type
Le type de l'image (Noir et Blanc, Niveaux de gris, Couleurs). |
int |
width
La largeur de l'image. |
Fields inherited from class java.awt.Component |
actionListenerK,
adjustmentListenerK,
appContext,
background,
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
componentListener,
componentListenerK,
componentOrientation,
containerListenerK,
cursor,
dropTarget,
enabled,
eventMask,
focusListener,
focusListenerK,
font,
foreground,
hasFocus,
height,
incRate,
inputMethodListener,
inputMethodListenerK,
isInc,
isPacked,
itemListenerK,
keyListener,
keyListenerK,
LEFT_ALIGNMENT,
locale,
LOCK,
minSize,
mouseListener,
mouseListenerK,
mouseMotionListener,
mouseMotionListenerK,
newEventsOnly,
ownedWindowK,
parent,
peer,
peerFont,
popups,
prefSize,
RIGHT_ALIGNMENT,
textListenerK,
TOP_ALIGNMENT,
valid,
visible,
width,
windowListenerK,
x,
y |
Constructor Summary | |
Rimage(int _width,
int _height,
int _type)
Constructeur d'une image vide. |
|
Rimage(short[][][] _graphic,
java.lang.String _name)
Constructeur à partir d'un tableau de pixels. |
|
Rimage(java.lang.String _filename)
Contructeur à partir d'un fichier. |
|
Rimage(java.net.URL _url)
Contructeur à partir d'une URL. |
Method Summary | |
com.sun.java.swing.ImageIcon |
getImageIcon()
permet de récupérer un ImageIcon correspondant à l'image. |
Rimage |
negate()
Renvoie l'inverse de l'image |
boolean |
writeFile(java.lang.String _filename)
Ecrit l'image au format p? |
Methods inherited from class java.awt.Component |
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final int BW
public static final int GRAYSCALE
public static final int COLOR
public java.lang.String name
public int type
public int height
public int width
public int colors
public short max
public short[][][] pixel
Constructor Detail |
public Rimage(java.lang.String _filename) throws java.io.FileNotFoundException, java.io.IOException
String
- le nom du fichier à lire.public Rimage(java.net.URL _url) throws java.net.MalformedURLException, java.io.IOException
URL
- l'URL où aller chercher l'image.public Rimage(short[][][] _graphic, java.lang.String _name)
short[][][]
- le tableau de pixel de l'image.public Rimage(int _width, int _height, int _type)
int
- width, la largeur de l'image.int
- height, la hauteur de l'image.int
- type, le type de l'imageMethod Detail |
public boolean writeFile(java.lang.String _filename)
le
- nom du fichier où stocker l'image.public com.sun.java.swing.ImageIcon getImageIcon()
public Rimage negate()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |