Path: csiph.com!news.mixmin.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Cecil Westerhof Newsgroups: comp.lang.java.programmer Subject: What do you think of my CropImage class Date: Wed, 20 Jul 2016 09:15:33 +0200 Organization: Decebal Computing Lines: 30 Message-ID: <87twfk93vu.fsf@Equus.decebal.nl> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="12baf5125b19322b899c79c2e3878015"; logging-data="7142"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19jM8BUtC+UJ6D6gHGVMkgXJu+0bV1dA9Q=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Homepage: http://www.decebal.nl/ Cancel-Lock: sha1:tt3TPTnq60dBjQGFptUZi+RtD5s= sha1:NleZ9sl2Tovb1CegJ2+Vii+Q22Y= Xref: csiph.com comp.lang.java.programmer:35003 I need to crop some images and decide to write a Java program for it. At the moment it is very rudimentary, I plan to add some functionalities and because I have very little experience with GUI comments on how to implement the GUI better are welcome. At the moment it is build with my camera's in mind and cropping for InstaGram, but when it is seen as useful I will make it more generic. I have a few problems, the most important are: - After loading the first or a new image the first click makes the image disappear and painted again. Subsequent clicks do not have this problem. - The original photo can be rotated. How can I find this out and make the cropped image also rotated? - How can I add comment to an image? - After saving the cropped image I want to display it also. What would be the best way to do this? Some of the functionalities I want to add (other ideas are welcome): - Working with different sets of cropping. - Possibility to resize. (Select an area of 2.160x2.160 and crop it to 1.080x1.080). - Working with a database. -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof