Java BufferedImage Trim trim(BufferedImage image, Rectangle trimRect)

Here you can find the source of trim(BufferedImage image, Rectangle trimRect)

Description

trim

License

Open Source License

Declaration

public static BufferedImage trim(BufferedImage image, Rectangle trimRect) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.awt.Rectangle;

import java.awt.image.BufferedImage;

public class Main {

    public static BufferedImage trim(BufferedImage image, Rectangle trimRect) {
        return image.getSubimage(trimRect.x, trimRect.y, trimRect.width, trimRect.height);
    }/*from  ww  w  . j  av a 2s .c  o  m*/
}

Related

  1. trim(BufferedImage image)
  2. trim(BufferedImage image)
  3. trim(BufferedImage image, int trimTop, int trimLeft, int trimBottom, int trimRight)
  4. trim(BufferedImage img)
  5. trim(final BufferedImage img)
  6. trimAroundCenter(BufferedImage img, Point center, Color bgColor)
  7. trimImage(BufferedImage image)