Class TiffDataType
Tên không gian: Aspose.Imaging.FileFormats.Tiff Tổng hợp: Aspose.Imaging.dll (25.4.0)
Loại dữ liệu TIFF
[JsonObject(MemberSerialization.OptIn)]
public abstract class TiffDataType : IComparable
Inheritance
Derived
TiffASCIIType , TiffCommonArrayType , TiffUndefinedType , TiffUnknownType
Implements
Thành viên thừa kế
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
TiffDataType(Thuyết Minh)
Bắt đầu một trường hợp mới của lớp Aspose.Imaging.FileFormats.Tiff. TiffDataType.
[JsonConstructor]
protected TiffDataType(ushort tagId)
Parameters
tagId
ushort
Đánh giá ID
Properties
Count
Nhận được số lượng các yếu tố.
public abstract ulong Count { get; }
Giá trị bất động sản
DataSize
Nhận kích thước giá trị thẻ.
public virtual ulong DataSize { get; }
Giá trị bất động sản
ElementSize
Nhận kích thước yếu tố trong byte.
public virtual byte ElementSize { get; }
Giá trị bất động sản
Id
Gets tag id như số.
[JsonProperty]
public ushort Id { get; }
Giá trị bất động sản
IsValid
Nó nhận được một giá trị chỉ ra liệu dữ liệu thẻ có hợp lệ hay không. thẻ hợp lệ chứa dữ liệu có thể được lưu trữ. thẻ không hợp lệ không thể được lưu trữ.
public bool IsValid { get; }
Giá trị bất động sản
TagId
Nhận thẻ ID.
public TiffTags TagId { get; }
Giá trị bất động sản
TagType
Nhận loại thẻ.
public abstract TiffDataTypes TagType { get; }
Giá trị bất động sản
Value
Nhận hoặc đặt giá trị loại dữ liệu này chứa.
public abstract object Value { get; set; }
Giá trị bất động sản
Methods
CompareTo(đối tượng)
So sánh trường hợp hiện tại với một đối tượng khác cùng loại và trả về một toàn thể cho thấy nếu trường hợp hiện tại trước, tiếp theo, hoặc xảy ra trong cùng một vị trí trong thứ tự giống như đối tượng khác.
public int CompareTo(object obj)
Parameters
obj
object
Một đối tượng để so sánh với trường hợp này.
Returns
A 32-bit signed integer that indicates the relative order of the objects being compared. giá trị trở lại có những ý nghĩa này:ValueMeaningLess than zeroĐiều này ít hơn obj’.ZeroĐiều này tương đương
obj’.Thêm hơn zeroĐiều này lớn hơn
obj'.
Exceptions
Loại TiffDataType
CopyInstanceData(TiffDataType)
Sao chép dữ liệu ví dụ vào loại cloned.
protected virtual void CopyInstanceData(TiffDataType clonedType)
Parameters
clonedType
TiffDataType
Các loại clone
CreateInstance()
tạo ra một trường hợp mới.
protected abstract TiffDataType CreateInstance()
Returns
Một trường hợp mới Aspose.Imaging.FileFormats.Tiff. TiffDataType.
DeepClone()
Thực hiện một clone sâu của trường hợp này.
public virtual TiffDataType DeepClone()
Returns
Một clone sâu của tình trạng hiện tại.
GetAdditionalDataSize(byte)
Nhận kích thước giá trị thẻ bổ sung trong byte (trong trường hợp thẻ không thể phù hợp với toàn bộ nilai thẻ).
public virtual ulong GetAdditionalDataSize(byte sizeOfTagValue)
Parameters
sizeOfTagValue
byte
Kích thước của giá trị thẻ: 4 hoặc 8 cho BigTiff.
Returns
Kích thước dữ liệu bổ sung trong byte.
GetAlignedDataSize(byte)
Nhận kích thước dữ liệu phù hợp với giới hạn 4 byte (int) hoặc 8 bytes (long).
public ulong GetAlignedDataSize(byte sizeOfTagValue)
Parameters
sizeOfTagValue
byte
Kích thước của tag giá trị.
Returns
Kích thước dữ liệu phù hợp trong byte.
ReadData(TiffStreamReader, dài, dài)
Đọc thêm dữ liệu.
protected abstract void ReadData(TiffStreamReader dataStream, long position, long count)
Parameters
dataStream
TiffStreamReader
Dữ liệu Stream
position
long
Vị trí để đọc từ
count
long
Số lượng các yếu tố.
ReadTag(TiffStreamReader, dài)
Đọc thẻ dữ liệu.
public static TiffDataType ReadTag(TiffStreamReader dataStream, long position)
Parameters
dataStream
TiffStreamReader
Dữ liệu Stream
position
long
Tag vị trí
Returns
Tag Đọc
Exceptions
dữ liệuStream
ToString()
Trở lại một System.String đại diện cho trường hợp này.
public override string ToString()
Returns
Một hệ thống.String đại diện cho trường hợp này.
WriteAdditionalData(TiffStreamWriter)
Viết dữ liệu thẻ bổ sung.
public abstract long WriteAdditionalData(TiffStreamWriter dataStream)
Parameters
dataStream
TiffStreamWriter
Dữ liệu Stream
Returns
Các bytes thực sự được viết.
WriteTag(TiffStreamWriter, dài)
Viết thẻ dữ liệu.
public void WriteTag(TiffStreamWriter dataStream, long additionalDataOffset)
Parameters
dataStream
TiffStreamWriter
Dữ liệu Stream
additionalDataOffset
long
Ưu đãi để viết thêm dữ liệu cho.
Exceptions
Không thể viết giá trị cho + this.TagType + Message : + exception.Message
WriteTagValueOrOffset(TiffStreamWriter, dài)
Nhập giá trị thẻ hoặc giảm giá bổ sung.
protected abstract void WriteTagValueOrOffset(TiffStreamWriter dataStream, long additionalDataOffset)
Parameters
dataStream
TiffStreamWriter
Dữ liệu Stream
additionalDataOffset
long
Các dữ liệu bổ sung được khôi phục.