ComponentOne PdfViewer for WPF and Silverlight
C1.WPF.PdfViewer.4.6.2 Assembly / CSJ2K.j2k.image Namespace / Tiler Class
Properties Methods


In This Topic
    Tiler Class Members
    In This Topic

    The following tables list the members exposed by Tiler.

    Public Constructors
     NameDescription
    Public Constructor  
    Top
    Public Properties
     NameDescription
    Public PropertyReturns the overall height of the image in pixels. This is the image's height without accounting for any component subsampling or tiling.

    This default implementation returns the value of the source.

    (Inherited from CSJ2K.j2k.image.ImgDataAdapter)
    Public PropertyOverridden. Returns the horizontal coordinate of the image origin, the top-left corner, in the canvas system, on the reference grid.  
    Public PropertyOverridden. Returns the vertical coordinate of the image origin, the top-left corner, in the canvas system, on the reference grid.  
    Public PropertyReturns the overall width of the image in pixels. This is the image's width without accounting for any component subsampling or tiling.

    This default implementation returns the value of the source.

    (Inherited from CSJ2K.j2k.image.ImgDataAdapter)
    Public PropertyOverridden. Returns the nominal width of the tiles in the reference grid.  
    Public PropertyOverridden. Returns the nominal width of the tiles in the reference grid.  
    Public PropertyReturns the number of components in the image.

    This default implementation returns the value of the source.

    (Inherited from CSJ2K.j2k.image.ImgDataAdapter)
    Public PropertyOverridden. Returns the overall height of the current tile in pixels. This is the tile's width without accounting for any component subsampling.  
    Public PropertyOverridden. Returns the index of the current tile, relative to a standard scan-line order.  
    Public PropertyOverridden. Returns the horizontal tile partition offset in the reference grid  
    Public PropertyOverridden. Returns the vertical tile partition offset in the reference grid  
    Public PropertyOverridden. Returns the overall width of the current tile in pixels. This is the tile's width without accounting for any component subsampling.  
    Top
    Public Methods
     NameDescription
    Public MethodReturns, in the blk argument, a block of image data containing the specifed rectangular area, in the specified component. The data is returned, as a copy of the internal data, therefore the returned data can be modified "in place".

    The rectangular area to return is specified by the 'ulx', 'uly', 'w' and 'h' members of the 'blk' argument, relative to the current tile. These members are not modified by this method. The 'offset' of the returned data is 0, and the 'scanw' is the same as the block's width. See the 'DataBlk' class.

    This method, in general, is less efficient than the 'getInternCompData()' method since, in general, it copies the data. However if the array of returned data is to be modified by the caller then this method is preferable.

    If the data array in 'blk' is 'null', then a new one is created. If the data array is not 'null' then it is reused, and it must be large enough to contain the block's data. Otherwise an 'ArrayStoreException' or an 'IndexOutOfBoundsException' is thrown by the Java system.

    The returned data may have its 'progressive' attribute set. In this case the returned data is only an approximation of the "final" data.

     
    Public MethodReturns the height in pixels of the specified component in the overall image.

    This default implementation returns the value of the source.

    (Inherited from CSJ2K.j2k.image.ImgDataAdapter)
    Public MethodReturns the width in pixels of the specified component in the overall image.

    This default implementation returns the value of the source.

    (Inherited from CSJ2K.j2k.image.ImgDataAdapter)
    Public MethodReturns the component subsampling factor in the horizontal direction, for the specified component. This is, approximately, the ratio of dimensions between the reference grid and the component itself, see the 'ImgData' interface desription for details.

    This default implementation returns the value of the source.

    (Inherited from CSJ2K.j2k.image.ImgDataAdapter)
    Public MethodReturns the component subsampling factor in the vertical direction, for the specified component. This is, approximately, the ratio of dimensions between the reference grid and the component itself, see the 'ImgData' interface desription for details.

    This default implementation returns the value of the source.

    (Inherited from CSJ2K.j2k.image.ImgDataAdapter)
    Public MethodOverridden. Returns the horizontal coordinate of the upper-left corner of the specified component in the current tile.  
    Public MethodOverridden. Returns the vertical coordinate of the upper-left corner of the specified component in the current tile.  
    Public MethodReturns the position of the fixed point in the specified component. This is the position of the least significant integral (i.e. non-fractional) bit, which is equivalent to the number of fractional bits. For instance, for fixed-point values with 2 fractional bits, 2 is returned. For floating-point data this value does not apply and 0 should be returned. Position 0 is the position of the least significant bit in the data.  
    Public MethodReturns, in the blk argument, a block of image data containing the specifed rectangular area, in the specified component. The data is returned, as a reference to the internal data, if any, instead of as a copy, therefore the returned data should not be modified.

    The rectangular area to return is specified by the 'ulx', 'uly', 'w' and 'h' members of the 'blk' argument, relative to the current tile. These members are not modified by this method. The 'offset' and 'scanw' of the returned data can be arbitrary. See the 'DataBlk' class.

    This method, in general, is more efficient than the 'getCompData()' method since it may not copy the data. However if the array of returned data is to be modified by the caller then the other method is probably preferable.

    If the data array in blk is null, then a new one is created if necessary. The implementation of this interface may choose to return the same array or a new one, depending on what is more efficient. Therefore, the data array in blk prior to the method call should not be considered to contain the returned data, a new array may have been created. Instead, get the array from blk after the method has returned.

    The returned data may have its 'progressive' attribute set. In this case the returned data is only an approximation of the "final" data.

     
    Public Method (Inherited from CSJ2K.j2k.image.ImgDataAdapter)
    Public MethodOverloaded. Overridden. Returns the number of tiles in the horizontal and vertical directions.  
    Public MethodOverridden. Returns the horizontal and vertical indexes of the current tile.  
    Public MethodOverridden. Returns the height in pixels of the specified tile-component.  
    Public MethodOverridden. Returns the width in pixels of the specified tile-component.  
    Public MethodReturns the tiling origin, referred to as '(xt0siz,yt0siz)' in the codestream header (SIZ marker segment).  
    Public MethodOverridden. Advances to the next tile, in standard scan-line order (by rows then columns). An NoNextElementException is thrown if the current tile is the last one (i.e. there is no next tile).  
    Public MethodOverridden. Changes the current tile, given the new tile indexes. An IllegalArgumentException is thrown if the coordinates do not correspond to a valid tile.  
    Public MethodReturns a String object representing Tiler's informations  
    Top
    See Also