Package system.drawing.imaging
Class Metafile
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.MarshalByRefObject
-
- system.drawing.Image
-
- system.drawing.imaging.Metafile
-
- All Implemented Interfaces:
java.lang.AutoCloseable,IJCOBridgeReflected,ISerializable
public class Metafile extends Image
The base .NET class managing System.Drawing.Imaging.Metafile, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Drawing.Imaging.Metafile
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringassemblyFullNameFully assembly qualified name: System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.StringassemblyShortNameAssembly name: System.Drawingstatic java.lang.StringclassNameQualified class name: System.Drawing.Imaging.Metafilestatic JCTypeclassTypeThe type managed from JCOBridge.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Metafilecast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoMetafile, a cast assert is made to check if types are compatible.java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class TypeMetafileHeaderGetMetafileHeader()static MetafileHeaderGetMetafileHeader(java.lang.String fileName)static MetafileHeaderGetMetafileHeader(Stream stream)voidPlayRecord(EmfPlusRecordType recordType, int flags, int dataSize, byte[] data)voidPlayRecord(EmfPlusRecordType dupParam0, int dupParam1, int dupParam2, JCORefOut dupParam3)voidsetJCOInstance(JCObject instance)-
Methods inherited from class system.drawing.Image
Clone, close, Dispose, FromFile, FromFile, FromStream, FromStream, FromStream, GetBounds, GetEncoderParameterList, getFlags, GetFrameCount, getFrameDimensionsList, getHeight, getHorizontalResolution, getPalette, getPhysicalDimension, getPixelFormat, GetPixelFormatSize, getPropertyIdList, GetPropertyItem, getPropertyItems, getRawFormat, getSize, getTag, getVerticalResolution, getWidth, IsAlphaPixelFormat, IsCanonicalPixelFormat, IsExtendedPixelFormat, RemovePropertyItem, RotateFlip, Save, Save, Save, Save, Save, SaveAdd, SaveAdd, SelectActiveFrame, setPalette, SetPropertyItem, setTag
-
Methods inherited from class system.MarshalByRefObject
CreateObjRef, GetLifetimeService, InitializeLifetimeService
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toString, ToString
-
Methods inherited from interface system.runtime.serialization.ISerializable
GetObjectData
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Drawing- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Drawing.Imaging.Metafile- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Metafile
public Metafile(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
Metafile
public Metafile() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
Metafile
public Metafile(Stream stream) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, FormatException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionFormatException
-
Metafile
public Metafile(java.lang.String filename) throws java.lang.Throwable, ArgumentException, ArgumentNullException, IndexOutOfRangeException, NullReferenceException, ArgumentOutOfRangeException, NotSupportedException, SecurityException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException- Throws:
java.lang.ThrowableArgumentExceptionArgumentNullExceptionIndexOutOfRangeExceptionNullReferenceExceptionArgumentOutOfRangeExceptionNotSupportedExceptionSecurityExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Specified by:
getJCOAssemblyNamein interfaceISerializable- Overrides:
getJCOAssemblyNamein classImage- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Specified by:
getJCOClassNamein interfaceISerializable- Overrides:
getJCOClassNamein classImage- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Specified by:
getJCOObjectNamein interfaceISerializable- Overrides:
getJCOObjectNamein classImage- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Specified by:
getJCOInstancein interfaceISerializable- Overrides:
getJCOInstancein classImage- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classImage
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Specified by:
getJCOTypein interfaceISerializable- Overrides:
getJCOTypein classImage- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static Metafile cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoMetafile, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
Metafileinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
GetMetafileHeader
public MetafileHeader GetMetafileHeader() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, OutOfMemoryException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionOutOfMemoryExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeException
-
GetMetafileHeader
public static MetafileHeader GetMetafileHeader(Stream stream) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, OutOfMemoryException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionOutOfMemoryExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeException
-
GetMetafileHeader
public static MetafileHeader GetMetafileHeader(java.lang.String fileName) throws java.lang.Throwable, ArgumentException, ArgumentNullException, IndexOutOfRangeException, NullReferenceException, ArgumentOutOfRangeException, NotSupportedException, SecurityException, InvalidOperationException, OutOfMemoryException, MissingMethodException, TargetInvocationException, NotImplementedException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentNullExceptionIndexOutOfRangeExceptionNullReferenceExceptionArgumentOutOfRangeExceptionNotSupportedExceptionSecurityExceptionInvalidOperationExceptionOutOfMemoryExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedException
-
PlayRecord
public void PlayRecord(EmfPlusRecordType recordType, int flags, int dataSize, byte[] data) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeException
-
PlayRecord
public void PlayRecord(EmfPlusRecordType dupParam0, int dupParam1, int dupParam2, JCORefOut dupParam3) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeException
-
-