public class Bitmap extends Image
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Drawing.Bitmap
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.Bitmap
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
Bitmap() |
Bitmap(Image original) |
Bitmap(Image original,
int width,
int height) |
Bitmap(Image original,
Size newSize) |
Bitmap(int width,
int height) |
Bitmap(int width,
int height,
Graphics g) |
Bitmap(int width,
int height,
PixelFormat format) |
Bitmap(NetType type,
java.lang.String resource) |
Bitmap(java.lang.Object instance)
Internal constructor.
|
Bitmap(Stream stream) |
Bitmap(Stream stream,
boolean useIcm) |
Bitmap(java.lang.String filename) |
Bitmap(java.lang.String filename,
boolean useIcm) |
| Modifier and Type | Method and Description |
|---|---|
void |
ApplyEffect(Effect effect,
Rectangle area) |
static Bitmap |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into Bitmap, a cast assert is made to check if types are compatible. |
Bitmap |
Clone(RectangleF rect,
PixelFormat format) |
Bitmap |
Clone(Rectangle rect,
PixelFormat format) |
void |
ConvertFormat(PixelFormat format) |
void |
ConvertFormat(PixelFormat format,
DitherType ditherType,
PaletteType paletteType,
ColorPalette palette,
Single alphaThresholdPercent) |
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
|
Color |
GetPixel(int x,
int y) |
BitmapData |
LockBits(Rectangle rect,
ImageLockMode flags,
PixelFormat format) |
BitmapData |
LockBits(Rectangle rect,
ImageLockMode flags,
PixelFormat format,
BitmapData bitmapData) |
void |
MakeTransparent() |
void |
MakeTransparent(Color transparentColor) |
void |
setJCOInstance(JCObject instance) |
void |
SetPixel(int x,
int y,
Color color) |
void |
SetResolution(Single xDpi,
Single yDpi) |
void |
UnlockBits(BitmapData bitmapdata) |
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, setTagGetLifetimeService, 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 Bitmap()
throws java.lang.Throwable
java.lang.Throwablepublic Bitmap(Image original) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, NotSupportedException, IndexOutOfRangeException, FormatException
public Bitmap(Image original, int width, int height) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, NotSupportedException, IndexOutOfRangeException, FormatException
public Bitmap(Image original, Size newSize) throws java.lang.Throwable, ArgumentException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, ArgumentNullException, NotSupportedException
public Bitmap(int width,
int height)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ObjectDisposedException,
InvalidOperationException,
NotSupportedException,
IndexOutOfRangeException,
FormatException
public Bitmap(int width,
int height,
Graphics g)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
IndexOutOfRangeException,
FormatException
public Bitmap(int width,
int height,
PixelFormat format)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ArrayTypeMismatchException,
NotSupportedException,
InvalidOperationException,
IndexOutOfRangeException,
FormatException
public Bitmap(NetType type, java.lang.String resource) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, ObjectDisposedException, ArrayTypeMismatchException
public Bitmap(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic Bitmap(Stream stream) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, ObjectDisposedException, PlatformNotSupportedException, FormatException, ArrayTypeMismatchException
public Bitmap(Stream stream, boolean useIcm) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException, SerializationException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionFormatExceptionSerializationExceptionpublic Bitmap(java.lang.String filename)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ArgumentNullException,
IndexOutOfRangeException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
CultureNotFoundException,
FormatException,
ArrayTypeMismatchException
public Bitmap(java.lang.String filename,
boolean useIcm)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentNullException,
IndexOutOfRangeException,
PlatformNotSupportedException,
OutOfMemoryException,
NullReferenceException,
ExternalException,
CultureNotFoundException,
FormatException,
ArrayTypeMismatchException,
SerializationException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionOutOfMemoryExceptionNullReferenceExceptionExternalExceptionCultureNotFoundExceptionFormatExceptionArrayTypeMismatchExceptionSerializationExceptionpublic void ApplyEffect(Effect effect, Rectangle area) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, NotSupportedException, InvalidOperationException, IndexOutOfRangeException, FormatException
public static Bitmap cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into Bitmap, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedBitmap instancejava.lang.Throwable - in case of error during cast operationpublic Bitmap Clone(RectangleF rect, PixelFormat format) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, FormatException
public Bitmap Clone(Rectangle rect, PixelFormat format) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, FormatException
public void ConvertFormat(PixelFormat format) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, ArrayTypeMismatchException
public void ConvertFormat(PixelFormat format, DitherType ditherType, PaletteType paletteType, ColorPalette palette, Single alphaThresholdPercent) 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 ImageString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in interface ISerializablegetJCOClassName in class ImageString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in interface ISerializablegetJCOInstance in class ImageObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in interface ISerializablegetJCOObjectName in class ImageString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in interface ISerializablegetJCOType in class ImageJCType representing the CLR Type of the instantiated Classpublic Color GetPixel(int x, int y) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, NotSupportedException, IndexOutOfRangeException, FormatException, ArgumentOutOfRangeException
public BitmapData LockBits(Rectangle rect, ImageLockMode flags, PixelFormat format) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException
public BitmapData LockBits(Rectangle rect, ImageLockMode flags, PixelFormat format, BitmapData bitmapData) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException
public void MakeTransparent()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ObjectDisposedException,
InvalidOperationException,
NotSupportedException,
IndexOutOfRangeException,
FormatException,
ArgumentOutOfRangeException
public void MakeTransparent(Color transparentColor) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, NotSupportedException, IndexOutOfRangeException, FormatException
public void setJCOInstance(JCObject instance)
setJCOInstance in class Imagepublic void SetPixel(int x,
int y,
Color color)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
NotSupportedException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException,
FormatException
public void SetResolution(Single xDpi, Single yDpi) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, NotSupportedException, InvalidOperationException, IndexOutOfRangeException, FormatException
public void UnlockBits(BitmapData bitmapdata) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException