Java acxImage

INDEX



Fonctions
NomDescription
init(int w, int h) action : init image and size definition
parameters: int w image width
int h image height
return : neant
newImage() action : init image (clear all)
parameters: neant
return : neant
loadImage(String s, int Id) action : read external image
parameters: String s path file
int Id image (num sequential 0..n)
return : neant
build() action : build image
parameters: neant
return : neant
readFile(String f) action : read external file to get draw command
parameters: String f : path file
return : neant
readData(String f) action : init and read external data to get draw command
parameters: String f : data
return : nothing
addData(String f) action : add external data to get draw command
parameters: String f : data
return : nothing
getArray(int i) action : get Image in bytes array
parameters: int i : image format (0 = > GIF / 1 => PNG)
return : byte(] SaffeArray.
saveAs(String s) action : Save image
parameters: String s : path
return : neant
clear() action : free resources
parameters: neant
return : neant
setColor(int i) action : select color
parameters: int i decimal color value
return : neant
setColor(int r, int g, int b) action : select color
parameters: int r decimal value for red
int g value for green
int b value for blue
return : neant
setFont(String face, int style, int size) action : select font
parameters: String face font name
int style font style (0=> Plain, 1 => Bold, 2 => Italic, 3 => Bold and Italic)
int font syze
return : neant
drawLine(int x, int y, int x2, int y2) action : Draw line
parameters: int x, int y 1st point position
int x2, int y2 2nd point
return : neant
drawLine(int sz, int x, int y, int x2, int y2) action : Draw line
parameters: int sz : line size
int x, int y 1st point position
int x2, int y2 2nd point
return : nothing
drawString(String s, int x, int y) action : Draw String
parameters: String s
int x, int y position
return : neant
drawRect(int x, int y, int w, int h) action : Draw rectangle empty
parameters: int x, int y position
int w, int h size
return : neant
fillRect(int x, int y, int w, int h) action : Draw rectangle filled
parameters: int x, int y position
int w, int h size
return : neant
draw3DRect(int x, int y, int w, int h, boolean b) action : Draw 3D rectangle empty
parameters: int x, int y position
int w, int h size
boolean b : style 3D
return : neant
fill3DRect(int x, int y, int w, int h, boolean b) action : Draw 3D rectangle filled
parameters: int x, int y position
int w, int h size
boolean b : style 3D
return : neant
drawRoundRect(int x, int y, int w, int h, int r1, int r2) action : Draw rounded rectangle empty
parameters: int x, int y position
int w, int h size
int r1, int r2 : size et arc
return : neant
fillRoundRect(int x, int y, int w, int h, int r1, int r2) action : Draw rectangle bord arrondi filled
parameters: int x, int y position
int w, int h size
int r1, int r2 : size et arc
return : neant
drawOval(int x, int y, int w, int h) action : Draw oval empty
parameters: int x, int y position
int w, int h size
return : neant
fillOval(int x, int y, int w, int h) action : Draw oval filled
parameters: int x, int y position
int w, int h size
return : neant
drawImage(int iId, int x, int y) action : Draw a loaded image
parameters: int iId : Id image
int x, int y Position
return : neant
drawImage(int iId, int x, int y, int w, int h) action : Draw a loaded image
parameters: int iId : Id de l'image
int x, int y position
int w, int h image size
return : neant
drawArc(int x, int y, int w, int h, int r1, int r2) action : Draw arc empty
parameters: int x, int y position upper-left point
int w, int h size
int r1, int r2 : posotion de arc et size arc
return : neant
fillArc(int x, int y, int w, int h, int r1, int r2) action : Draw arc filled
parameters: int x, int y position point upper-left point
int w, int h size de l'arc
int r1, int r2 : posotion arc et size arc
return : neant
Retour Index



Copyright © 1996..2002, R. BERTHOU. Tous droits réservés.
Dernière modification le 09 Aout 2002 09H26