[]
If the Comment Extension is present in the source GIF file this method decodes the comment using the specified Encoding and returns it as a string.
public string GetComment(Encoding textEncoding, int commentIndex = 0)
Public Function GetComment(textEncoding As Encoding, Optional commentIndex As Integer = 0) As String
Type | Name | Description |
---|---|---|
Encoding | textEncoding | Character encoding, such as Encoding.ASCII. |
int | commentIndex | Index of the Comment Extension, from 0 to CommentCount - 1. |
Type | Description |
---|---|
string | Comment as a string or null if the source GIF file contains no Comment Extension with given index. |