tokens: A simple approach would be to create a new image with the desired size , transform a Graphics2D of this image according to the selected square region , and then simply paint the original image into this graphics :
ner_tags: O O O O O O O O O B-User_Interface_Element O O O O O O O B-Class O O B-User_Interface_Element O O O O O O O O O O O O O B-User_Interface_Element O O B-User_Interface_Element O