Class PNGChunk
Represents the memory view of a PNG chunk.
Inheritance
System.Object
PNGChunk
Namespace: ExifLibrary
Assembly: ExifLibrary.dll
Syntax
public class PNGChunk
Constructors
| Improve this Doc View SourcePNGChunk(String, Byte[])
Constructs a PNGChunk represented by the type name and containing the given data.
Declaration
public PNGChunk(string type, byte[] data)
Parameters
Type | Name | Description |
---|---|---|
System.String | type | The type of chuck. |
System.Byte[] | data | Chunk data. |
Properties
| Improve this Doc View SourceCRC
The CRC computed over the chunk type and chunk data
Declaration
public uint CRC { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
Data
Chunk data.
Declaration
public byte[] Data { get; set; }
Property Value
Type | Description |
---|---|
System.Byte[] |
IsCritical
Determines if this is a critical chunk.
Declaration
public bool IsCritical { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsPublic
Determines if this is a public chunk.
Declaration
public bool IsPublic { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsSafeToCopy
Determines if the chunk may be safely copied regardless of the extent of modifications to the file.
Declaration
public bool IsSafeToCopy { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Type
The four character ASCII chunk name/type.
Declaration
public string Type { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceToString()
Returns a string representation of the current chunk.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents the current chunk. |
Overrides
System.Object.ToString()
|
Improve this Doc
View Source
UpdateCRC()
Updates the CRC value.
Declaration
public void UpdateCRC()