![]() |
IOLink C# 1.11.0
|
ImageView extension to describe how an image is tiled. More...
Public Member Functions | |
| TilingInfoExtension (global::System.IntPtr cPtr, bool cMemoryOwn) | |
| virtual VectorXu64 | MaxTileSize () |
| Return the maximum tile size used for the image. | |
| virtual uint | TileCount () |
| Get the number of tiles in the image. | |
| virtual RegionXu64 | TileRegion (uint tileIndex) |
| Return the region of the chosen tile. | |
| virtual ArrayXu64 | TilingGrid () |
| Return A N-dimensional array, with each element being a tile index. | |
| unsafe void | ReadTile (uint tileIndex, byte[] dst) |
| Read data from a tile into a memory buffer. | |
| unsafe void | WriteTile (uint tileIndex, byte[] src) |
| Write data from a memory buffer into a tile. | |
Public Member Functions inherited from IOLink.Extension | |
| Extension (global::System.IntPtr cPtr, bool cMemoryOwn) | |
| void | Dispose () |
Static Public Member Functions | |
| static global::System.Runtime.InteropServices.HandleRef | getCPtr (TilingInfoExtension obj) |
| static TilingInfoExtension | Cast (Extension extension) |
Static Public Member Functions inherited from IOLink.Extension | |
| static global::System.Runtime.InteropServices.HandleRef | getCPtr (Extension obj) |
Protected Member Functions | |
| override void | Dispose (bool disposing) |
ImageView extension to describe how an image is tiled.
The ImageView is tiled with tiles corresponding to the size returned with the method maxTileSize, so the tile can be smaller, when on the limits of the view, they can be cropped for example.
Tiles are indexed from 0 to tileCount() - 1, all indices values out of that range are invalid. It is done so that you can iterate over these indices, so you can process all tiles of the dataset.
|
inlinestatic |
Upcast a generic extension to this specific type.
| extension | The extension to cast. |
|
inlineprotectedvirtual |
Reimplemented from IOLink.Extension.
|
inline |
Read data from a tile into a memory buffer.
In order to get the size of the destination buffer, you must use the tileRegion method, and multiply the element count of that region by the byte count of the image's data type.
| tileIndex | The index of the tile to read. |
| dst | The buffer where read data will be put. |
| Error | When tileIndex is out of range. |
|
inlinevirtual |
Return the region of the chosen tile.
| tileIndex | the index of the tile. |
| Error | If tileIndex is out of range. |
|
inlinevirtual |
Return A N-dimensional array, with each element being a tile index.
Some tiles can be invalid, because of holes for example. Their index will be INVALID_TILE_INDEX.
|
inline |
Write data from a memory buffer into a tile.
In order to get the size of the source buffer, you must use the tileRegion method, and multiply the element count of that region by the byte count of the image's data type.
| tileIndex | The index of the tile to write. |
| src | The buffer that contains data to write. |
| Error | When tileIndex is out of range. |