You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by br...@apache.org on 2015/01/11 13:33:28 UTC
svn commit: r935812 [30/46] - in
/websites/production/commons/content/proper/commons-imaging: ./ apidocs/
apidocs/org/apache/commons/imaging/
apidocs/org/apache/commons/imaging/class-use/
apidocs/org/apache/commons/imaging/color/ apidocs/org/apache/com...
Modified: websites/production/commons/content/proper/commons-imaging/xref-test/org/apache/commons/imaging/formats/png/ConvertPngToGifTest.html
==============================================================================
--- websites/production/commons/content/proper/commons-imaging/xref-test/org/apache/commons/imaging/formats/png/ConvertPngToGifTest.html (original)
+++ websites/production/commons/content/proper/commons-imaging/xref-test/org/apache/commons/imaging/formats/png/ConvertPngToGifTest.html Sun Jan 11 12:33:25 2015
@@ -29,46 +29,47 @@
<a class="jxr_linenumber" name="L21" href="#L21">21</a>
<a class="jxr_linenumber" name="L22" href="#L22">22</a> <strong class="jxr_keyword">import</strong> java.awt.image.BufferedImage;
<a class="jxr_linenumber" name="L23" href="#L23">23</a> <strong class="jxr_keyword">import</strong> java.io.File;
-<a class="jxr_linenumber" name="L24" href="#L24">24</a> <strong class="jxr_keyword">import</strong> java.util.Hashtable;
+<a class="jxr_linenumber" name="L24" href="#L24">24</a> <strong class="jxr_keyword">import</strong> java.util.HashMap;
<a class="jxr_linenumber" name="L25" href="#L25">25</a> <strong class="jxr_keyword">import</strong> java.util.List;
-<a class="jxr_linenumber" name="L26" href="#L26">26</a>
-<a class="jxr_linenumber" name="L27" href="#L27">27</a> <strong class="jxr_keyword">import</strong> org.apache.commons.imaging.ImageFormats;
-<a class="jxr_linenumber" name="L28" href="#L28">28</a> <strong class="jxr_keyword">import</strong> org.apache.commons.imaging.Imaging;
-<a class="jxr_linenumber" name="L29" href="#L29">29</a> <strong class="jxr_keyword">import</strong> org.apache.commons.imaging.util.Debug;
-<a class="jxr_linenumber" name="L30" href="#L30">30</a> <strong class="jxr_keyword">import</strong> org.junit.Test;
-<a class="jxr_linenumber" name="L31" href="#L31">31</a>
-<a class="jxr_linenumber" name="L32" href="#L32">32</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../../org/apache/commons/imaging/formats/png/ConvertPngToGifTest.html">ConvertPngToGifTest</a> <strong class="jxr_keyword">extends</strong> <a href="../../../../../../org/apache/commons/imaging/formats/png/PngBaseTest.html">PngBaseTest</a> {
-<a class="jxr_linenumber" name="L33" href="#L33">33</a>
-<a class="jxr_linenumber" name="L34" href="#L34">34</a> @Test
-<a class="jxr_linenumber" name="L35" href="#L35">35</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> test() <strong class="jxr_keyword">throws</strong> Exception {
-<a class="jxr_linenumber" name="L36" href="#L36">36</a>
-<a class="jxr_linenumber" name="L37" href="#L37">37</a> <strong class="jxr_keyword">final</strong> List<File> images = getPngImages();
-<a class="jxr_linenumber" name="L38" href="#L38">38</a> <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i < images.size(); i++) {
-<a class="jxr_linenumber" name="L39" href="#L39">39</a>
-<a class="jxr_linenumber" name="L40" href="#L40">40</a> <strong class="jxr_keyword">final</strong> File imageFile = images.get(i);
-<a class="jxr_linenumber" name="L41" href="#L41">41</a> <strong class="jxr_keyword">if</strong> (isInvalidPNGTestFile(imageFile))
-<a class="jxr_linenumber" name="L42" href="#L42">42</a> {
-<a class="jxr_linenumber" name="L43" href="#L43">43</a> <strong class="jxr_keyword">continue</strong>;
-<a class="jxr_linenumber" name="L44" href="#L44">44</a> <em class="jxr_comment">// Debug.debug("imageFile", imageFile);</em>
-<a class="jxr_linenumber" name="L45" href="#L45">45</a> <em class="jxr_comment">// Debug.debug();</em>
-<a class="jxr_linenumber" name="L46" href="#L46">46</a> }
-<a class="jxr_linenumber" name="L47" href="#L47">47</a>
-<a class="jxr_linenumber" name="L48" href="#L48">48</a> <strong class="jxr_keyword">final</strong> Hashtable<String, Object> params = <strong class="jxr_keyword">new</strong> Hashtable<String, Object>();
-<a class="jxr_linenumber" name="L49" href="#L49">49</a> <em class="jxr_comment">// params.put(ImagingConstants.PARAM_KEY_VERBOSE, Boolean.TRUE);</em>
-<a class="jxr_linenumber" name="L50" href="#L50">50</a>
-<a class="jxr_linenumber" name="L51" href="#L51">51</a> <strong class="jxr_keyword">final</strong> BufferedImage image = Imaging.getBufferedImage(imageFile, params);
-<a class="jxr_linenumber" name="L52" href="#L52">52</a> assertNotNull(image);
-<a class="jxr_linenumber" name="L53" href="#L53">53</a>
-<a class="jxr_linenumber" name="L54" href="#L54">54</a> <strong class="jxr_keyword">final</strong> File outFile = createTempFile(imageFile.getName() + <span class="jxr_string">"."</span>, <span class="jxr_string">".gif"</span>);
-<a class="jxr_linenumber" name="L55" href="#L55">55</a> <em class="jxr_comment">// Debug.debug("outFile", outFile);</em>
-<a class="jxr_linenumber" name="L56" href="#L56">56</a>
-<a class="jxr_linenumber" name="L57" href="#L57">57</a> Imaging.writeImage(image, outFile, ImageFormats.GIF,
-<a class="jxr_linenumber" name="L58" href="#L58">58</a> params);
-<a class="jxr_linenumber" name="L59" href="#L59">59</a> }
-<a class="jxr_linenumber" name="L60" href="#L60">60</a> Debug.debug(<span class="jxr_string">"complete."</span>);
-<a class="jxr_linenumber" name="L61" href="#L61">61</a> }
-<a class="jxr_linenumber" name="L62" href="#L62">62</a>
-<a class="jxr_linenumber" name="L63" href="#L63">63</a> }
+<a class="jxr_linenumber" name="L26" href="#L26">26</a> <strong class="jxr_keyword">import</strong> java.util.Map;
+<a class="jxr_linenumber" name="L27" href="#L27">27</a>
+<a class="jxr_linenumber" name="L28" href="#L28">28</a> <strong class="jxr_keyword">import</strong> org.apache.commons.imaging.ImageFormats;
+<a class="jxr_linenumber" name="L29" href="#L29">29</a> <strong class="jxr_keyword">import</strong> org.apache.commons.imaging.Imaging;
+<a class="jxr_linenumber" name="L30" href="#L30">30</a> <strong class="jxr_keyword">import</strong> org.apache.commons.imaging.util.Debug;
+<a class="jxr_linenumber" name="L31" href="#L31">31</a> <strong class="jxr_keyword">import</strong> org.junit.Test;
+<a class="jxr_linenumber" name="L32" href="#L32">32</a>
+<a class="jxr_linenumber" name="L33" href="#L33">33</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../../org/apache/commons/imaging/formats/png/ConvertPngToGifTest.html">ConvertPngToGifTest</a> <strong class="jxr_keyword">extends</strong> <a href="../../../../../../org/apache/commons/imaging/formats/png/PngBaseTest.html">PngBaseTest</a> {
+<a class="jxr_linenumber" name="L34" href="#L34">34</a>
+<a class="jxr_linenumber" name="L35" href="#L35">35</a> @Test
+<a class="jxr_linenumber" name="L36" href="#L36">36</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> test() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L37" href="#L37">37</a>
+<a class="jxr_linenumber" name="L38" href="#L38">38</a> <strong class="jxr_keyword">final</strong> List<File> images = getPngImages();
+<a class="jxr_linenumber" name="L39" href="#L39">39</a> <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i < images.size(); i++) {
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>
+<a class="jxr_linenumber" name="L41" href="#L41">41</a> <strong class="jxr_keyword">final</strong> File imageFile = images.get(i);
+<a class="jxr_linenumber" name="L42" href="#L42">42</a> <strong class="jxr_keyword">if</strong> (isInvalidPNGTestFile(imageFile))
+<a class="jxr_linenumber" name="L43" href="#L43">43</a> {
+<a class="jxr_linenumber" name="L44" href="#L44">44</a> <strong class="jxr_keyword">continue</strong>;
+<a class="jxr_linenumber" name="L45" href="#L45">45</a> <em class="jxr_comment">// Debug.debug("imageFile", imageFile);</em>
+<a class="jxr_linenumber" name="L46" href="#L46">46</a> <em class="jxr_comment">// Debug.debug();</em>
+<a class="jxr_linenumber" name="L47" href="#L47">47</a> }
+<a class="jxr_linenumber" name="L48" href="#L48">48</a>
+<a class="jxr_linenumber" name="L49" href="#L49">49</a> <strong class="jxr_keyword">final</strong> Map<String, Object> params = <strong class="jxr_keyword">new</strong> HashMap<String, Object>();
+<a class="jxr_linenumber" name="L50" href="#L50">50</a> <em class="jxr_comment">// params.put(ImagingConstants.PARAM_KEY_VERBOSE, Boolean.TRUE);</em>
+<a class="jxr_linenumber" name="L51" href="#L51">51</a>
+<a class="jxr_linenumber" name="L52" href="#L52">52</a> <strong class="jxr_keyword">final</strong> BufferedImage image = Imaging.getBufferedImage(imageFile, params);
+<a class="jxr_linenumber" name="L53" href="#L53">53</a> assertNotNull(image);
+<a class="jxr_linenumber" name="L54" href="#L54">54</a>
+<a class="jxr_linenumber" name="L55" href="#L55">55</a> <strong class="jxr_keyword">final</strong> File outFile = createTempFile(imageFile.getName() + <span class="jxr_string">"."</span>, <span class="jxr_string">".gif"</span>);
+<a class="jxr_linenumber" name="L56" href="#L56">56</a> <em class="jxr_comment">// Debug.debug("outFile", outFile);</em>
+<a class="jxr_linenumber" name="L57" href="#L57">57</a>
+<a class="jxr_linenumber" name="L58" href="#L58">58</a> Imaging.writeImage(image, outFile, ImageFormats.GIF,
+<a class="jxr_linenumber" name="L59" href="#L59">59</a> params);
+<a class="jxr_linenumber" name="L60" href="#L60">60</a> }
+<a class="jxr_linenumber" name="L61" href="#L61">61</a> Debug.debug(<span class="jxr_string">"complete."</span>);
+<a class="jxr_linenumber" name="L62" href="#L62">62</a> }
+<a class="jxr_linenumber" name="L63" href="#L63">63</a>
+<a class="jxr_linenumber" name="L64" href="#L64">64</a> }
</pre>
<hr/>
<div id="footer">Copyright © 2007–2015 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
Added: websites/production/commons/content/proper/commons-imaging/xref-test/org/apache/commons/imaging/formats/tiff/write/TiffOutputDirectoryTest.html
==============================================================================
--- websites/production/commons/content/proper/commons-imaging/xref-test/org/apache/commons/imaging/formats/tiff/write/TiffOutputDirectoryTest.html (added)
+++ websites/production/commons/content/proper/commons-imaging/xref-test/org/apache/commons/imaging/formats/tiff/write/TiffOutputDirectoryTest.html Sun Jan 11 12:33:25 2015
@@ -0,0 +1,62 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head><meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+<title>TiffOutputDirectoryTest xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../../../testapidocs/org/apache/commons/imaging/formats/tiff/write/TiffOutputDirectoryTest.html">View Javadoc</a></div><pre>
+<a class="jxr_linenumber" name="L1" href="#L1">1</a> <em class="jxr_comment">/*</em>
+<a class="jxr_linenumber" name="L2" href="#L2">2</a> <em class="jxr_comment"> * Licensed to the Apache Software Foundation (ASF) under one or more</em>
+<a class="jxr_linenumber" name="L3" href="#L3">3</a> <em class="jxr_comment"> * contributor license agreements. See the NOTICE file distributed with</em>
+<a class="jxr_linenumber" name="L4" href="#L4">4</a> <em class="jxr_comment"> * this work for additional information regarding copyright ownership.</em>
+<a class="jxr_linenumber" name="L5" href="#L5">5</a> <em class="jxr_comment"> * The ASF licenses this file to You under the Apache License, Version 2.0</em>
+<a class="jxr_linenumber" name="L6" href="#L6">6</a> <em class="jxr_comment"> * (the "License"); you may not use this file except in compliance with</em>
+<a class="jxr_linenumber" name="L7" href="#L7">7</a> <em class="jxr_comment"> * the License. You may obtain a copy of the License at</em>
+<a class="jxr_linenumber" name="L8" href="#L8">8</a> <em class="jxr_comment"> *</em>
+<a class="jxr_linenumber" name="L9" href="#L9">9</a> <em class="jxr_comment"> * <a href="http://www.apache.org/licenses/LICENSE-2." target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.</a>0</em>
+<a class="jxr_linenumber" name="L10" href="#L10">10</a> <em class="jxr_comment"> *</em>
+<a class="jxr_linenumber" name="L11" href="#L11">11</a> <em class="jxr_comment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a class="jxr_linenumber" name="L12" href="#L12">12</a> <em class="jxr_comment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a class="jxr_linenumber" name="L13" href="#L13">13</a> <em class="jxr_comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a class="jxr_linenumber" name="L14" href="#L14">14</a> <em class="jxr_comment"> * See the License for the specific language governing permissions and</em>
+<a class="jxr_linenumber" name="L15" href="#L15">15</a> <em class="jxr_comment"> * limitations under the License.</em>
+<a class="jxr_linenumber" name="L16" href="#L16">16</a> <em class="jxr_comment"> */</em>
+<a class="jxr_linenumber" name="L17" href="#L17">17</a> <strong class="jxr_keyword">package</strong> org.apache.commons.imaging.formats.tiff.write;
+<a class="jxr_linenumber" name="L18" href="#L18">18</a>
+<a class="jxr_linenumber" name="L19" href="#L19">19</a> <strong class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong> org.apache.commons.imaging.formats.tiff.constants.TiffTagConstants.TIFF_TAG_DOCUMENT_NAME;
+<a class="jxr_linenumber" name="L20" href="#L20">20</a> <strong class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong> org.junit.Assert.assertEquals;
+<a class="jxr_linenumber" name="L21" href="#L21">21</a> <strong class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong> org.junit.Assert.assertNotNull;
+<a class="jxr_linenumber" name="L22" href="#L22">22</a> <strong class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong> org.junit.Assert.assertTrue;
+<a class="jxr_linenumber" name="L23" href="#L23">23</a>
+<a class="jxr_linenumber" name="L24" href="#L24">24</a> <strong class="jxr_keyword">import</strong> org.apache.commons.imaging.formats.tiff.constants.TiffConstants;
+<a class="jxr_linenumber" name="L25" href="#L25">25</a> <strong class="jxr_keyword">import</strong> org.apache.commons.imaging.formats.tiff.constants.TiffDirectoryConstants;
+<a class="jxr_linenumber" name="L26" href="#L26">26</a> <strong class="jxr_keyword">import</strong> org.junit.Before;
+<a class="jxr_linenumber" name="L27" href="#L27">27</a> <strong class="jxr_keyword">import</strong> org.junit.Test;
+<a class="jxr_linenumber" name="L28" href="#L28">28</a>
+<a class="jxr_linenumber" name="L29" href="#L29">29</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../../../org/apache/commons/imaging/formats/tiff/write/TiffOutputDirectoryTest.html">TiffOutputDirectoryTest</a> {
+<a class="jxr_linenumber" name="L30" href="#L30">30</a>
+<a class="jxr_linenumber" name="L31" href="#L31">31</a> <strong class="jxr_keyword">private</strong> TiffOutputDirectory directory;
+<a class="jxr_linenumber" name="L32" href="#L32">32</a>
+<a class="jxr_linenumber" name="L33" href="#L33">33</a> @Before
+<a class="jxr_linenumber" name="L34" href="#L34">34</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setUp() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L35" href="#L35">35</a> directory = <strong class="jxr_keyword">new</strong> TiffOutputDirectory(TiffDirectoryConstants.DIRECTORY_TYPE_ROOT, TiffConstants.DEFAULT_TIFF_BYTE_ORDER);
+<a class="jxr_linenumber" name="L36" href="#L36">36</a> }
+<a class="jxr_linenumber" name="L37" href="#L37">37</a>
+<a class="jxr_linenumber" name="L38" href="#L38">38</a> @Test
+<a class="jxr_linenumber" name="L39" href="#L39">39</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testFindField() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L40" href="#L40">40</a> directory.add(TIFF_TAG_DOCUMENT_NAME, <span class="jxr_string">"Test.tiff"</span>);
+<a class="jxr_linenumber" name="L41" href="#L41">41</a>
+<a class="jxr_linenumber" name="L42" href="#L42">42</a> TiffOutputField field = directory.findField(TIFF_TAG_DOCUMENT_NAME);
+<a class="jxr_linenumber" name="L43" href="#L43">43</a>
+<a class="jxr_linenumber" name="L44" href="#L44">44</a> assertNotNull(field);
+<a class="jxr_linenumber" name="L45" href="#L45">45</a> assertEquals(TIFF_TAG_DOCUMENT_NAME, field.tagInfo);
+<a class="jxr_linenumber" name="L46" href="#L46">46</a> byte[] documentNameAsBytes = TIFF_TAG_DOCUMENT_NAME.encodeValue(TiffConstants.DEFAULT_TIFF_BYTE_ORDER, <span class="jxr_string">"Test.tiff"</span>);
+<a class="jxr_linenumber" name="L47" href="#L47">47</a> assertTrue(field.bytesEqual(documentNameAsBytes));
+<a class="jxr_linenumber" name="L48" href="#L48">48</a> }
+<a class="jxr_linenumber" name="L49" href="#L49">49</a> }
+</pre>
+<hr/>
+<div id="footer">Copyright © 2007–2015 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
+</body>
+</html>
\ No newline at end of file
Propchange: websites/production/commons/content/proper/commons-imaging/xref-test/org/apache/commons/imaging/formats/tiff/write/TiffOutputDirectoryTest.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: websites/production/commons/content/proper/commons-imaging/xref-test/org/apache/commons/imaging/formats/tiff/write/TiffOutputSetTest.html
==============================================================================
--- websites/production/commons/content/proper/commons-imaging/xref-test/org/apache/commons/imaging/formats/tiff/write/TiffOutputSetTest.html (added)
+++ websites/production/commons/content/proper/commons-imaging/xref-test/org/apache/commons/imaging/formats/tiff/write/TiffOutputSetTest.html Sun Jan 11 12:33:25 2015
@@ -0,0 +1,66 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head><meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+<title>TiffOutputSetTest xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../../../testapidocs/org/apache/commons/imaging/formats/tiff/write/TiffOutputSetTest.html">View Javadoc</a></div><pre>
+<a class="jxr_linenumber" name="L1" href="#L1">1</a> <em class="jxr_comment">/*</em>
+<a class="jxr_linenumber" name="L2" href="#L2">2</a> <em class="jxr_comment"> * Licensed to the Apache Software Foundation (ASF) under one or more</em>
+<a class="jxr_linenumber" name="L3" href="#L3">3</a> <em class="jxr_comment"> * contributor license agreements. See the NOTICE file distributed with</em>
+<a class="jxr_linenumber" name="L4" href="#L4">4</a> <em class="jxr_comment"> * this work for additional information regarding copyright ownership.</em>
+<a class="jxr_linenumber" name="L5" href="#L5">5</a> <em class="jxr_comment"> * The ASF licenses this file to You under the Apache License, Version 2.0</em>
+<a class="jxr_linenumber" name="L6" href="#L6">6</a> <em class="jxr_comment"> * (the "License"); you may not use this file except in compliance with</em>
+<a class="jxr_linenumber" name="L7" href="#L7">7</a> <em class="jxr_comment"> * the License. You may obtain a copy of the License at</em>
+<a class="jxr_linenumber" name="L8" href="#L8">8</a> <em class="jxr_comment"> *</em>
+<a class="jxr_linenumber" name="L9" href="#L9">9</a> <em class="jxr_comment"> * <a href="http://www.apache.org/licenses/LICENSE-2." target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.</a>0</em>
+<a class="jxr_linenumber" name="L10" href="#L10">10</a> <em class="jxr_comment"> *</em>
+<a class="jxr_linenumber" name="L11" href="#L11">11</a> <em class="jxr_comment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a class="jxr_linenumber" name="L12" href="#L12">12</a> <em class="jxr_comment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a class="jxr_linenumber" name="L13" href="#L13">13</a> <em class="jxr_comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a class="jxr_linenumber" name="L14" href="#L14">14</a> <em class="jxr_comment"> * See the License for the specific language governing permissions and</em>
+<a class="jxr_linenumber" name="L15" href="#L15">15</a> <em class="jxr_comment"> * limitations under the License.</em>
+<a class="jxr_linenumber" name="L16" href="#L16">16</a> <em class="jxr_comment"> */</em>
+<a class="jxr_linenumber" name="L17" href="#L17">17</a> <strong class="jxr_keyword">package</strong> org.apache.commons.imaging.formats.tiff.write;
+<a class="jxr_linenumber" name="L18" href="#L18">18</a>
+<a class="jxr_linenumber" name="L19" href="#L19">19</a> <strong class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong> org.junit.Assert.assertNotNull;
+<a class="jxr_linenumber" name="L20" href="#L20">20</a> <strong class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong> org.junit.Assert.assertTrue;
+<a class="jxr_linenumber" name="L21" href="#L21">21</a>
+<a class="jxr_linenumber" name="L22" href="#L22">22</a> <strong class="jxr_keyword">import</strong> java.util.List;
+<a class="jxr_linenumber" name="L23" href="#L23">23</a>
+<a class="jxr_linenumber" name="L24" href="#L24">24</a> <strong class="jxr_keyword">import</strong> org.apache.commons.imaging.formats.tiff.constants.GpsTagConstants;
+<a class="jxr_linenumber" name="L25" href="#L25">25</a> <strong class="jxr_keyword">import</strong> org.junit.Before;
+<a class="jxr_linenumber" name="L26" href="#L26">26</a> <strong class="jxr_keyword">import</strong> org.junit.Test;
+<a class="jxr_linenumber" name="L27" href="#L27">27</a>
+<a class="jxr_linenumber" name="L28" href="#L28">28</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../../../org/apache/commons/imaging/formats/tiff/write/TiffOutputSetTest.html">TiffOutputSetTest</a> {
+<a class="jxr_linenumber" name="L29" href="#L29">29</a>
+<a class="jxr_linenumber" name="L30" href="#L30">30</a> <strong class="jxr_keyword">private</strong> TiffOutputSet tiffOutputSet;
+<a class="jxr_linenumber" name="L31" href="#L31">31</a>
+<a class="jxr_linenumber" name="L32" href="#L32">32</a> @Before
+<a class="jxr_linenumber" name="L33" href="#L33">33</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setUp() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L34" href="#L34">34</a> tiffOutputSet = <strong class="jxr_keyword">new</strong> TiffOutputSet();
+<a class="jxr_linenumber" name="L35" href="#L35">35</a> }
+<a class="jxr_linenumber" name="L36" href="#L36">36</a>
+<a class="jxr_linenumber" name="L37" href="#L37">37</a> <em class="jxr_comment">/*</em>
+<a class="jxr_linenumber" name="L38" href="#L38">38</a> <em class="jxr_comment"> * TiffOutputSet.setGPSInDegrees should make sure, GPSVersionID is set</em>
+<a class="jxr_linenumber" name="L39" href="#L39">39</a> <em class="jxr_comment"> *</em>
+<a class="jxr_linenumber" name="L40" href="#L40">40</a> <em class="jxr_comment"> * https://issues.apache.org/jira/browse/IMAGING-144</em>
+<a class="jxr_linenumber" name="L41" href="#L41">41</a> <em class="jxr_comment"> */</em>
+<a class="jxr_linenumber" name="L42" href="#L42">42</a> @Test
+<a class="jxr_linenumber" name="L43" href="#L43">43</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testImaging144() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L44" href="#L44">44</a> tiffOutputSet.setGPSInDegrees(1.0, 1.0);
+<a class="jxr_linenumber" name="L45" href="#L45">45</a>
+<a class="jxr_linenumber" name="L46" href="#L46">46</a> TiffOutputDirectory gpsDirectory = tiffOutputSet.getGPSDirectory();
+<a class="jxr_linenumber" name="L47" href="#L47">47</a> TiffOutputField gpsVersionId = gpsDirectory.findField(GpsTagConstants.GPS_TAG_GPS_VERSION_ID);
+<a class="jxr_linenumber" name="L48" href="#L48">48</a>
+<a class="jxr_linenumber" name="L49" href="#L49">49</a> assertNotNull(gpsVersionId);
+<a class="jxr_linenumber" name="L50" href="#L50">50</a> assertTrue(gpsVersionId.bytesEqual(GpsTagConstants.GPS_VERSION));
+<a class="jxr_linenumber" name="L51" href="#L51">51</a> }
+<a class="jxr_linenumber" name="L52" href="#L52">52</a>
+<a class="jxr_linenumber" name="L53" href="#L53">53</a> }
+</pre>
+<hr/>
+<div id="footer">Copyright © 2007–2015 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
+</body>
+</html>
\ No newline at end of file
Propchange: websites/production/commons/content/proper/commons-imaging/xref-test/org/apache/commons/imaging/formats/tiff/write/TiffOutputSetTest.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: websites/production/commons/content/proper/commons-imaging/xref-test/org/apache/commons/imaging/formats/tiff/write/package-frame.html
==============================================================================
--- websites/production/commons/content/proper/commons-imaging/xref-test/org/apache/commons/imaging/formats/tiff/write/package-frame.html (added)
+++ websites/production/commons/content/proper/commons-imaging/xref-test/org/apache/commons/imaging/formats/tiff/write/package-frame.html Sun Jan 11 12:33:25 2015
@@ -0,0 +1,27 @@
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xml:lang="en" lang="en">
+ <head>
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+ <title>Apache Commons Imaging 1.0-SNAPSHOT Reference Package org.apache.commons.imaging.formats.tiff.write</title>
+ <link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="style" />
+ </head>
+ <body>
+
+ <h3>
+ <a href="package-summary.html" target="classFrame">org.apache.commons.imaging.formats.tiff.write</a>
+ </h3>
+
+ <h3>Classes</h3>
+
+ <ul>
+ <li>
+ <a href="TiffOutputDirectoryTest.html" target="classFrame">TiffOutputDirectoryTest</a>
+ </li>
+ <li>
+ <a href="TiffOutputSetTest.html" target="classFrame">TiffOutputSetTest</a>
+ </li>
+ </ul>
+
+ </body>
+</html>
\ No newline at end of file
Propchange: websites/production/commons/content/proper/commons-imaging/xref-test/org/apache/commons/imaging/formats/tiff/write/package-frame.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: websites/production/commons/content/proper/commons-imaging/xref-test/org/apache/commons/imaging/formats/tiff/write/package-summary.html
==============================================================================
--- websites/production/commons/content/proper/commons-imaging/xref-test/org/apache/commons/imaging/formats/tiff/write/package-summary.html (added)
+++ websites/production/commons/content/proper/commons-imaging/xref-test/org/apache/commons/imaging/formats/tiff/write/package-summary.html Sun Jan 11 12:33:25 2015
@@ -0,0 +1,74 @@
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xml:lang="en" lang="en">
+ <head>
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+ <title>Apache Commons Imaging 1.0-SNAPSHOT Reference Package org.apache.commons.imaging.formats.tiff.write</title>
+ <link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="style" />
+ </head>
+ <body>
+ <div class="overview">
+ <ul>
+ <li>
+ <a href="../../../../../../../overview-summary.html">Overview</a>
+ </li>
+ <li class="selected">Package</li>
+ </ul>
+ </div>
+ <div class="framenoframe">
+ <ul>
+ <li>
+ <a href="../../../../../../../index.html" target="_top">FRAMES</a>
+ </li>
+ <li>
+ <a href="package-summary.html" target="_top">NO FRAMES</a>
+ </li>
+ </ul>
+ </div>
+
+ <h2>Package org.apache.commons.imaging.formats.tiff.write</h2>
+
+ <table class="summary">
+ <thead>
+ <tr>
+ <th>Class Summary</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>
+ <a href="TiffOutputDirectoryTest.html" target="classFrame">TiffOutputDirectoryTest</a>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <a href="TiffOutputSetTest.html" target="classFrame">TiffOutputSetTest</a>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+
+ <div class="overview">
+ <ul>
+ <li>
+ <a href="../../../../../../../overview-summary.html">Overview</a>
+ </li>
+ <li class="selected">Package</li>
+ </ul>
+ </div>
+ <div class="framenoframe">
+ <ul>
+ <li>
+ <a href="../../../../../../../index.html" target="_top">FRAMES</a>
+ </li>
+ <li>
+ <a href="package-summary.html" target="_top">NO FRAMES</a>
+ </li>
+ </ul>
+ </div>
+ <hr />
+ <div id="footer">
+ Copyright © 2007–2015 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.
+ </div>
+ </body>
+</html>
\ No newline at end of file
Propchange: websites/production/commons/content/proper/commons-imaging/xref-test/org/apache/commons/imaging/formats/tiff/write/package-summary.html
------------------------------------------------------------------------------
svn:eol-style = native
Modified: websites/production/commons/content/proper/commons-imaging/xref-test/org/apache/commons/imaging/palette/PaletteQuantizationTest.html
==============================================================================
--- websites/production/commons/content/proper/commons-imaging/xref-test/org/apache/commons/imaging/palette/PaletteQuantizationTest.html (original)
+++ websites/production/commons/content/proper/commons-imaging/xref-test/org/apache/commons/imaging/palette/PaletteQuantizationTest.html Sun Jan 11 12:33:25 2015
@@ -103,7 +103,7 @@
<a class="jxr_linenumber" name="L95" href="#L95">95</a>
<a class="jxr_linenumber" name="L96" href="#L96">96</a> MedianCutQuantizer medianCutQuantizer = <strong class="jxr_keyword">new</strong> MedianCutQuantizer(<strong class="jxr_keyword">true</strong>);
<a class="jxr_linenumber" name="L97" href="#L97">97</a> palette = medianCutQuantizer.process(
-<a class="jxr_linenumber" name="L98" href="#L98">98</a> image, limit, <strong class="jxr_keyword">new</strong> MedianCutMostPopulatedBoxesImplementation(), false);
+<a class="jxr_linenumber" name="L98" href="#L98">98</a> image, limit, <strong class="jxr_keyword">new</strong> MostPopulatedBoxesMedianCut(), false);
<a class="jxr_linenumber" name="L99" href="#L99">99</a> assertEquals(expectedSize, palette.length());
<a class="jxr_linenumber" name="L100" href="#L100">100</a> checkUniqueColors(image, palette);
<a class="jxr_linenumber" name="L101" href="#L101">101</a> <strong class="jxr_keyword">if</strong> (exact) {
Modified: websites/production/commons/content/proper/commons-imaging/xref-test/overview-frame.html
==============================================================================
--- websites/production/commons/content/proper/commons-imaging/xref-test/overview-frame.html (original)
+++ websites/production/commons/content/proper/commons-imaging/xref-test/overview-frame.html Sun Jan 11 12:33:25 2015
@@ -79,6 +79,9 @@
<a href="org/apache/commons/imaging/formats/tiff/package-frame.html" target="packageFrame">org.apache.commons.imaging.formats.tiff</a>
</li>
<li>
+ <a href="org/apache/commons/imaging/formats/tiff/write/package-frame.html" target="packageFrame">org.apache.commons.imaging.formats.tiff.write</a>
+ </li>
+ <li>
<a href="org/apache/commons/imaging/formats/wbmp/package-frame.html" target="packageFrame">org.apache.commons.imaging.formats.wbmp</a>
</li>
<li>
Modified: websites/production/commons/content/proper/commons-imaging/xref-test/overview-summary.html
==============================================================================
--- websites/production/commons/content/proper/commons-imaging/xref-test/overview-summary.html (original)
+++ websites/production/commons/content/proper/commons-imaging/xref-test/overview-summary.html Sun Jan 11 12:33:25 2015
@@ -140,6 +140,11 @@
</tr>
<tr>
<td>
+ <a href="org/apache/commons/imaging/formats/tiff/write/package-summary.html">org.apache.commons.imaging.formats.tiff.write</a>
+ </td>
+ </tr>
+ <tr>
+ <td>
<a href="org/apache/commons/imaging/formats/wbmp/package-summary.html">org.apache.commons.imaging.formats.wbmp</a>
</td>
</tr>
Modified: websites/production/commons/content/proper/commons-imaging/xref/allclasses-frame.html
==============================================================================
--- websites/production/commons/content/proper/commons-imaging/xref/allclasses-frame.html (original)
+++ websites/production/commons/content/proper/commons-imaging/xref/allclasses-frame.html Sun Jan 11 12:33:25 2015
@@ -147,7 +147,7 @@
<a href="org/apache/commons/imaging/color/ColorCmyk.html" target="classFrame">ColorCmyk</a>
</li>
<li>
- <a href="org/apache/commons/imaging/palette/MedianCutMostPopulatedBoxesImplementation.html" target="classFrame">ColorComparer</a>
+ <a href="org/apache/commons/imaging/palette/MostPopulatedBoxesMedianCut.html" target="classFrame">ColorComparer</a>
</li>
<li>
<a href="org/apache/commons/imaging/palette/ColorComponent.html" target="classFrame">ColorComponent</a>
@@ -591,13 +591,10 @@
<a href="org/apache/commons/imaging/common/mylzw/MyLzwDecompressor.html" target="classFrame">Listener</a>
</li>
<li>
- <a href="org/apache/commons/imaging/palette/MedianCutImplementation.html" target="classFrame">MedianCutImplementation</a>
+ <a href="org/apache/commons/imaging/palette/LongestAxisMedianCut.html" target="classFrame">LongestAxisMedianCut</a>
</li>
<li>
- <a href="org/apache/commons/imaging/palette/MedianCutLongestAxisImplementation.html" target="classFrame">MedianCutLongestAxisImplementation</a>
- </li>
- <li>
- <a href="org/apache/commons/imaging/palette/MedianCutMostPopulatedBoxesImplementation.html" target="classFrame">MedianCutMostPopulatedBoxesImplementation</a>
+ <a href="org/apache/commons/imaging/palette/MedianCut.html" target="classFrame">MedianCut</a>
</li>
<li>
<a href="org/apache/commons/imaging/palette/MedianCutPalette.html" target="classFrame">MedianCutPalette</a>
@@ -615,6 +612,9 @@
<a href="org/apache/commons/imaging/formats/tiff/constants/MolecularDynamicsGelTagConstants.html" target="classFrame">MolecularDynamicsGelTagConstants</a>
</li>
<li>
+ <a href="org/apache/commons/imaging/palette/MostPopulatedBoxesMedianCut.html" target="classFrame">MostPopulatedBoxesMedianCut</a>
+ </li>
+ <li>
<a href="org/apache/commons/imaging/common/mylzw/MyBitInputStream.html" target="classFrame">MyBitInputStream</a>
</li>
<li>