Documents for PDF .NET Edition
GrapeCity.Documents.Imaging Assembly / GrapeCity.Documents.Imaging.jpeg.jj2000.j2k.image Namespace / DataBlk Class
Fields Methods

In This Topic
    DataBlk Class Members
    In This Topic

    The following tables list the members exposed by DataBlk.

    Public Fields
     NameDescription
    Public FieldThe height of the block, in pixels.  
    Public FieldThe offset in the array of the top-left coefficient  
    Public FieldThe progressive attribute (false by default)  
    Public FieldThe width of the scanlines used to store the data in the array  
    Public FieldThe identifier for the System.Byte data type, as signed 8 bits.  
    Public FieldThe identifier for the System.Single data type  
    Public FieldThe identifier for the System.Int32 data type, as signed 32 bits.  
    Public FieldThe identifier for the System.Int16 data type, as signed 16 bits.  
    Public FieldThe horizontal coordinate (in pixels) of the upper-left corner of the block of data. This is relative to the component of the image from where this block was filled or is to be filled.  
    Public FieldThe vertical coordinate of the upper-left corner of the block of data. This is relative to the component of the image from where this block was filled or is to be filled.  
    Public FieldThe width of the block, in pixels.  
    Top
    Public Methods
     NameDescription
    Public MethodReturns the array containing the data, or null if there is no data. The returned array is of the type returned by getDataType (e.g., for TYPE_INT, it is a int[]).

    Each implementing class should provide a type specific equivalent method (e.g., getDataInt() in GrapeCity.Documents.Imaging.jpeg.jj2000.j2k.image.DataBlkInt) which returns an array of the correct type explicitly and not through an System.Object.

     
    Public MethodReturns the data type of the DataBlk object, as defined in this class.  
    Public Methodstatic (Shared in Visual Basic)Returns the size in bits, given the data type. The data type must be one defined in this class. An System.ArgumentException is thrown if type is not defined in this class.  
    Public MethodSets the data array to the specified one. The type of the specified data array must match the one returned by getDataType (e.g., for TYPE_INT, it should be a int[]). If the wrong type of array is given a System.Exception will be thrown.

    The size of the array is not necessarily checked for consistency with w and h or any other fields.

    Each implementing class should provide a type specific equivalent method (e.g., setDataInt() in GrapeCity.Documents.Imaging.jpeg.jj2000.j2k.image.DataBlkInt) which takes an array of the correct type explicitly and not through an System.Object.

     
    Public MethodReturns a string of informations about the DataBlk  
    Top
    See Also

    Reference

    DataBlk Class
    GrapeCity.Documents.Imaging.jpeg.jj2000.j2k.image Namespace
    GrapeCity.Documents.Imaging.jpeg.jj2000.j2k.image.DataBlkInt
    DataBlkFloat Class