src/site/xdoc/sampleusage.xml (23 lines of code) (raw):
<?xml version="1.0"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<document>
<properties>
<title>Building</title>
<author email="dev@commons.apache.org">Commons Documentation Team</author>
</properties>
<body>
<!-- ================================================== -->
<section name="Example Code and Sample Usage">
<subsection name="Example Code">
<p>
Can be found in the source distribution in org.apache.commons.imaging.examples package
<ul>
<li><a href="https://github.com/apache/commons-imaging/blob/master/src/test/java/org/apache/commons/imaging/examples/ImageWriteExample.java">ImageWriteExample.java</a> (illustrates how to write an image)</li>
<li><a href="https://github.com/apache/commons-imaging/blob/master/src/test/java/org/apache/commons/imaging/examples/ImageReadExample.java">ImageReadExample.java</a> (illustrates how to read an image)</li>
<li><a href="https://github.com/apache/commons-imaging/blob/master/src/test/java/org/apache/commons/imaging/examples/SampleUsage.java">SampleUsage.java</a> (various examples)</li>
<li><a href="https://github.com/apache/commons-imaging/blob/master/src/test/java/org/apache/commons/imaging/examples/MetadataExample.java">MetadataExample.java</a> (illustrates how to read JPEG EXIF metadata such as GPS, date and time photo taken, etc.)</li>
<li><a href="https://github.com/apache/commons-imaging/blob/master/src/test/java/org/apache/commons/imaging/examples/WriteExifMetadataExample.java">WriteExifMetadataExample.java</a> (illustrates how to write JPEG EXIF metadata such as GPS, date and time photo taken, etc.)</li>
</ul>
</p>
</subsection>
</section>
</body>
</document>