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

5 réponses

  1. Modérateur
    ??? kessako?

    Choubadamour:
    Le doudou à format c:
    1. 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
      1. Modérateur
        ah? connaissais pas

        à disséquer ce brol ;)

        Choubadamour:
        Le doudou à format c: