ComponentOne PdfViewer for WPF and Silverlight
C1.WPF.PdfViewer.4.6.2 Assembly / CSJ2K.j2k.image Namespace / DataBlk Class
Fields Properties 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 byte data type, as signed 8 bits.  
    Public FieldThe identifier for the float data type  
    Public FieldThe identifier for the int data type, as signed 32 bits.  
    Public FieldThe identifier for the short 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 Properties
     NameDescription
    Public PropertyReturns 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 DataBlkInt) which returns an array of the correct type explicetely and not through an Object.

    Sets 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 ClassCastException 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 DataBlkInt) which takes an array of the correct type explicetely and not through an Object.

     
    Public PropertyReturns the data type of the DataBlk object, as defined in this class.  
    Top
    Public Methods
     NameDescription
    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 IllegalArgumentException is thrown if type is not defined in this class.  
    Public MethodReturns a string of informations about the DataBlk  
    Top
    See Also