Class TiffDataTypeController
Represents general class for working with tiff data types.
public class TiffDataTypeController
- Inheritance
-
TiffDataTypeController
- Derived
- Inherited Members
Constructors
TiffDataTypeController()
public TiffDataTypeController()
Methods
Exists(ushort)
Determines if specific tag exists.
protected bool Exists(ushort tagId)
Parameters
tagId
ushortThe tag identifier.
Returns
- bool
True if tag exists.
GetSectionTags(int)
Gets the section tags.
protected TiffDataType[] GetSectionTags(int section)
Parameters
section
intThe section identifier. - 1 in case all tags are needed.
Returns
- TiffDataType[]
The tiff tags
GetTiffByteValue(ushort)
Gets the TiffByteType value.
protected byte[] GetTiffByteValue(ushort key)
Parameters
key
ushortThe tag key.
Returns
- byte[]
The TiffByteType byte[] value.
GetTiffLongTypeValue(ushort, uint)
Gets the TiffLongType tag value at 0 index.
protected uint GetTiffLongTypeValue(ushort key, uint defaultValue)
Parameters
Returns
- uint
The the TiffLongType tag value at 0 index.
GetTiffRationalArray(ushort)
Gets the TiffRationalType value.
protected TiffRational[] GetTiffRationalArray(ushort key)
Parameters
key
ushortThe tag key.
Returns
- TiffRational[]
The TiffSRationalType type value.
GetTiffRationalValue(ushort)
Gets the TiffRationalType value at index 0.
protected TiffRational GetTiffRationalValue(ushort key)
Parameters
key
ushortThe tag key.
Returns
- TiffRational
The TiffRationalType type value.
GetTiffSRationalValue(ushort)
Gets the TiffSRationalType value at index 0.
protected TiffSRational GetTiffSRationalValue(ushort key)
Parameters
key
ushortThe tag key.
Returns
- TiffSRational
The TiffSRationalType type value.
GetTiffShortArray(ushort)
Gets the TiffShortType value.
protected ushort[] GetTiffShortArray(ushort key)
Parameters
key
ushortThe tag key.
Returns
- ushort[]
The TiffShortType value.
GetTiffShortValue(ushort, ushort)
Gets the TiffShortType value at 0 index.
protected ushort GetTiffShortValue(ushort key, ushort defaultValue)
Parameters
Returns
- ushort
The TiffShortType type value.
GetTiffStringValue(ushort)
Gets the TiffASCIIType value as string.
protected string GetTiffStringValue(ushort key)
Parameters
key
ushortThe tag key.
Returns
- string
The TiffASCIIType type value.
GetTiffType(ushort)
Gets the TiffDataType by Id.
protected TiffDataType GetTiffType(ushort key)
Parameters
key
ushortThe tag key.
Returns
- TiffDataType
The TiffDataType or null.
GetTiffUndefinedValue(ushort)
Gets the TiffUndefinedType value as byte[].
protected byte[] GetTiffUndefinedValue(ushort key)
Parameters
key
ushortThe tag key.
Returns
- byte[]
The TiffUndefinedType type value.
RemoveTagByID(ushort)
Removes the tag by identifier.
protected void RemoveTagByID(ushort tagId)
Parameters
tagId
ushortThe tag identifier.
SetSectionTags(int, TiffDataType[])
Sets the section tags.
protected void SetSectionTags(int section, TiffDataType[] tags)
Parameters
section
intThe section to set tags for. -1 in case you wish to set tags according to section specification.
tags
TiffDataType[]The tags to set.
SetTiffByteValue(ushort, byte[], int)
Sets the TiffByteType value.
protected void SetTiffByteValue(ushort key, byte[] value, int section)
Parameters
SetTiffLongTypeValue(ushort, uint, int)
Sets the TiffLongType type value as uint[1] with value
.
protected void SetTiffLongTypeValue(ushort key, uint value, int section)
Parameters
SetTiffRational(ushort, TiffRational, int)
Sets the TiffRationalType type value as uint[1] with rational
.
protected void SetTiffRational(ushort key, TiffRational rational, int section)
Parameters
key
ushortThe tag key.
rational
TiffRationalThe value.
section
intThe section to set for.
SetTiffRationalArray(ushort, TiffRational[], int)
Sets the TiffSRationalType value type.
protected void SetTiffRationalArray(ushort key, TiffRational[] rational, int section)
Parameters
key
ushortThe tag key.
rational
TiffRational[]The rational.
section
intThe section.
SetTiffSRationalValue(ushort, TiffSRational, int)
Sets the TiffSRationalType value type as TiffSRational[1] with rational
value.
protected void SetTiffSRationalValue(ushort key, TiffSRational rational, int section)
Parameters
key
ushortThe tag key.
rational
TiffSRationalThe rational.
section
intThe section.
SetTiffShortArray(ushort, ushort[], int)
Sets the TiffShortType value.
protected void SetTiffShortArray(ushort key, ushort[] value, int section)
Parameters
SetTiffShortValue(ushort, ushort, int)
Sets the TiffShortType type value as ushort[1] with value
filled.
protected void SetTiffShortValue(ushort key, ushort value, int section)
Parameters
SetTiffStringValue(ushort, string, int)
Sets the TiffASCIIType type value with text
filled.
protected void SetTiffStringValue(ushort key, string text, int section)
Parameters
SetTiffType(TiffDataType, int)
Sets the TiffDataType.
protected void SetTiffType(TiffDataType tiffDataType, int section)
Parameters
tiffDataType
TiffDataTypeThe TiffDataType to set.
section
intThe section.
SetTiffUndefinedValue(ushort, byte[], int)
Sets the TiffUndefinedType type value with data
filled.
protected void SetTiffUndefinedValue(ushort key, byte[] data, int section)