Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Knute Johnson Newsgroups: comp.lang.java.help Subject: Re: Defining pixelValue Date: Sat, 24 Dec 2011 11:57:28 -0800 Organization: A noiseless patient Spider Lines: 37 Message-ID: References: <341861a6-18e3-40ec-8185-f3c477e11ef4@u32g2000yqe.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sat, 24 Dec 2011 19:57:28 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="mz/LDSJwiWnk3Jnnqg7x+Q"; logging-data="8374"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19E/UzCjD6+XmYKFCVPm/ps" User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20111105 Thunderbird/8.0 In-Reply-To: Cancel-Lock: sha1:+ifnOWHUlYV8O79SNtuP8T8QjPE= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.help:1478 On 12/24/2011 9:04 AM, John B. Matthews wrote: > In article, > Knute Johnson wrote: > >> On 12/23/2011 10:36 PM, John B. Matthews wrote: >>> In article >>> <341861a6-18e3-40ec-8185-f3c477e11ef4@u32g2000yqe.googlegroups.com>, >>> bH wrote: >>> >>>> "ImageIO.write(image, "jpg", new File("D://test.jpg"));" >>>> >>>> This single line coding resulted in the >>>> image being correctly moved to the destination, >>>> but the image details had a pink shading over the entire >>>> image, similar to having rose(pink) colored lenses >>>> in my sun glasses and looking at the image, which was >>>> not what I wanted. >>> >>> This Q&A discusses the problem: >>> >>> >>> >> >> Doing a ColorConvertOp to make it a compatible image will fix that as well. > > Ah, now I see; thank you. Your method has the salutary benefit of > skipping the conversion if it proves unnecessary. > > > I have to admit, it being Christmas and all, that I stole that code :-). But it works great! -- Knute Johnson