Interface IBitmap

Interface IBitmap

名称: Aspose.Svg.Drawing 會議: Aspose.SVG.dll (25.5.0)

代表一个Bitmap图像。

[ComVisible(true)]
public interface IBitmap : IDisposable

Implements

IDisposable

Properties

ColorSpace

获取图像的颜色空间 Aspose.Svg.Drawing.IBitmap.ColorSpace。

    ColorSpace { get; }

财产价值

   

ColorTable

获取 bitmap 图像的颜色表。

Color[] ColorTable { get; }

财产价值

Color ( )

Format

获取 bitmap 图像 Aspose.Svg.Drawing.WebImageFormat 的格式。

WebImageFormat Format { get; }

财产价值

WebImageFormat

Height

获取 bitmap 图像的高度。

int Height { get; }

财产价值

int

HorizontalResolution

获得 bitmap 图像的水平分辨率。

float HorizontalResolution { get; }

财产价值

float

VerticalResolution

获得 Bitmap 图像的垂直分辨率。

float VerticalResolution { get; }

财产价值

float

Width

得到比特币图像的宽度。

int Width { get; }

财产价值

int

Methods

ApplyOpacity(航海)

将指定的不透明度应用到 bitmap 图像中。

void ApplyOpacity(float opacity)

Parameters

opacity float

不透明度的值适用。

DrawBitmap(Rectangle, 直角, IBitmap)

将所指定的源直角拖到当前 bitmap 的指定目的地直径上。

void DrawBitmap(Rectangle srcRect, Rectangle dstRect, IBitmap bitmap)

Parameters

srcRect Rectangle

源直角在源 bitmap 中。

dstRect Rectangle

目的地直角在当前的Bitmap中。

bitmap IBitmap

來源 bitmap Aspose.Svg.Drawing.IBitmap 從哪裡提取。

FillRectangle(直角,IBRUSH)

用指定的刷子填补指定直角。

void FillRectangle(Rectangle rectangle, IBrush brush)

Parameters

rectangle Rectangle

直角要填满。

brush IBrush

刷子 Aspose.Svg.Drawing.IBrush 用于填充。

GetPixelsMap(博尔,博尔)

将像素地图的比特图像呈现,可选转换为单色,并允许透明度的颜色转型。

    GetPixelsMap(bool convertToMonochrome, bool allowTransparencyColorConversion)

Parameters

convertToMonochrome bool

指定是否将像素地图转换为单晶。

allowTransparencyColorConversion bool

指定是否允许透明度在像素地图中的颜色转换。

Returns

   

像素地图代表比特图像 Aspose.Svg.Drawing.IPixelsMap。

RotateFlip(WebRotateFlipType)

按所指定的旋转和滑动类型转动和粘贴比特图像。

void RotateFlip(WebRotateFlipType rotateFlipType)

Parameters

rotateFlipType WebRotateFlipType

旋转和滑动类型 Aspose.Svg.Drawing.WebRotateFlipType 适用。

Save(流量, WebImageFormat, int)

将 bitmap 图像存储到指定的流量,并将其格式和质量。

void Save(Stream stream, WebImageFormat imageFormat, int quality)

Parameters

stream Stream

流的图像将被拯救。

imageFormat WebImageFormat

图像格式 Aspose.Svg.Drawing.WebImageFormat 用于保存。

quality int

保存图像的质量水平。

SetTransparent(Color)

在 bitmap 图像中将指定的颜色设置为透明。

void SetTransparent(Color color)

Parameters

color Color

将颜色设置为透明。

 中文