Decoupe d'image en java
Bonjour a tous,
je charge une image qui fait 1600pixel sur 1600. A partir de cette image je voufrais récupérer une portion d'image a partir d'un point qui serait en 400*400 puis l'enregistrer sur mon disque
je charge une image qui fait 1600pixel sur 1600. A partir de cette image je voufrais récupérer une portion d'image a partir d'un point qui serait en 400*400 puis l'enregistrer sur mon disque
5 réponses
-
Modérateursalut
as tu exploré le package javax.imageio ??
http://java.sun.com/j2se/1.4.1/docs/api/
Choubadamour:
Le doudou à format c: -
Modérateur??? kessako?
Choubadamour:
Le doudou à format c: -
Il doit vouloir parler de :
CropImageFilter
public CropImageFilter(int x,
int y,
int w,
int h)Constructs a CropImageFilter that extracts the absolute rectangular region of pixels from its source Image as specified by the x, y, w, and h parameters.
Parameters:
x - the x location of the top of the rectangle to be extracted
y - the y location of the top of the rectangle to be extracted
w - the width of the rectangle to be extracted
h - the height of the rectangle to be extracted
la culture c comme la confiture - on en a + on l'etale -
Modérateurah? connaissais pas
à disséquer ce brol ;)
Choubadamour:
Le doudou à format c: -
cropimage