I try to get a subImage from the given image as shown below: I know how to crop in rectangular shape like this
image = image.getSubImage(x, y, width, height);
but by using this method it is not possible for me to get different shape image from a given image, if anyone has suggestion can show me. Thanks in advance!