Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Cecil Westerhof Newsgroups: comp.lang.java.programmer Subject: Re: What do you think of my CropImage class Date: Thu, 21 Jul 2016 17:46:48 +0200 Organization: Decebal Computing Lines: 29 Message-ID: <87twfj56zb.fsf@Equus.decebal.nl> References: <87twfk93vu.fsf@Equus.decebal.nl> <874m7k86ll.fsf@Equus.decebal.nl> <87invz70cf.fsf@Equus.decebal.nl> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="12baf5125b19322b899c79c2e3878015"; logging-data="10772"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/9oyy3F8Yl39yoGTual1J9k2jy0sfTlzA=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Homepage: http://www.decebal.nl/ Cancel-Lock: sha1:6GPAYdC2x4eqdqJmKDwM6/yOLLw= sha1:BdHxdD706GYKQIc6XynWY9s51qo= Xref: csiph.com comp.lang.java.programmer:35050 On Thursday 21 Jul 2016 16:44 CEST, Nigel Wade wrote: > On 21/07/16 11:27, Cecil Westerhof wrote: >> I want to crop a >> piece of exactly 1080x1080 out of a picture. Something I cannot do >> easily with an image editor. > > You can with GIMP. > > From Tools->Transform Tools select Crop. Open the Tool Options > dialog box (Windows->Dockable Dialogs->Tool Options). Check the > Fixed checkbox, and select Size from the dropbox. Enter 1080x1080 in > the entry field. Click on the save button (green arrow pointing to a > "disk"), and choose New tool preset. Give it a suitable name. Now > you can use that preset any time you want to select a fixed size cut > area. > > When you select on the image display it will allow you to drag > around a fixed size rectangle cut box. Click in the box to cut the > area. I did not know that. I certainly should look into it. But I do not mind I started this, because in the long run I want to do have several different sizes to select. It is at least a way to learn Swing. ;-) -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof