public class Icon extends MarshalByRefObject implements ISerializable, java.lang.AutoCloseable
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Drawing.Icon
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
|
static java.lang.String |
assemblyShortName
Assembly name: System.Drawing
|
static java.lang.String |
className
Qualified class name: System.Drawing.Icon
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
Icon() |
Icon(Icon original,
int width,
int height) |
Icon(Icon original,
Size size) |
Icon(NetType type,
java.lang.String resource) |
Icon(java.lang.Object instance)
Internal constructor.
|
Icon(Stream stream) |
Icon(Stream stream,
int width,
int height) |
Icon(Stream stream,
Size size) |
Icon(java.lang.String fileName) |
Icon(java.lang.String fileName,
int width,
int height) |
Icon(java.lang.String fileName,
Size size) |
| Modifier and Type | Method and Description |
|---|---|
static Icon |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into Icon, a cast assert is made to check if types are compatible. |
NetObject |
Clone() |
void |
close() |
void |
Dispose() |
static Icon |
ExtractAssociatedIcon(java.lang.String filePath) |
int |
getHeight() |
java.lang.String |
getJCOAssemblyName()
Returns the reflected Assembly name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
Size |
getSize() |
int |
getWidth() |
void |
Save(Stream outputStream) |
void |
setJCOInstance(JCObject instance) |
Bitmap |
ToBitmap() |
CreateObjRef, GetLifetimeService, InitializeLifetimeServiceEquals, Equals, GetHashCode, GetType, hashCode, toString, ToStringGetObjectData, ToISerializablepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public Icon()
throws java.lang.Throwable
java.lang.Throwablepublic Icon(Icon original, int width, int height) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, FormatException, OverflowException, IndexOutOfRangeException, Win32Exception
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionFormatExceptionOverflowExceptionIndexOutOfRangeExceptionWin32Exceptionpublic Icon(Icon original, Size size) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException, AbandonedMutexException, OverflowException, Win32Exception
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeExceptionAbandonedMutexExceptionOverflowExceptionWin32Exceptionpublic Icon(NetType type, java.lang.String resource) throws java.lang.Throwable, NotImplementedException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, FormatException, OverflowException, IndexOutOfRangeException, Win32Exception
java.lang.ThrowableNotImplementedExceptionArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionFormatExceptionOverflowExceptionIndexOutOfRangeExceptionWin32Exceptionpublic Icon(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic Icon(Stream stream) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException, AbandonedMutexException, OverflowException, Win32Exception
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeExceptionAbandonedMutexExceptionOverflowExceptionWin32Exceptionpublic Icon(Stream stream, int width, int height) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, FormatException, OverflowException, IndexOutOfRangeException, Win32Exception
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionFormatExceptionOverflowExceptionIndexOutOfRangeExceptionWin32Exceptionpublic Icon(Stream stream, Size size) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException, AbandonedMutexException, OverflowException, Win32Exception
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeExceptionAbandonedMutexExceptionOverflowExceptionWin32Exceptionpublic Icon(java.lang.String fileName)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException,
FormatException,
PathTooLongException,
IndexOutOfRangeException,
NotSupportedException,
InvalidOperationException,
NullReferenceException,
SecurityException,
IOException,
NotImplementedException,
CultureNotFoundException,
MissingManifestResourceException,
ObjectDisposedException,
OverflowException,
Win32Exception
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionFormatExceptionPathTooLongExceptionIndexOutOfRangeExceptionNotSupportedExceptionInvalidOperationExceptionNullReferenceExceptionSecurityExceptionIOExceptionNotImplementedExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionOverflowExceptionWin32Exceptionpublic Icon(java.lang.String fileName,
int width,
int height)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException,
FormatException,
PathTooLongException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
IOException,
DriveNotFoundException,
OperationCanceledException,
NotSupportedException,
InvalidOperationException,
NullReferenceException,
SecurityException,
NotImplementedException,
CultureNotFoundException,
MissingManifestResourceException,
ObjectDisposedException,
AbandonedMutexException,
OverflowException,
Win32Exception
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionFormatExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionNotSupportedExceptionInvalidOperationExceptionNullReferenceExceptionSecurityExceptionNotImplementedExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionAbandonedMutexExceptionOverflowExceptionWin32Exceptionpublic Icon(java.lang.String fileName,
Size size)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException,
FormatException,
PathTooLongException,
IndexOutOfRangeException,
NotSupportedException,
InvalidOperationException,
NullReferenceException,
SecurityException,
IOException,
NotImplementedException,
CultureNotFoundException,
MissingManifestResourceException,
ObjectDisposedException,
OverflowException,
Win32Exception
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionFormatExceptionPathTooLongExceptionIndexOutOfRangeExceptionNotSupportedExceptionInvalidOperationExceptionNullReferenceExceptionSecurityExceptionIOExceptionNotImplementedExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionOverflowExceptionWin32Exceptionpublic static Icon cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into Icon, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedIcon instancejava.lang.Throwable - in case of error during cast operationpublic NetObject Clone() throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, IndexOutOfRangeException, AbandonedMutexException, OverflowException, Win32Exception
java.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionIndexOutOfRangeExceptionAbandonedMutexExceptionOverflowExceptionWin32Exceptionpublic void close()
throws java.lang.Exception
close in interface java.lang.AutoCloseablejava.lang.Exceptionpublic void Dispose()
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionpublic static Icon ExtractAssociatedIcon(java.lang.String filePath) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException, SecurityException, MemberAccessException, NullReferenceException, UriFormatException, OutOfMemoryException, PathTooLongException, NotSupportedException, FileNotFoundException, AbandonedMutexException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeExceptionSecurityExceptionMemberAccessExceptionNullReferenceExceptionUriFormatExceptionOutOfMemoryExceptionPathTooLongExceptionNotSupportedExceptionFileNotFoundExceptionAbandonedMutexExceptionpublic int getHeight()
throws java.lang.Throwable,
ObjectDisposedException,
ArgumentNullException,
ArgumentException
java.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionArgumentExceptionpublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in interface ISerializablegetJCOAssemblyName in class MarshalByRefObjectString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in interface ISerializablegetJCOClassName in class MarshalByRefObjectString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in interface ISerializablegetJCOInstance in class MarshalByRefObjectObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in interface ISerializablegetJCOObjectName in class MarshalByRefObjectString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in interface ISerializablegetJCOType in class MarshalByRefObjectJCType representing the CLR Type of the instantiated Classpublic Size getSize() throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException
java.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionArgumentExceptionpublic int getWidth()
throws java.lang.Throwable,
ObjectDisposedException,
ArgumentNullException,
ArgumentException
java.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionArgumentExceptionpublic void Save(Stream outputStream) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException
java.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionArgumentExceptionpublic void setJCOInstance(JCObject instance)
setJCOInstance in class MarshalByRefObjectpublic Bitmap ToBitmap() throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, NotImplementedException, CultureNotFoundException, IndexOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, OutOfMemoryException, NotSupportedException, NullReferenceException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, SecurityException, OverflowException
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionInvalidOperationExceptionNotImplementedExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionObjectDisposedExceptionOutOfMemoryExceptionNotSupportedExceptionNullReferenceExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionSecurityExceptionOverflowException