Show / Hide Table of Contents

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 Source

PNGChunk(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 Source

CRC

The CRC computed over the chunk type and chunk data

Declaration
public uint CRC { get; }
Property Value
Type Description
System.UInt32
| Improve this Doc View Source

Data

Chunk data.

Declaration
public byte[] Data { get; set; }
Property Value
Type Description
System.Byte[]
| Improve this Doc View Source

IsCritical

Determines if this is a critical chunk.

Declaration
public bool IsCritical { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

IsPublic

Determines if this is a public chunk.

Declaration
public bool IsPublic { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

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
| Improve this Doc View Source

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 Source

ToString()

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()
Back to top Copyright © 2019 Özgür Özçıtak