org.freehep.graphicsio.emf
Class EMFImageLoader
java.lang.Object
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$
- Author:
- Steffen Greiffenberg
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EMFImageLoader
public EMFImageLoader()
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 informationswidth - expected image widthheight - expected image heightemf - EMF streamlen - length of image datablendFunction - contains values for transparency
- Returns:
- BufferedImage or null
- Throws:
IOException - thrown by EMFInputStream
Copyright © 2012. All Rights Reserved.