Image.GetThumbnailImageAbort| Constructor and Description |
|---|
Bitmap(Image original)
Initializes a new instance of the
Bitmap class from the specified existing image. |
Bitmap(Image original,
int width,
int height)
Initializes a new instance of the
Bitmap class from the specified existing image,
scaled to the specified size. |
Bitmap(Image original,
Size newSize)
Initializes a new instance of the
Bitmap class from the specified existing image, scaled to the specified size. |
Bitmap(InputStream stream)
Initializes a new instance of the
Bitmap class from the specified data stream. |
Bitmap(InputStream stream,
boolean useIcm)
Initializes a new instance of the
Bitmap class from the specified data stream. |
Bitmap(int width,
int height)
Initializes a new instance of the
Bitmap class with the specified size. |
Bitmap(int width,
int height,
int format)
Initializes a new instance of the
Bitmap class with the specified size and format. |
Bitmap(int width,
int height,
int stride,
int format,
int[] data)
Initializes a new instance of the
Bitmap class with the specified size and pixel data. |
Bitmap(String filename)
Initializes a new instance of the
Bitmap class from the specified file. |
Bitmap(String filename,
boolean useIcm)
Initializes a new instance of the
Bitmap class from the specified file. |
| Modifier and Type | Method and Description |
|---|---|
Bitmap |
deepClone(RectangleF rect,
int format)
Creates a copy of the section of this
Bitmap defined with a specified PixelFormat enumeration. |
Bitmap |
deepClone(Rectangle rect,
int format)
Creates a copy of the section of this
Bitmap defined by Rectangle structure
and with a specified PixelFormat(Image.getPixelFormat()) enumeration. |
UUID[] |
getFrameDimensionsList()
Gets an array of GUIDs that represent the dimensions of frames within this
Image. |
int |
getHeight()
Gets the height, in pixels, of this Bitmap.
|
ColorPalette |
getPalette()
Gets or sets the color palette used for this
Image. |
Color |
getPixel(int x,
int y)
Gets the color of the specified pixel in this
Bitmap. |
int |
getPixelFormat()
Gets the pixel format for this
Image. |
int[] |
getPropertyIdList()
Gets IDs of the property items stored in this
Image. |
PropertyItem |
getPropertyItem(int propid)
Gets the specified property item from this
Image. |
PropertyItem[] |
getPropertyItems()
Gets all the property items (pieces of metadata) stored in this
Image. |
ImageFormat |
getRawFormat()
Gets the file format of this
Image. |
int |
getWidth()
Gets the width, in pixels, of this Bitmap.
|
BitmapData |
lockBits(Rectangle rect,
int flags,
int format)
Locks a
Bitmap into system memory. |
void |
makeTransparent()
Makes the specified color transparent for this
Bitmap. |
void |
makeTransparent(Color transparentColor)
Makes the specified color transparent for this
Bitmap. |
void |
readArgb32Pixels(int[] pixels)
Reads bitmap pixels in ARGB32 format into given array.
|
void |
removePropertyItem(int propid)
Removes the specified property item from this
Image. |
void |
rotateFlip(int rotateFlipType)
This method rotates, flips, or rotates and flips the
Image. |
void |
setPalette(ColorPalette value)
Gets or sets the color palette used for this
Image. |
void |
setPixel(int x,
int y,
Color color)
Sets the color of the specified pixel in this
Bitmap. |
void |
setPropertyItem(PropertyItem propitem)
Stores a property item (piece of metadata) in this
Image. |
void |
setResolution(float xDpi,
float yDpi)
Sets the resolution for this
Bitmap. |
void |
unlockBits(BitmapData bitmapData)
Unlocks this
Bitmap from system memory. |
void |
writeArgb32Pixels(int[] pixels)
Writes pixels to the bitmap.
|
deepClone, dispose, fromFile, fromHbitmap, fromStream, fromStream, getBounds, getFlags, getFrameCount, getHorizontalResolution, getPhysicalDimension, getPixelFormatSize, getSize, getTag, getThumbnailImage, getVerticalResolution, isAlphaPixelFormat, save, save, save, save, save, saveAdd, saveAdd, selectActiveFrame, setTagpublic Bitmap(int width,
int height)
Initializes a new instance of the Bitmap class with the specified size.
width - The width, in pixels, of the new Bitmap.height - The height, in pixels, of the new Bitmap.public Bitmap(String filename)
Initializes a new instance of the Bitmap class from the specified file.
filename - The name of the bitmap file.public Bitmap(String filename, boolean useIcm)
Initializes a new instance of the Bitmap class from the specified file.
filename - The name of the bitmap file.useIcm - true to use color correction for this Bitmap; otherwise, false.public Bitmap(InputStream stream)
Initializes a new instance of the Bitmap class from the specified data stream.
stream - The data stream used to load the image.public Bitmap(InputStream stream, boolean useIcm)
Initializes a new instance of the Bitmap class from the specified data stream.
stream - The data stream used to load the image.useIcm - true to use color correction for this Bitmap; otherwise, false.public Bitmap(int width,
int height,
int format)
Initializes a new instance of the Bitmap class with the specified size and format.
width - The width, in pixels, of the new Bitmap.height - The height, in pixels, of the new Bitmap.format - The PixelFormat(Image.getPixelFormat()) enumeration for the new Bitmap.public Bitmap(int width,
int height,
int stride,
int format,
int[] data)
Initializes a new instance of the Bitmap class with the specified size and pixel data.
width - The width, in pixels, of the new Bitmap.height - The height, in pixels, of the new Bitmap.stride - The byte offset between the beginning of one scan line and the next, must be a multiple of four.format - The PixelFormat(Image.getPixelFormat()) enumeration for the new Bitmap.data - The pixel data.public Bitmap(Image original)
Initializes a new instance of the Bitmap class from the specified existing image.
public Bitmap(Image original, Size newSize)
Initializes a new instance of the Bitmap class from the specified existing image, scaled to the specified size.
original - The Image from which to create the new BitmapnewSize - The Size(Image.getSize()) structure that represent the size of the new Bitmap.public int getWidth()
Gets the width, in pixels, of this Bitmap.
public int getHeight()
Gets the height, in pixels, of this Bitmap.
public ImageFormat getRawFormat()
Gets the file format of this Image.
getRawFormat in class ImageImageFormat that represents the file format of this Image.public int getPixelFormat()
Gets the pixel format for this Image.
getPixelFormat in class ImagePixelFormat(Image.getPixelFormat()) that represents the pixel format for this Image.public ColorPalette getPalette()
Gets or sets the color palette used for this Image.
getPalette in class ImageColorPalette that represents the color palette used for this Image.public void setPalette(ColorPalette value)
Gets or sets the color palette used for this Image.
setPalette in class Imagepublic UUID[] getFrameDimensionsList()
Gets an array of GUIDs that represent the dimensions of frames within this Image.
getFrameDimensionsList in class ImageImage
from most significant to least significant.public int[] getPropertyIdList()
Gets IDs of the property items stored in this Image.
getPropertyIdList in class Imagepublic PropertyItem[] getPropertyItems()
Gets all the property items (pieces of metadata) stored in this Image.
getPropertyItems in class ImagePropertyItem objects, one for each property item stored in the image.public final Bitmap deepClone(Rectangle rect, int format)
Creates a copy of the section of this Bitmap defined by Rectangle structure
and with a specified PixelFormat(Image.getPixelFormat()) enumeration.
rect - Defines the portion of this Bitmap to copy.
Coordinates are relative to this Bitmap.format - Specifies the PixelFormat(Image.getPixelFormat()) enumeration for the
destination Bitmap.Bitmap that this method creates.public final Bitmap deepClone(RectangleF rect, int format)
Creates a copy of the section of this Bitmap defined with a specified PixelFormat enumeration.
rect - Defines the portion of this Bitmap to copy.format - Specifies the PixelFormat enumeration for the destination Bitmap.Bitmap that this method creates.com.aspose.ms.System.OutOfMemoryException - rect is outside of the source bitmap bounds.com.aspose.ms.System.ArgumentException - The height or width of rect is 0.public final void setResolution(float xDpi,
float yDpi)
Sets the resolution for this Bitmap.
public final BitmapData lockBits(Rectangle rect, int flags, int format)
Locks a Bitmap into system memory.
rect - A Rectangle structure specifying the portion of the
Bitmap to lock.flags - An ImageLockMode enumeration specifying the access level
(read/write) for the Bitmap.format - A PixelFormat(Image.getPixelFormat()) enumeration specifying the data format of this
Bitmap.BitmapData containing information about this lock operation.public final void unlockBits(BitmapData bitmapData)
Unlocks this Bitmap from system memory.
bitmapData - A BitmapData specifying information about the lock operation.public final Color getPixel(int x, int y)
Gets the color of the specified pixel in this Bitmap.
x - The x-coordinate of the pixel to retrieve.y - The y-coordinate of the pixel to retrieve.Color structure that represents the color of the specified pixel.public final void setPixel(int x,
int y,
Color color)
Sets the color of the specified pixel in this Bitmap.
x - The x-coordinate of the pixel to set.y - The y-coordinate of the pixel to set.color - A Color structure that represents the color
to assign to the specified pixel.public final void readArgb32Pixels(int[] pixels)
Reads bitmap pixels in ARGB32 format into given array.
pixels - Array to place bitmap pixels. Must have enough capacity.public final void writeArgb32Pixels(int[] pixels)
Writes pixels to the bitmap.
pixels - Array with source pixels in ARGB32 format. Must have enough length.public final void makeTransparent()
Makes the specified color transparent for this Bitmap.
public final void makeTransparent(Color transparentColor)
Makes the specified color transparent for this Bitmap.
public void rotateFlip(int rotateFlipType)
This method rotates, flips, or rotates and flips the Image.
rotateFlip in class ImagerotateFlipType - A RotateFlipType member that specifies the type of rotation
and flip to apply to the image.public PropertyItem getPropertyItem(int propid)
Gets the specified property item from this Image.
getPropertyItem in class Imagepropid - The ID of the property item to get.PropertyItem this method gets.public void removePropertyItem(int propid)
Removes the specified property item from this Image.
removePropertyItem in class Imagepropid - The ID of the property item to remove.public void setPropertyItem(PropertyItem propitem)
Stores a property item (piece of metadata) in this Image.
setPropertyItem in class Imagepropitem - The PropertyItem to be stored.Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.