Interface IBitmap
Namespace: Aspose.Svg.Drawing
Assembly: Aspose.SVG.dll (25.5.0)
Represents a bitmap image.
[ComVisible(true)]
public interface IBitmap : IDisposable
Implements
Properties
ColorSpace
Gets the color space Aspose.Svg.Drawing.IBitmap.ColorSpace of the bitmap image.
ColorSpace { get; }
Property Value
ColorTable
Gets the color table of the bitmap image.
Color[] ColorTable { get; }
Property Value
Color []
Format
Gets the format of the bitmap image Aspose.Svg.Drawing.WebImageFormat.
WebImageFormat Format { get; }
Property Value
Height
Gets the height of the bitmap image.
int Height { get; }
Property Value
HorizontalResolution
Gets the horizontal resolution of the bitmap image.
float HorizontalResolution { get; }
Property Value
VerticalResolution
Gets the vertical resolution of the bitmap image.
float VerticalResolution { get; }
Property Value
Width
Gets the width of the bitmap image.
int Width { get; }
Property Value
Methods
ApplyOpacity(float)
Applies the specified opacity to the bitmap image.
void ApplyOpacity(float opacity)
Parameters
opacity
float
The opacity value to apply.
DrawBitmap(Rectangle, Rectangle, IBitmap)
Draws the specified source rectangle of the given bitmap onto the specified destination rectangle of the current bitmap.
void DrawBitmap(Rectangle srcRect, Rectangle dstRect, IBitmap bitmap)
Parameters
srcRect
Rectangle
The source rectangle within the source bitmap.
dstRect
Rectangle
The destination rectangle within the current bitmap.
bitmap
IBitmap
The source bitmap Aspose.Svg.Drawing.IBitmap from which to draw.
FillRectangle(Rectangle, IBrush)
Fills the specified rectangle with the specified brush.
void FillRectangle(Rectangle rectangle, IBrush brush)
Parameters
rectangle
Rectangle
The rectangle to fill.
brush
IBrush
The brush Aspose.Svg.Drawing.IBrush to use for filling.
GetPixelsMap(bool, bool)
Retrieves the pixel map representation of the bitmap image, optionally converting to monochrome and allowing transparency color conversion.
GetPixelsMap(bool convertToMonochrome, bool allowTransparencyColorConversion)
Parameters
convertToMonochrome
bool
Specifies whether to convert the pixel map to monochrome.
allowTransparencyColorConversion
bool
Specifies whether to allow transparency color conversion in the pixel map.
Returns
The pixel map representation of the bitmap image Aspose.Svg.Drawing.IPixelsMap.
RotateFlip(WebRotateFlipType)
Rotates and flips the bitmap image according to the specified rotation and flip type.
void RotateFlip(WebRotateFlipType rotateFlipType)
Parameters
rotateFlipType
WebRotateFlipType
The rotation and flip type Aspose.Svg.Drawing.WebRotateFlipType to apply.
Save(Stream, WebImageFormat, int)
Saves the bitmap image to the specified stream with the specified image format and quality.
void Save(Stream stream, WebImageFormat imageFormat, int quality)
Parameters
stream
Stream
The stream to which the image will be saved.
imageFormat
WebImageFormat
The image format Aspose.Svg.Drawing.WebImageFormat to use for saving.
quality
int
The quality level of the saved image.
SetTransparent(Color)
Sets the specified color as transparent in the bitmap image.
void SetTransparent(Color color)
Parameters
color
Color
The color to set as transparent.