Package org.pentaho.reporting.libraries.pixie.wmf

Examples of org.pentaho.reporting.libraries.pixie.wmf.WmfFile


  public void testReadingDoesNotCrash() throws IOException
  {
    InputStream resource = WmfReadingTest.class.getResourceAsStream("anim0002.wmf");
    assertNotNull(resource);
    WmfFile wmfFile = new WmfFile(resource, 800, 600);
    BufferedImage bi = new BufferedImage(800, 600, BufferedImage.TYPE_4BYTE_ABGR);
    Graphics2D graphics = bi.createGraphics();
    wmfFile.draw(graphics, new Rectangle2D.Double(0, 0, 800, 600));
    graphics.dispose();
  }
View Full Code Here


*/
public class PixieViewer extends JFrame
{
  public PixieViewer(final String filename) throws IOException
  {
    final WmfFile wmf = new WmfFile(filename, 800, 600);
    System.out.println(wmf);
    final Image img = wmf.replay();
    setContentPane(new JLabel(new ImageIcon(img)));
  }
View Full Code Here

    {
      final long version = data.getVersion(caller);
      final InputStream stream = data.getResourceAsStream(caller);
      try
      {
        final WmfFile wmfFile = new WmfFile(stream, -1, -1);
        return new SimpleResource (data.getKey(), wmfFile, DrawableWrapper.class, version);
      }
      finally
      {
        stream.close();
View Full Code Here

    {
      final long version = data.getVersion(caller);
      final InputStream stream = data.getResourceAsStream(caller);
      try
      {
        final WmfFile wmfFile = new WmfFile(stream, -1, -1);
        final Image image = wmfFile.replay();
        return new SimpleResource(data.getKey(), image, Image.class, version);
      }
      finally
      {
        stream.close();
View Full Code Here

    {
      final long version = data.getVersion(caller);
      final InputStream stream = data.getResourceAsStream(caller);
      try
      {
        final WmfFile wmfFile = new WmfFile(stream, -1, -1);
        final Image image = wmfFile.replay();
        return new SimpleResource(data.getKey(), image, version);
      }
      finally
      {
        stream.close();
View Full Code Here

    {
      final long version = data.getVersion(caller);
      final InputStream stream = data.getResourceAsStream(caller);
      try
      {
        final WmfFile wmfFile = new WmfFile(stream, -1, -1);
        return new SimpleResource (data.getKey(), wmfFile, version);
      }
      finally
      {
        stream.close();
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.libraries.pixie.wmf.WmfFile

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.