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.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
|
static java.lang.String |
assemblyShortName
Assembly name: System.Drawing.Common
|
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) |
static Icon |
ExtractIcon(java.lang.String filePath,
int id,
boolean smallIcon) |
static Icon |
ExtractIcon(java.lang.String filePath,
int id,
int size) |
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() |
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, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException, OverflowException, Win32Exception
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionFormatExceptionOverflowExceptionWin32Exceptionpublic Icon(Icon original, Size size) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, OverflowException, Win32Exception, ArrayTypeMismatchException
public Icon(NetType type, java.lang.String resource) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException, IOException, OverflowException, Win32Exception
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionFormatExceptionIOExceptionOverflowExceptionWin32Exceptionpublic Icon(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic Icon(Stream stream) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, ArrayTypeMismatchException, IOException, IndexOutOfRangeException, FormatException, OverflowException, Win32Exception
public Icon(Stream stream, int width, int height) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IOException, IndexOutOfRangeException, FormatException, OverflowException, Win32Exception
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIOExceptionIndexOutOfRangeExceptionFormatExceptionOverflowExceptionWin32Exceptionpublic Icon(Stream stream, Size size) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, ArrayTypeMismatchException, IOException, IndexOutOfRangeException, FormatException, OverflowException, Win32Exception
public Icon(java.lang.String fileName)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
SerializationException,
ArrayTypeMismatchException,
IOException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException,
IndexOutOfRangeException,
OverflowException,
FormatException,
Win32Exception
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionSerializationExceptionArrayTypeMismatchExceptionIOExceptionCultureNotFoundExceptionObjectDisposedExceptionInvalidOperationExceptionIndexOutOfRangeExceptionOverflowExceptionFormatExceptionWin32Exceptionpublic Icon(java.lang.String fileName,
int width,
int height)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
OutOfMemoryException,
SerializationException,
ArrayTypeMismatchException,
IOException,
CultureNotFoundException,
NotSupportedException,
InvalidOperationException,
ObjectDisposedException,
OverflowException,
FormatException,
Win32Exception
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionOutOfMemoryExceptionSerializationExceptionArrayTypeMismatchExceptionIOExceptionCultureNotFoundExceptionNotSupportedExceptionInvalidOperationExceptionObjectDisposedExceptionOverflowExceptionFormatExceptionWin32Exceptionpublic Icon(java.lang.String fileName,
Size size)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
SerializationException,
ArrayTypeMismatchException,
IOException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException,
IndexOutOfRangeException,
OverflowException,
FormatException,
Win32Exception
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionSerializationExceptionArrayTypeMismatchExceptionIOExceptionCultureNotFoundExceptionObjectDisposedExceptionInvalidOperationExceptionIndexOutOfRangeExceptionOverflowExceptionFormatExceptionWin32Exceptionpublic 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, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, OverflowException, Win32Exception, ArrayTypeMismatchException
public void close()
throws java.lang.Exception
close in interface java.lang.AutoCloseablejava.lang.Exceptionpublic void Dispose()
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentNullException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionpublic static Icon ExtractAssociatedIcon(java.lang.String filePath) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, CultureNotFoundException, MissingMethodException, TargetInvocationException, FileNotFoundException, FormatException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionCultureNotFoundExceptionMissingMethodExceptionTargetInvocationExceptionFileNotFoundExceptionFormatExceptionpublic static Icon ExtractIcon(java.lang.String filePath, int id, boolean smallIcon) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IOException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException
public static Icon ExtractIcon(java.lang.String filePath, int id, int size) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IOException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException
public int getHeight()
throws java.lang.Throwable
java.lang.Throwablepublic 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
java.lang.Throwablepublic int getWidth()
throws java.lang.Throwable
java.lang.Throwablepublic void Save(Stream outputStream) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, OutOfMemoryException
public void setJCOInstance(JCObject instance)
setJCOInstance in class MarshalByRefObjectpublic Bitmap ToBitmap() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, NullReferenceException, FormatException, ObjectDisposedException, ArrayTypeMismatchException, IOException, OverflowException, OutOfMemoryException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionPlatformNotSupportedExceptionNullReferenceExceptionFormatExceptionObjectDisposedExceptionArrayTypeMismatchExceptionIOExceptionOverflowExceptionOutOfMemoryException