A data sub-block to form part of a Graphics Interchange Format data
stream.
See http://www.w3.org/Graphics/GIF/spec-gif89a.txt section 15.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public class DataBlock : GifComponent
Public Class DataBlock _ Inherits GifComponent
public ref class DataBlock : public GifComponent
Members
All Members | Constructors | Methods | Properties | ||
Icon | Member | Description |
---|---|---|
DataBlock(Int32, array<Byte>[]()[]) |
Constructor.
| |
ActualBlockSize |
Gets the actual length of the data block.
| |
ComponentStatus |
Gets the status of this component, consisting of its error state
and any associated error message.
(Inherited from GifComponent.) | |
ConsolidatedState |
Gets the combined error states of this component and all its child
components.
(Inherited from GifComponent.) | |
Data |
Gets the byte array containing the data in this data sub-block.
This does not include the first byte which holds the block size.
| |
DeclaredBlockSize |
Gets the block size held in the first byte of this data block.
This should be the same as the actual length of the data block but
may not be if the data block was instantiated from a corrupt stream
- check the ErrorStatus property.
| |
Equals(Object) | (Inherited from Object.) | |
ErrorMessage |
Gets any error message associated with the component's error state.
(Inherited from GifComponent.) | |
ErrorState |
Gets the member of the Gif.Components.ErrorState enumeration held
within the ComponentStatus property.
(Inherited from GifComponent.) | |
Finalize()()() | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
FromStream(Stream) |
Reads the next variable length data block from the input stream.
| |
GetHashCode()()() | Serves as a hash function for a particular type. GetHashCode()()() is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) | |
GetType()()() | Gets the Type of the current instance. (Inherited from Object.) | |
Item[([(Int32])]) |
Gets a specific byte within the data block
| |
MemberwiseClone()()() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
SetStatus(ErrorState, String) |
Sets the ComponentStatus property of thie GifComponent.
(Inherited from GifComponent.) | |
TestState(ErrorState) |
Tests whether the error state of this component or any of its member
components contains the supplied member of the ErrorState
enumeration.
(Inherited from GifComponent.) | |
ToString()()() |
Gets a string representation of the error status of this component
and its subcomponents.
(Inherited from GifComponent.) | |
WriteToStream(Stream) |
Writes this component to the supplied output stream.
(Overrides GifComponent.WriteToStream(Stream).) |
Remarks
Data Sub-blocks are units containing data. They do not have a label,
these blocks are processed in the context of control blocks, wherever
data blocks are specified in the format. The first byte of the Data
sub-block indicates the number of data bytes to follow. A data sub-block
may contain from 0 to 255 data bytes. The size of the block does not
account for the size byte itself, therefore, the empty sub-block is one
whose size field contains 0x00.
Inheritance Hierarchy
Object | ||
GifComponent | ||
DataBlock |