Path: csiph.com!2.us.feeder.erje.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!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 12:11:31 +0200 Organization: Decebal Computing Lines: 48 Message-ID: <87r3an712k.fsf@Equus.decebal.nl> References: <87twfk93vu.fsf@Equus.decebal.nl> <874m7k86ll.fsf@Equus.decebal.nl> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="12baf5125b19322b899c79c2e3878015"; logging-data="5964"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18BohxOQuGz8WTpjRjmfVAjQ/BsSK6bnt8=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Homepage: http://www.decebal.nl/ Cancel-Lock: sha1:pv6YgHBOapBZOALFhSPC2ARz79U= sha1:lzz1JzvElqnaBBwUKp5ThoR9kms= Xref: csiph.com comp.lang.java.programmer:35032 I wrote a better explanation of what I wanted to accomplish as a reply on my original post. On Wednesday 20 Jul 2016 21:50 CEST, Eric Douglas wrote: > On Wednesday, July 20, 2016 at 3:28:08 PM UTC-4, Cecil Westerhof wrote: >> That is stupid: I thought I had pasted the link, but I did not. >> >:-( >> >> Here it is: >> https://github.com/CecilWesterhof/JavaExamples/blob/master/CropImage/CropImage.java > > That would help. I was wondering if we were supposed to guess the > code. I ran it as is. It is an odd interface. I click Load and it > prompts for a picture. I select one and it displays it, with a > barely noticeable black box in the corner. I click around and it > repaints it and the apparently non-resizeable box moves. The non-re-sizeable is on purpose. > I wrote a > class for displaying images and I recall having issues seeing it > clear and repaint. I'll have to lookup my workaround. That would be nice, > Then I click > Crop and it opens a file open window. I'm guessing this is supposed > to save what's in the box to a new image file. I type a file name > that does not exist and it opens a new window. The initial image > window looks relatively small (640x480?) Depends on the original input. The height and width are both divide by eight because I want to see the complete picture. > This new window looks huge, > and the image is scaled to it? blurry, original looked sharp. No, the cropped image is unscaled. Your original picture is blurry, but you did not see that because it was scaled down. -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof