h3.Multi-Media APIs Code Samples
Multi-Media includes 2D graphics, 3D graphics, printing, imaging, and sound. For 3D graphics examples, see [The j3d.org Code Repository|http://code.j3d.org/].
* [#Imaging]
* [#Java Media Framework]
* [#Printing]
* [#2D Graphics]
h5.Imaging
* [ImageOps.java|http://java.sun.com/docs/books/tutorial/2d/images/examples/ImageOps.java] illustrates the use of four image-filter operations: low-pass, sharpen, lookup, and rescale. For supporting information see [The Java Tutorial Continued: Images|http://java.sun.com/docs/books/tutorial/2d/images/].
* [Java Advanced Imaging download|http://java.sun.com/javase/technologies/desktop/media/#sample] includes demo and tutorial with source code
h5.Java Media Framework
* [JMF in Action|http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/samples/] presents several applets that run movie clips.
h5.Printing
* [ComponentPrinterFrame.java|http://java.sun.com/developer/technicalArticles/Printing/Java2DPrinting/Code/Swing/ComponentPrinterFrame.java] prints a frame and the components it contains.
* [printbutton.java|http://java.sun.com/developer/technicalArticles/Printing/Java2DPrinting/Code/AWT/printbutton.java] displays a panel with MyButton on it. When you click the button, the application prints the MyButton AWT component.
* [printbutton.java|http://java.sun.com/developer/technicalArticles/Printing/Java2DPrinting/Code/Swing/printbutton.java] displays a panel with MyButton on it. When you click the button, the application prints the MyButton Swing component.
* [printpanel.java|http://java.sun.com/developer/technicalArticles/Printing/Java2DPrinting/Code/Swing/printpanel.java] prints a panel and the button it contains.
* [ShapesPrint.java|http://java.sun.com/docs/books/tutorial/2d/printing/examples/ShapesPrint.java] creates a print job, displays a print dialog, and initiates the printing process to print the contents of a component. For supporting information see [The Java Tutorial Continued: Printing|http://java.sun.com/docs/books/tutorial/2d/printing/].
* [SimpleBook.java|http://java.sun.com/docs/books/tutorial/2d/printing/examples/SimpleBook.java] prints a collection of pages. For supporting information see [The Java Tutorial Continued: Printing|http://java.sun.com/docs/books/tutorial/2d/printing/].
h5.2D Graphics
* [ClipImage.java|http://java.sun.com/docs/books/tutorial/2d/advanced/examples/ClipImage.java] animates a clipping path to reveal different portions of an image. For supporting information see [The Java Tutorial Continued: 2D Graphics|http://java.sun.com/docs/books/tutorial/2d/].
* [Composite.java|http://java.sun.com/docs/books/tutorial/2d/advanced/examples/Composite.java] illustrates the effects of various compositing styles and alpha combinations. For supporting information see [The Java Tutorial Continued: 2D Graphics|http://java.sun.com/docs/books/tutorial/2d/].
* [Pear.java|http://java.sun.com/docs/books/tutorial/2d/advanced/examples/Pear.java] shows how to construct a pear shape using area geometry shapes. For supporting information see [The Java Tutorial Continued: 2D Graphics|http://java.sun.com/docs/books/tutorial/2d/].
* [ShapesDemo2D.java|http://java.sun.com/docs/books/tutorial/2d/geometry/examples/ShapesDemo2D.java] shows how to draw and fill a selection of 2D geometric shapes. For supporting information see [The Java Tutorial Continued: 2D Graphics|http://java.sun.com/docs/books/tutorial/2d/].
* [SwingShapeMover.java|http://java.sun.com/docs/books/tutorial/2d/advanced/examples/SwingShapeMover.java] lets the user drag a Shape object around within a window and is redrawn at every mouse location to provide feedback to the user dragging it. For supporting information see [The Java Tutorial Continued: 2D Graphics|http://java.sun.com/docs/books/tutorial/2d/].
* [Transform.java|http://java.sun.com/docs/books/tutorial/2d/advanced/examples/Transform.java] demonstrates various transformation algorithms for changing the shape and position of 2D graphics. For supporting information see [The Java Tutorial Continued: 2D Graphics|http://java.sun.com/docs/books/tutorial/2d/].
----
Multi-Media includes 2D graphics, 3D graphics, printing, imaging, and sound. For 3D graphics examples, see [The j3d.org Code Repository|http://code.j3d.org/].
* [#Imaging]
* [#Java Media Framework]
* [#Printing]
* [#2D Graphics]
h5.Imaging
* [ImageOps.java|http://java.sun.com/docs/books/tutorial/2d/images/examples/ImageOps.java] illustrates the use of four image-filter operations: low-pass, sharpen, lookup, and rescale. For supporting information see [The Java Tutorial Continued: Images|http://java.sun.com/docs/books/tutorial/2d/images/].
* [Java Advanced Imaging download|http://java.sun.com/javase/technologies/desktop/media/#sample] includes demo and tutorial with source code
h5.Java Media Framework
* [JMF in Action|http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/samples/] presents several applets that run movie clips.
h5.Printing
* [ComponentPrinterFrame.java|http://java.sun.com/developer/technicalArticles/Printing/Java2DPrinting/Code/Swing/ComponentPrinterFrame.java] prints a frame and the components it contains.
* [printbutton.java|http://java.sun.com/developer/technicalArticles/Printing/Java2DPrinting/Code/AWT/printbutton.java] displays a panel with MyButton on it. When you click the button, the application prints the MyButton AWT component.
* [printbutton.java|http://java.sun.com/developer/technicalArticles/Printing/Java2DPrinting/Code/Swing/printbutton.java] displays a panel with MyButton on it. When you click the button, the application prints the MyButton Swing component.
* [printpanel.java|http://java.sun.com/developer/technicalArticles/Printing/Java2DPrinting/Code/Swing/printpanel.java] prints a panel and the button it contains.
* [ShapesPrint.java|http://java.sun.com/docs/books/tutorial/2d/printing/examples/ShapesPrint.java] creates a print job, displays a print dialog, and initiates the printing process to print the contents of a component. For supporting information see [The Java Tutorial Continued: Printing|http://java.sun.com/docs/books/tutorial/2d/printing/].
* [SimpleBook.java|http://java.sun.com/docs/books/tutorial/2d/printing/examples/SimpleBook.java] prints a collection of pages. For supporting information see [The Java Tutorial Continued: Printing|http://java.sun.com/docs/books/tutorial/2d/printing/].
h5.2D Graphics
* [ClipImage.java|http://java.sun.com/docs/books/tutorial/2d/advanced/examples/ClipImage.java] animates a clipping path to reveal different portions of an image. For supporting information see [The Java Tutorial Continued: 2D Graphics|http://java.sun.com/docs/books/tutorial/2d/].
* [Composite.java|http://java.sun.com/docs/books/tutorial/2d/advanced/examples/Composite.java] illustrates the effects of various compositing styles and alpha combinations. For supporting information see [The Java Tutorial Continued: 2D Graphics|http://java.sun.com/docs/books/tutorial/2d/].
* [Pear.java|http://java.sun.com/docs/books/tutorial/2d/advanced/examples/Pear.java] shows how to construct a pear shape using area geometry shapes. For supporting information see [The Java Tutorial Continued: 2D Graphics|http://java.sun.com/docs/books/tutorial/2d/].
* [ShapesDemo2D.java|http://java.sun.com/docs/books/tutorial/2d/geometry/examples/ShapesDemo2D.java] shows how to draw and fill a selection of 2D geometric shapes. For supporting information see [The Java Tutorial Continued: 2D Graphics|http://java.sun.com/docs/books/tutorial/2d/].
* [SwingShapeMover.java|http://java.sun.com/docs/books/tutorial/2d/advanced/examples/SwingShapeMover.java] lets the user drag a Shape object around within a window and is redrawn at every mouse location to provide feedback to the user dragging it. For supporting information see [The Java Tutorial Continued: 2D Graphics|http://java.sun.com/docs/books/tutorial/2d/].
* [Transform.java|http://java.sun.com/docs/books/tutorial/2d/advanced/examples/Transform.java] demonstrates various transformation algorithms for changing the shape and position of 2D graphics. For supporting information see [The Java Tutorial Continued: 2D Graphics|http://java.sun.com/docs/books/tutorial/2d/].
----