org.freehep.graphicsio.emf
Class EMFImageLoader

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

public class EMFImageLoader
extends java.lang.Object

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

Version:
$Id$
Author:
Steffen Greiffenberg

Constructor Summary
EMFImageLoader()
           
 
Method Summary
static java.awt.image.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 java.awt.image.BufferedImage readImage(BitmapInfoHeader bmi,
                                                     int width,
                                                     int height,
                                                     EMFInputStream emf,
                                                     int len,
                                                     BlendFunction blendFunction)
                                              throws java.io.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:
java.io.IOException - thrown by EMFInputStream


Copyright © 2000-2007 FreeHEP. All Rights Reserved.