public class Image extends MarshalByRefObject implements ISerializable, java.lang.AutoCloseable
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Drawing.Image
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=9.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.Image
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
Image() |
Image(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static Image |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into Image, a cast assert is made to check if types are compatible. |
NetObject |
Clone() |
void |
close() |
void |
Dispose() |
static Image |
FromFile(java.lang.String filename) |
static Image |
FromFile(java.lang.String filename,
boolean useEmbeddedColorManagement) |
static Image |
FromStream(Stream stream) |
static Image |
FromStream(Stream stream,
boolean useEmbeddedColorManagement) |
static Image |
FromStream(Stream stream,
boolean useEmbeddedColorManagement,
boolean validateImageData) |
RectangleF |
GetBounds(JCORefOut<GraphicsUnit> pageUnit) |
EncoderParameters |
GetEncoderParameterList(Guid encoder) |
int |
getFlags() |
int |
GetFrameCount(FrameDimension dimension) |
Guid[] |
getFrameDimensionsList() |
int |
getHeight() |
Single |
getHorizontalResolution() |
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
|
ColorPalette |
getPalette() |
SizeF |
getPhysicalDimension() |
PixelFormat |
getPixelFormat() |
static int |
GetPixelFormatSize(PixelFormat pixfmt) |
int[] |
getPropertyIdList() |
PropertyItem |
GetPropertyItem(int propid) |
PropertyItem[] |
getPropertyItems() |
ImageFormat |
getRawFormat() |
Size |
getSize() |
NetObject |
getTag() |
Single |
getVerticalResolution() |
int |
getWidth() |
static boolean |
IsAlphaPixelFormat(PixelFormat pixfmt) |
static boolean |
IsCanonicalPixelFormat(PixelFormat pixfmt) |
static boolean |
IsExtendedPixelFormat(PixelFormat pixfmt) |
void |
RemovePropertyItem(int propid) |
void |
RotateFlip(RotateFlipType rotateFlipType) |
void |
Save(Stream stream,
ImageCodecInfo encoder,
EncoderParameters encoderParams) |
void |
Save(Stream stream,
ImageFormat format) |
void |
Save(java.lang.String filename) |
void |
Save(java.lang.String filename,
ImageCodecInfo encoder,
EncoderParameters encoderParams) |
void |
Save(java.lang.String filename,
ImageFormat format) |
void |
SaveAdd(EncoderParameters encoderParams) |
void |
SaveAdd(Image image,
EncoderParameters encoderParams) |
int |
SelectActiveFrame(FrameDimension dimension,
int frameIndex) |
void |
setJCOInstance(JCObject instance) |
void |
setPalette(ColorPalette Palette) |
void |
SetPropertyItem(PropertyItem propitem) |
void |
setTag(NetObject Tag) |
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 Image()
throws java.lang.Throwable
java.lang.Throwablepublic Image(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic static Image cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into Image, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedImage instancejava.lang.Throwable - in case of error during cast operationpublic NetObject Clone() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, NotSupportedException, InvalidOperationException, IndexOutOfRangeException, FormatException
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 Image FromFile(java.lang.String filename) throws java.lang.Throwable, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentException, NotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, CultureNotFoundException, MissingMethodException, TargetInvocationException, FileNotFoundException, FormatException, ArrayTypeMismatchException
java.lang.ThrowableArgumentNullExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionArgumentExceptionNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionCultureNotFoundExceptionMissingMethodExceptionTargetInvocationExceptionFileNotFoundExceptionFormatExceptionArrayTypeMismatchExceptionpublic static Image FromFile(java.lang.String filename, boolean useEmbeddedColorManagement) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, CultureNotFoundException, MissingMethodException, TargetInvocationException, FileNotFoundException, FormatException, ArrayTypeMismatchException, SerializationException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionCultureNotFoundExceptionMissingMethodExceptionTargetInvocationExceptionFileNotFoundExceptionFormatExceptionArrayTypeMismatchExceptionSerializationExceptionpublic static Image FromStream(Stream stream) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, ObjectDisposedException, PlatformNotSupportedException, FormatException, InvalidOperationException, ArrayTypeMismatchException, IndexOutOfRangeException
public static Image FromStream(Stream stream, boolean useEmbeddedColorManagement) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, ObjectDisposedException, PlatformNotSupportedException, FormatException, ArrayTypeMismatchException
public static Image FromStream(Stream stream, boolean useEmbeddedColorManagement, boolean validateImageData) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException, SerializationException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionFormatExceptionSerializationExceptionpublic RectangleF GetBounds(JCORefOut<GraphicsUnit> pageUnit) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, NotSupportedException, IndexOutOfRangeException, FormatException
public EncoderParameters GetEncoderParameterList(Guid encoder) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, NotSupportedException, InvalidOperationException, IndexOutOfRangeException, FormatException, OutOfMemoryException
public int getFlags()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ArrayTypeMismatchException,
NotSupportedException,
InvalidOperationException,
IndexOutOfRangeException,
FormatException
public int GetFrameCount(FrameDimension dimension) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, NotSupportedException, InvalidOperationException, IndexOutOfRangeException, FormatException
public final Guid[] getFrameDimensionsList() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, NotSupportedException, InvalidOperationException, IndexOutOfRangeException, FormatException
public int getHeight()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ArrayTypeMismatchException,
NotSupportedException,
InvalidOperationException,
IndexOutOfRangeException,
FormatException
public Single getHorizontalResolution() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, NotSupportedException, InvalidOperationException, IndexOutOfRangeException, FormatException
public 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 ColorPalette getPalette() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, NotSupportedException, InvalidOperationException, IndexOutOfRangeException, FormatException
public SizeF getPhysicalDimension() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, NotSupportedException, InvalidOperationException, IndexOutOfRangeException, FormatException
public PixelFormat getPixelFormat() throws java.lang.Throwable
java.lang.Throwablepublic static int GetPixelFormatSize(PixelFormat pixfmt) throws java.lang.Throwable
java.lang.Throwablepublic int[] getPropertyIdList()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ArrayTypeMismatchException,
NotSupportedException,
InvalidOperationException,
IndexOutOfRangeException,
FormatException
public PropertyItem GetPropertyItem(int propid) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, NotSupportedException, InvalidOperationException, IndexOutOfRangeException, FormatException
public final PropertyItem[] getPropertyItems() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, NotSupportedException, InvalidOperationException, IndexOutOfRangeException, FormatException
public ImageFormat getRawFormat() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, NotSupportedException, InvalidOperationException, IndexOutOfRangeException, FormatException
public Size getSize() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, NotSupportedException, IndexOutOfRangeException, FormatException
public NetObject getTag() throws java.lang.Throwable
java.lang.Throwablepublic Single getVerticalResolution() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, NotSupportedException, InvalidOperationException, IndexOutOfRangeException, FormatException
public int getWidth()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ArrayTypeMismatchException,
NotSupportedException,
InvalidOperationException,
IndexOutOfRangeException,
FormatException
public static boolean IsAlphaPixelFormat(PixelFormat pixfmt) throws java.lang.Throwable
java.lang.Throwablepublic static boolean IsCanonicalPixelFormat(PixelFormat pixfmt) throws java.lang.Throwable
java.lang.Throwablepublic static boolean IsExtendedPixelFormat(PixelFormat pixfmt) throws java.lang.Throwable
java.lang.Throwablepublic void RemovePropertyItem(int propid)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ArrayTypeMismatchException,
NotSupportedException,
InvalidOperationException,
IndexOutOfRangeException,
FormatException
public void RotateFlip(RotateFlipType rotateFlipType) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, NotSupportedException, InvalidOperationException, IndexOutOfRangeException, FormatException
public void Save(Stream stream, ImageCodecInfo encoder, EncoderParameters encoderParams) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, OutOfMemoryException, IndexOutOfRangeException, FormatException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionFormatExceptionpublic void Save(Stream stream, ImageFormat format) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, FormatException
public void Save(java.lang.String filename)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ObjectDisposedException,
InvalidOperationException,
NotSupportedException,
IndexOutOfRangeException,
FormatException,
ArgumentOutOfRangeException,
DirectoryNotFoundException,
OutOfMemoryException
public void Save(java.lang.String filename,
ImageCodecInfo encoder,
EncoderParameters encoderParams)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentNullException,
PlatformNotSupportedException,
IndexOutOfRangeException,
CultureNotFoundException,
DirectoryNotFoundException,
OutOfMemoryException,
FormatException,
ArrayTypeMismatchException,
SerializationException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionDirectoryNotFoundExceptionOutOfMemoryExceptionFormatExceptionArrayTypeMismatchExceptionSerializationExceptionpublic void Save(java.lang.String filename,
ImageFormat format)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
FormatException,
CultureNotFoundException,
DirectoryNotFoundException,
OutOfMemoryException,
SerializationException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionFormatExceptionCultureNotFoundExceptionDirectoryNotFoundExceptionOutOfMemoryExceptionSerializationExceptionpublic void SaveAdd(EncoderParameters encoderParams) throws java.lang.Throwable, PlatformNotSupportedException, OutOfMemoryException, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, ArgumentNullException
public void SaveAdd(Image image, EncoderParameters encoderParams) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, OutOfMemoryException, IndexOutOfRangeException, FormatException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionFormatExceptionpublic int SelectActiveFrame(FrameDimension dimension, int frameIndex) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, NotSupportedException, InvalidOperationException, IndexOutOfRangeException, FormatException
public void setJCOInstance(JCObject instance)
setJCOInstance in class MarshalByRefObjectpublic void setPalette(ColorPalette Palette) throws java.lang.Throwable, ArrayTypeMismatchException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, ArgumentNullException, InvalidOperationException, FormatException
public void SetPropertyItem(PropertyItem propitem) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, NotSupportedException, InvalidOperationException, IndexOutOfRangeException, FormatException
public void setTag(NetObject Tag) throws java.lang.Throwable
java.lang.Throwable