Class GifGraphicsControlBlock

Class GifGraphicsControlBlock

Tên không gian: Aspose.Imaging.FileFormats.Gif.Blocks Tổng hợp: Aspose.Imaging.dll (25.4.0)

Gif graphics kiểm soát block.

[JsonObject(MemberSerialization.OptIn)]
public class GifGraphicsControlBlock : GifBlock, IGifBlock

Inheritance

object GifBlock GifGraphicsControlBlock

Implements

IGifBlock

Thành viên thừa kế

GifBlock.ExtensionIntroducer , GifBlock.Save(Stream) , GifBlock.IsChanged , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

GifGraphicsControlBlock()

Bắt đầu một trường hợp mới của lớp Aspose.Imaging.FileFormats.Gif.Blocks.

public GifGraphicsControlBlock()

GifGraphicsControlBlock(Byte, ushort, byte)

Bắt đầu một trường hợp mới của lớp Aspose.Imaging.FileFormats.Gif.Blocks.

public GifGraphicsControlBlock(byte flags, ushort delayTime, byte transparentColorIndex)

Parameters

flags byte

Những lá cờ

delayTime ushort

Thời gian chậm trễ được thể hiện trong 1/100 giây.

transparentColorIndex byte

Chỉ số màu sắc minh bạch

GifGraphicsControlBlock(Ushort, Bool, byte, boolMethod)

Bắt đầu một trường hợp mới của lớp Aspose.Imaging.FileFormats.Gif.Blocks.

public GifGraphicsControlBlock(ushort delayTime, bool hasTransparentColor, byte transparentColorIndex, bool requiresUserInput, DisposalMethod disposalMethod)

Parameters

delayTime ushort

Thời gian chậm trễ được thể hiện trong 1/100 giây.

hasTransparentColor bool

Nếu thiết lập để ’truyền’ transparentColorIndex’ là hợp lệ.

transparentColorIndex byte

Chỉ số màu sắc minh bạch

requiresUserInput bool

Nếu thiết lập để ’truyền’ người dùng input được mong đợi.

disposalMethod DisposalMethod

Phương pháp phân phối.

Fields

BlockHeaderSize

Tùy chọn kích thước đầu khối.

public const int BlockHeaderSize = 8

Giá trị Field

int

ExtensionLabel

Dấu hiệu mở rộng.

public const byte ExtensionLabel = 249

Giá trị Field

byte

SubBlockSize

Có kích thước sub-block.

public const byte SubBlockSize = 4

Giá trị Field

byte

Properties

DelayTime

Nhận hoặc đặt thời gian trì hoãn khung được thể hiện trong 1/100 giây.

public ushort DelayTime { get; set; }

Giá trị bất động sản

ushort

DisposalMethod

Nhận hoặc thiết lập phương pháp xử lý.

public DisposalMethod DisposalMethod { get; set; }

Giá trị bất động sản

DisposalMethod

Flags

Nhập hoặc đặt lá cờ.

public byte Flags { get; set; }

Giá trị bất động sản

byte

HasTransparentColor

Nhận hoặc đặt một giá trị cho thấy liệu khối điều khiển đồ họa có màu sắc minh bạch hay không.

public bool HasTransparentColor { get; set; }

Giá trị bất động sản

bool

TransparentColorIndex

Nhận hoặc đặt chỉ số màu sắc minh bạch.

public byte TransparentColorIndex { get; set; }

Giá trị bất động sản

byte

UserInputExpected

Nhận hoặc đặt một giá trị cho thấy liệu nhập người dùng được mong đợi hay không.

public bool UserInputExpected { get; set; }

Giá trị bất động sản

bool

Methods

CreateFlags(Bool, bool và cách phát hành)

tạo ra lá cờ.

public static byte CreateFlags(bool hasTransparentColor, bool requiresUserInput, DisposalMethod disposalMethod)

Parameters

hasTransparentColor bool

Nếu bạn thiết lập để ’truyền’ Aspose.Imaging.FileFormats.Gif.Blocks.Thuyết minhGraphicsControlBlock có chỉ số màu minh bạch hợp lệ.

requiresUserInput bool

Nếu thiết lập để ’truyền’ người dùng input được mong đợi.

disposalMethod DisposalMethod

Phương pháp phân phối.

Returns

byte

Những lá cờ được tạo ra

Save(Stream)

Tiết kiệm khối cho dòng cụ thể.

public override void Save(Stream stream)

Parameters

stream Stream

Stream để lưu dữ liệu đến.

 Tiếng Việt