|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.metafiles.Metafile
com.aspose.metafiles.EmfMetafile
public final class EmfMetafile
Represents EMF Metafile.
Field Summary |
---|
Fields inherited from interface java.awt.image.renderable.RenderableImage |
---|
HINTS_OBSERVED |
Constructor Summary | |
---|---|
EmfMetafile(java.io.InputStream stream)
This constructor is the primary mechanism to read existing metafile from a stream. |
|
EmfMetafile(java.lang.String fileName)
This constructor is the primary mechanism to read existing presentation from a file. |
Method Summary | |
---|---|
java.awt.image.RenderedImage |
createRendering(java.awt.image.renderable.RenderContext rc)
Creates RenderedImage from the metafile. |
java.awt.Rectangle |
getBounds()
Returns the metafile's bounds. |
MetafileComment[] |
getComments()
Returns comments stored in a metafile. |
void |
playMetafile(java.awt.Graphics2D target)
Draws a metafile without transform to the specified Graphics2D object. |
void |
playMetafile(java.awt.Graphics2D target,
java.awt.geom.AffineTransform trans)
Draws a metafile to the specified Graphics2D object. |
Methods inherited from class com.aspose.metafiles.Metafile |
---|
createDefaultRendering, createScaledRendering, getDefaultRenderingHints, getEmbeddedBitmaps, getHeight, getMaxPixelCount, getMinPixelCount, getMinX, getMinY, getProperty, getPropertyNames, getSources, getTextOutOperations, getTextStrings, getWidth, isDynamic, LoadMetafile, LoadMetafile, setDefaultRenderingHints, setMaxPixelCount, setMinPixelCount |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EmfMetafile(java.io.InputStream stream) throws MetafilesException
stream
- -
input stream.
MetafilesException
public EmfMetafile(java.lang.String fileName) throws MetafilesException, java.io.FileNotFoundException
fileName
- -
name of a file.
MetafilesException
java.io.FileNotFoundException
Method Detail |
---|
public java.awt.Rectangle getBounds()
getBounds
in class Metafile
public void playMetafile(java.awt.Graphics2D target) throws MetafilesException
playMetafile
in class Metafile
target
- -
Graphics2D object.
MetafilesException
public void playMetafile(java.awt.Graphics2D target, java.awt.geom.AffineTransform trans) throws MetafilesException
playMetafile
in class Metafile
target
- -
Graphics2D object.trans
- -
coordinates transformation from metafile's coordinates to Graphics2D user
space.
MetafilesException
public java.awt.image.RenderedImage createRendering(java.awt.image.renderable.RenderContext rc)
rc
- -
RenderContext object used to create image.public MetafileComment[] getComments()
getComments
in class Metafile
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |