Java jspImage V 2.05

INDEX



Fonctions
NomDescription
init(int w, int h) action : init image and size definition
parameters: int w image width
int h image height
return : nothing
newImage() action : init image (clear all)
parameters: nothing
return : nothing
loadImage(String s, int Id) action : read external image
parameters: String s path file
int Id image (num sequential 0..n)
return : nothing
setEncoding(String senc) action : change default encoding
parameters: String senc encoding
return : nothing
build() action : build image
parameters: nothing
return : nothing
readFile(String f) action : init and read external file to get draw command
parameters: String f : path file
return : nothing
readFile(String f, String enc) action : init and read external file to get draw command with new encoding value
parameters: String f : path file
String enc : encoding
return : nothing
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 : nothing
clear() action : free resources
parameters: nothing
return : nothing
setColor(int i) action : select color
parameters: int i decimal color value
return : nothing
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 : nothing
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 : nothing
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 : nothing
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
drawLine(int sz, int x, int y, int x2, int y2, int arrow) action : Draw line with arrow
parameters: int sz : line size
int x, int y 1st point position
int x2, int y2 2nd point
int arrow : 0 => no arrow, 1 left arrow, 2 right arrow, 3 left and right arrow
return : nothing
drawString(String s, int x, int y) action : Draw String
parameters: String s
int x, int y position
return : nothing
drawString(String s, int x, int y, String enc) action : Draw String with new encoding value
parameters: String s
int x, int y position
String enc encoding
return : nothing
drawString(String s, int x, int y, int rot) action : Draw String with a rotation
parameters: String s
int x, int y position
int rot : texte rotation in deg.
return : nothing
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 : nothing
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 : nothing
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 : nothing
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 : nothing
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 : nothing
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 : nothing
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 : nothing
drawOval(int sz, int x, int y, int w, int h) action : Draw oval empty
parameters: int sz line size
int x, int y position
int w, int h size
return : nothing
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 : nothing
drawImage(int iId, int x, int y) action : Draw a loaded image
parameters: int iId : Id image
int x, int y Position
return : nothing
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 : nothing
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 : nothing
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 : nothing
rotate(int rot) action : Dmake a rotation (for next draw command)
parameters: int rot : rotation in deg.
return : nothing
Retour Index



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