Vector Graphics, 2.4

org.freehep.graphicsio.emf
Class EMFImageLoader

java.lang.Object
  extended by org.freehep.graphicsio.emf.EMFImageLoader

public class EMFImageLoader
extends Object

this class creates a BufferedImage from EMF imaga data stored in a byte[].

Version:
$Id: freehep-graphicsio-emf/src/main/java/org/freehep/graphicsio/emf/EMFImageLoader.java 10ec7516e3ce 2007/02/06 18:42:34 duns $
Author:
Steffen Greiffenberg

Constructor Summary
EMFImageLoader()
           
 
Method Summary
static BufferedImage readImage(BitmapInfoHeader bmi, int width, int height, EMFInputStream emf, int len, BlendFunction blendFunction)
          creates a BufferedImage from an EMFInputStream using BitmapInfoHeader data
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EMFImageLoader

public EMFImageLoader()
Method Detail

readImage

public static BufferedImage readImage(BitmapInfoHeader bmi,
                                      int width,
                                      int height,
                                      EMFInputStream emf,
                                      int len,
                                      BlendFunction blendFunction)
                               throws IOException
creates a BufferedImage from an EMFInputStream using BitmapInfoHeader data

Parameters:
bmi - BitmapInfoHeader storing Bitmap informations
width - expected image width
height - expected image height
emf - EMF stream
len - length of image data
blendFunction - contains values for transparency
Returns:
BufferedImage or null
Throws:
IOException - thrown by EMFInputStream

Vector Graphics, 2.4

Copyright © 2014. All rights reserved.