org.freehep.graphicsio.emf
Class EMFHeader
java.lang.Object
org.freehep.graphicsio.emf.EMFHeader
- All Implemented Interfaces:
- EMFConstants
- public class EMFHeader
- extends Object
- implements EMFConstants
EMF File Header.
- Version:
- $Id: EMFHeader.java,v 1.10 2003/09/29 22:05:54 duns Exp $
- Author:
- Mark Donszelmann
- Source Code:
- EMFHeader.java
Fields inherited from interface org.freehep.graphicsio.emf.EMFConstants |
AC_SRC_ALPHA, AC_SRC_OVER, AD_CLOCKWISE, AD_COUNTERCLOCKWISE, ALTERNATE, BI_BITFIELDS, BI_JPEG, BI_PNG, BI_RGB, BI_RLE4, BI_RLE8, BKG_OPAQUE, BKG_TRANSPARENT, BLACKONWHITE, BS_DIBPATTERN, BS_DIBPATTERN8X8, BS_DIBPATTERNPT, BS_HATCHED, BS_HOLLOW, BS_INDEXED, BS_MONOPATTERN, BS_NULL, BS_PATTERN, BS_PATTERN8X8, BS_SOLID, COLORONCOLOR, DIB_PAL_COLORS, DIB_RGB_COLORS, ETO_CLIPPED, ETO_GLYPH_INDEX, ETO_IGNORELANGUAGE, ETO_NUMERICSLATIN, ETO_NUMERICSLOCAL, ETO_OPAQUE, ETO_PDY, ETO_RTLREADING, FLOODFILLBORDER, FLOODFILLSURFACE, FW_BOLD, FW_DONTCARE, FW_EXTRABOLD, FW_EXTRALIGHT, FW_HEAVY, FW_LIGHT, FW_MEDIUM, FW_NORMAL, FW_SEMIBOLD, FW_THIN, GM_ADVANCED, GM_COMPATIBLE, GRADIENT_FILL_RECT_H, GRADIENT_FILL_RECT_V, GRADIENT_FILL_TRIANGLE, HALFTONE, HS_BDIAGONAL, HS_CROSS, HS_DIAGCROSS, HS_FDIAGONAL, HS_HORIZONTAL, HS_VERTICAL, ICM_DONE_OUTSIDEDC, ICM_OFF, ICM_ON, ICM_QUERY, MM_ANISOTROPIC, MM_HIENGLISH, MM_HIMETRIC, MM_ISOTROPIC, MM_LOENGLISH, MM_LOMETRIC, MM_TEXT, MM_TWIPS, MWT_IDENTITY, MWT_LEFTMULTIPLY, MWT_RIGHTMULTIPLY, PAN_ANY, PAN_NO_FIT, PS_COSMETIC, PS_DASH, PS_DASHDOT, PS_DASHDOTDOT, PS_DOT, PS_ENDCAP_FLAT, PS_ENDCAP_ROUND, PS_ENDCAP_SQUARE, PS_GEOMETRIC, PS_INSIDEFRAME, PS_JOIN_BEVEL, PS_JOIN_MITER, PS_JOIN_ROUND, PS_NULL, PS_SOLID, PS_USERSTYLE, PT_BEZIERTO, PT_CLOSEFIGURE, PT_LINETO, PT_MOVETO, R2_BLACK, R2_COPYPEN, R2_MASKNOTPEN, R2_MASKPEN, R2_MASKPENNOT, R2_MERGENOTPEN, R2_MERGEPEN, R2_MERGEPENNOT, R2_NOP, R2_NOT, R2_NOTCOPYPEN, R2_NOTMASKPEN, R2_NOTMERGEPEN, R2_NOTXORPEN, R2_WHITE, R2_XORPEN, RGN_AND, RGN_COPY, RGN_DIFF, RGN_MAX, RGN_MIN, RGN_OR, RGN_XOR, SRCCOPY, STRETCH_ANDSCANS, STRETCH_DELETESCANS, STRETCH_HALFTONE, STRETCH_ORSCANS, TA_BASELINE, TA_BOTTOM, TA_CENTER, TA_LEFT, TA_NOUPDATECP, TA_RIGHT, TA_RTLREADING, TA_TOP, TA_UPDATECP, TWIPS, UNITS_PER_PIXEL, WHITEONBLACK, WINDING |
Method Summary |
Rectangle |
getBounds()
Specifies the dimensions, in device units, of the smallest rectangle that can be drawn around
the picture stored in the metafile. |
String |
getDescription()
the description of the enhanced metafile's contents |
Dimension |
getDevice()
Specifies the resolution of the reference device, in pixels. |
Rectangle |
getFrame()
Specifies the dimensions, in .01 millimeter units, of a rectangle that surrounds the picture stored
in the metafile. |
Dimension |
getMicrometers()
Windows 98/Me, Windows 2000/XP: Size of the reference device in micrometers. |
Dimension |
getMillimeters()
Specifies the resolution of the reference device, in millimeters. |
String |
getSignature()
Specifies a double word signature. |
boolean |
isOpenGL()
Windows 95/98/Me, Windows NT 4.0 and later: Specifies whether any OpenGL records
are present in a metafile. bOpenGL is a simple Boolean flag that you can use to determine
whether an enhanced metafile requires OpenGL handling. |
int |
size()
size of emf file in bytes ? |
String |
toString()
|
void |
write(EMFOutputStream emf)
|
EMFHeader
public EMFHeader(Rectangle bounds,
int versionMajor,
int versionMinor,
int bytes,
int records,
int handles,
String application,
String name,
Dimension device)
write
public void write(EMFOutputStream emf)
throws IOException
- Throws:
IOException
size
public int size()
- size of emf file in bytes ?
toString
public String toString()
getBounds
public Rectangle getBounds()
- Specifies the dimensions, in device units, of the smallest rectangle that can be drawn around
the picture stored in the metafile. This rectangle is supplied by graphics device interface (GDI).
Its dimensions include the right and bottom edges.
getFrame
public Rectangle getFrame()
- Specifies the dimensions, in .01 millimeter units, of a rectangle that surrounds the picture stored
in the metafile. This rectangle must be supplied by the application that creates the metafile.
Its dimensions include the right and bottom edges.
getSignature
public String getSignature()
- Specifies a double word signature. This member must specify the value assigned
to the ENHMETA_SIGNATURE constant.
getDescription
public String getDescription()
- the description of the enhanced metafile's contents
getDevice
public Dimension getDevice()
- Specifies the resolution of the reference device, in pixels.
getMillimeters
public Dimension getMillimeters()
- Specifies the resolution of the reference device, in millimeters.
getMicrometers
public Dimension getMicrometers()
- Windows 98/Me, Windows 2000/XP: Size of the reference device in micrometers.
isOpenGL
public boolean isOpenGL()
- Windows 95/98/Me, Windows NT 4.0 and later: Specifies whether any OpenGL records
are present in a metafile. bOpenGL is a simple Boolean flag that you can use to determine
whether an enhanced metafile requires OpenGL handling. When a metafile contains
OpenGL records, bOpenGL is TRUE; otherwise it is FALSE.
Copyright © 2000-2004 FreeHEP, All Rights Reserved.