Class GifCommentBlock
Namespace: Aspose.Imaging.FileFormats.Gif.Blocks
Assembly: Aspose.Imaging.dll (25.8.0)
Gif comment block.
[JsonObject(MemberSerialization.OptIn)]
public class GifCommentBlock : GifBlock, IGifBlockInheritance
object ← GifBlock ← GifCommentBlock
Implements
Inherited Members
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
GifCommentBlock()
Initializes a new instance of the Aspose.Imaging.FileFormats.Gif.Blocks.GifCommentBlock class.
public GifCommentBlock()GifCommentBlock(string)
Initializes a new instance of the Aspose.Imaging.FileFormats.Gif.Blocks.GifCommentBlock class.
public GifCommentBlock(string comment)Parameters
comment string
The comment.
Fields
BlockHeaderSize
Defines the block header size.
public const int BlockHeaderSize = 2Field Value
ExtensionLabel
Gif comment block extension label.
public const byte ExtensionLabel = 254Field Value
Properties
Comment
Gets or sets the comment. Note that comment must use ASCII encoding and will be stored accordingly.
public string Comment { get; set; }Property Value
Methods
Save(Stream)
Saves the block to the specified stream.
public override void Save(Stream stream)Parameters
stream Stream
The stream to save data to.