Package system.drawing
Class Image
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.MarshalByRefObject
-
- system.drawing.Image
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,IJCOBridgeReflected
,ISerializable
public class Image extends MarshalByRefObject implements ISerializable, java.lang.AutoCloseable
The base .NET class managing System.Drawing.Image, System.Drawing.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Drawing.Image
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.String
assemblyFullName
Fully assembly qualified name: System.Drawing.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51static java.lang.String
assemblyShortName
Assembly name: System.Drawing.Commonstatic java.lang.String
className
Qualified class name: System.Drawing.Imagestatic JCType
classType
The type managed from JCOBridge.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Image
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoImage
, 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 namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class TypeColorPalette
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(java.lang.String filename)
void
Save(java.lang.String filename, ImageCodecInfo encoder, EncoderParameters encoderParams)
void
Save(java.lang.String filename, ImageFormat format)
void
Save(Stream stream, ImageCodecInfo encoder, EncoderParameters encoderParams)
void
Save(Stream stream, ImageFormat format)
void
SaveAdd(Image image, EncoderParameters encoderParams)
void
SaveAdd(EncoderParameters encoderParams)
int
SelectActiveFrame(FrameDimension dimension, int frameIndex)
void
setJCOInstance(JCObject instance)
void
setPalette(ColorPalette Palette)
void
SetPropertyItem(PropertyItem propitem)
void
setTag(NetObject Tag)
-
Methods inherited from class system.MarshalByRefObject
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.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Drawing.Common- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Drawing.Image- See Also:
- Constant Field Values
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Specified by:
getJCOAssemblyName
in interfaceISerializable
- Overrides:
getJCOAssemblyName
in classMarshalByRefObject
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Specified by:
getJCOClassName
in interfaceISerializable
- Overrides:
getJCOClassName
in classMarshalByRefObject
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Specified by:
getJCOObjectName
in interfaceISerializable
- Overrides:
getJCOObjectName
in classMarshalByRefObject
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Specified by:
getJCOInstance
in interfaceISerializable
- Overrides:
getJCOInstance
in classMarshalByRefObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classMarshalByRefObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Specified by:
getJCOType
in interfaceISerializable
- Overrides:
getJCOType
in classMarshalByRefObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static Image cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoImage
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
Image
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
IsAlphaPixelFormat
public static boolean IsAlphaPixelFormat(PixelFormat pixfmt) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
IsCanonicalPixelFormat
public static boolean IsCanonicalPixelFormat(PixelFormat pixfmt) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
IsExtendedPixelFormat
public static boolean IsExtendedPixelFormat(PixelFormat pixfmt) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetFrameCount
public int GetFrameCount(FrameDimension dimension) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, NotSupportedException, InvalidOperationException, IndexOutOfRangeException, FormatException
-
GetPixelFormatSize
public static int GetPixelFormatSize(PixelFormat pixfmt) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
SelectActiveFrame
public int SelectActiveFrame(FrameDimension dimension, int frameIndex) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, NotSupportedException, InvalidOperationException, IndexOutOfRangeException, FormatException
-
FromFile
public 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
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
ArgumentNullException
IndexOutOfRangeException
PlatformNotSupportedException
ArgumentOutOfRangeException
InvalidOperationException
CultureNotFoundException
MissingMethodException
TargetInvocationException
FileNotFoundException
FormatException
ArrayTypeMismatchException
SerializationException
-
FromFile
public static Image FromFile(java.lang.String filename) throws java.lang.Throwable, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentException, NotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, CultureNotFoundException, MissingMethodException, TargetInvocationException, FileNotFoundException, FormatException, ArrayTypeMismatchException
- Throws:
java.lang.Throwable
ArgumentNullException
IndexOutOfRangeException
PlatformNotSupportedException
ArgumentException
NotSupportedException
ArgumentOutOfRangeException
InvalidOperationException
CultureNotFoundException
MissingMethodException
TargetInvocationException
FileNotFoundException
FormatException
ArrayTypeMismatchException
-
FromStream
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
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
IndexOutOfRangeException
FormatException
SerializationException
-
FromStream
public static Image FromStream(Stream stream, boolean useEmbeddedColorManagement) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, ObjectDisposedException, PlatformNotSupportedException, FormatException, ArrayTypeMismatchException
-
FromStream
public static Image FromStream(Stream stream) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, ObjectDisposedException, PlatformNotSupportedException, FormatException, InvalidOperationException, ArrayTypeMismatchException, IndexOutOfRangeException
-
GetEncoderParameterList
public EncoderParameters GetEncoderParameterList(Guid encoder) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, NotSupportedException, InvalidOperationException, IndexOutOfRangeException, FormatException, OutOfMemoryException
-
GetPropertyItem
public PropertyItem GetPropertyItem(int propid) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, NotSupportedException, InvalidOperationException, IndexOutOfRangeException, FormatException
-
GetBounds
public RectangleF GetBounds(JCORefOut<GraphicsUnit> pageUnit) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, NotSupportedException, IndexOutOfRangeException, FormatException
-
Clone
public NetObject Clone() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, NotSupportedException, InvalidOperationException, IndexOutOfRangeException, FormatException
-
Dispose
public void Dispose() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
-
RemovePropertyItem
public void RemovePropertyItem(int propid) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, NotSupportedException, InvalidOperationException, IndexOutOfRangeException, FormatException
-
RotateFlip
public void RotateFlip(RotateFlipType rotateFlipType) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, NotSupportedException, InvalidOperationException, IndexOutOfRangeException, FormatException
-
Save
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
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
OutOfMemoryException
IndexOutOfRangeException
FormatException
-
Save
public void Save(Stream stream, ImageFormat format) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, FormatException
-
Save
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
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
PlatformNotSupportedException
IndexOutOfRangeException
CultureNotFoundException
DirectoryNotFoundException
OutOfMemoryException
FormatException
ArrayTypeMismatchException
SerializationException
-
Save
public 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
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
FormatException
CultureNotFoundException
DirectoryNotFoundException
OutOfMemoryException
SerializationException
-
Save
public void Save(java.lang.String filename) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, NotSupportedException, IndexOutOfRangeException, FormatException, ArgumentOutOfRangeException, DirectoryNotFoundException, OutOfMemoryException
-
SaveAdd
public void SaveAdd(Image image, EncoderParameters encoderParams) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, OutOfMemoryException, IndexOutOfRangeException, FormatException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
OutOfMemoryException
IndexOutOfRangeException
FormatException
-
SaveAdd
public void SaveAdd(EncoderParameters encoderParams) throws java.lang.Throwable, PlatformNotSupportedException, OutOfMemoryException, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, ArgumentNullException
-
SetPropertyItem
public void SetPropertyItem(PropertyItem propitem) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, NotSupportedException, InvalidOperationException, IndexOutOfRangeException, FormatException
-
close
public void close() throws java.lang.Exception
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Throws:
java.lang.Exception
-
getFlags
public int getFlags() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, NotSupportedException, InvalidOperationException, IndexOutOfRangeException, FormatException
-
getHeight
public int getHeight() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, NotSupportedException, InvalidOperationException, IndexOutOfRangeException, FormatException
-
getWidth
public int getWidth() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, NotSupportedException, InvalidOperationException, IndexOutOfRangeException, FormatException
-
getPropertyIdList
public int[] getPropertyIdList() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, NotSupportedException, InvalidOperationException, IndexOutOfRangeException, FormatException
-
getHorizontalResolution
public Single getHorizontalResolution() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, NotSupportedException, InvalidOperationException, IndexOutOfRangeException, FormatException
-
getVerticalResolution
public Single getVerticalResolution() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, NotSupportedException, InvalidOperationException, IndexOutOfRangeException, FormatException
-
getPalette
public ColorPalette getPalette() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, NotSupportedException, InvalidOperationException, IndexOutOfRangeException, FormatException
-
setPalette
public void setPalette(ColorPalette Palette) throws java.lang.Throwable, ArrayTypeMismatchException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, ArgumentNullException, InvalidOperationException, FormatException
-
getRawFormat
public ImageFormat getRawFormat() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, NotSupportedException, InvalidOperationException, IndexOutOfRangeException, FormatException
-
getPixelFormat
public PixelFormat getPixelFormat() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getPropertyItems
public final PropertyItem[] getPropertyItems() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, NotSupportedException, InvalidOperationException, IndexOutOfRangeException, FormatException
-
getSize
public Size getSize() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, NotSupportedException, IndexOutOfRangeException, FormatException
-
getPhysicalDimension
public SizeF getPhysicalDimension() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, NotSupportedException, InvalidOperationException, IndexOutOfRangeException, FormatException
-
getFrameDimensionsList
public final Guid[] getFrameDimensionsList() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, NotSupportedException, InvalidOperationException, IndexOutOfRangeException, FormatException
-
getTag
public NetObject getTag() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setTag
public void setTag(NetObject Tag) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-