|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.pietjonas.wmfwriter2d.ClipboardCopy
Uses JNI and the JavaClipboard DLL to copy a WMF or EMF to the Windows clipboard. Expects the WMF and EMF on the file system.
Constructor Summary | |
ClipboardCopy()
Loads the JavaClipboard.dll |
Method Summary | |
int |
copy(java.lang.String wmfname,
int width,
int height,
boolean isEmf)
Copies a WMF (with standard header) or an EMF into the Windows clipboard. |
int |
copyWithPixelSize(java.lang.String wmfname,
int width,
int height,
boolean isEmf)
Copies a WMF (with standard header) or an EMF into the Windows clipboard. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ClipboardCopy() throws java.lang.Exception
java.lang.Exception
- if the dll load failsMethod Detail |
public int copy(java.lang.String wmfname, int width, int height, boolean isEmf)
WMF.writeHeader
to create the proper WMF.
wmfname
- The file name of the WMFwidth
- width of the WMF in units of 0.01 mm, can be 0height
- height of the WMF in units of 0.01 mm, can be 0isEmf
- if true file contains a EMF
WMF
public int copyWithPixelSize(java.lang.String wmfname, int width, int height, boolean isEmf)
WMF.writeHeader
to create the proper WMF.
wmfname
- The file name of the WMFwidth
- width of the WMF in pixel units, can be 0height
- height of the WMF in pixel units, can be 0isEmf
- if true file contains a EMF
copy(java.lang.String, int, int, boolean)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |