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 ของภาพ bitmap

    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

รับความกว้างของภาพ bitmap

int Width { get; }

คุณสมบัติมูลค่า

int

Methods

ApplyOpacity(เฟอร์รี่)

ใช้ความผิดปกติที่ระบุกับภาพ bitmap

void ApplyOpacity(float opacity)

Parameters

opacity float

หมายเลขค่าที่ต้องใช้

DrawBitmap(Rectangle, ใบมีด, IBitmap)

ดึงเส้นผ่าศูนย์กลางแหล่งที่กําหนดของบิตการ์ดที่ระบุไปยังเส้นขอบจุดหมายปลายทางของไทม์ bitปัจจุบัน

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

Parameters

srcRect Rectangle

ตรงของแหล่งกําเนิดภายใน Bitmap

dstRect Rectangle

จุดหมายปลายทางตรงภายใน bitmap ในปัจจุบัน

bitmap IBitmap

บิตการ์ดแหล่งที่มา Aspose.Svg.Drawing.IBitmap จากที่ที่จะดึง

FillRectangle(รูตูด, IBrush)

ปลั๊กทิศทางที่ระบุด้วยแปรงที่กําหนด

void FillRectangle(Rectangle rectangle, IBrush brush)

Parameters

rectangle Rectangle

ตุ๊กตาเพื่อเติม

brush IBrush

แบริ่ง Aspose.Svg.Drawing.IBrush สําหรับการเติม

GetPixelsMap(บอล, บอล)

กลับการแสดงภาพแผนที่พิกเซลของภาพ bitmap โดยเลือกแปลงเป็น monochrome และอนุญาตให้การแปลงสีความโปร่งใส

    GetPixelsMap(bool convertToMonochrome, bool allowTransparencyColorConversion)

Parameters

convertToMonochrome bool

รายละเอียดว่าจะแปลงแผนที่พิกเซลเป็น monochrome หรือไม่

allowTransparencyColorConversion bool

รายละเอียดว่าจะอนุญาตให้การแปลงสีความโปร่งใสในแผนที่พิกเซล

Returns

   

ตัวอักษรแผนที่พิกเซลของภาพบิตการ์ด Aspose.Svg.Drawing.IPixelsMap

RotateFlip(WebRotateFlipType)

รุนและ flips ภาพ bitmap ตามหมุนที่ระบุและประเภท flip

void RotateFlip(WebRotateFlipType rotateFlipType)

Parameters

rotateFlipType WebRotateFlipType

ประเภทหมุนและ flip 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

สีที่จะตั้งค่าเป็นโปร่งใส

 แบบไทย