Table of Contents

Class SKImagePyramidSubImage

Namespace
SkiaSharp.Extended
Assembly
SkiaSharp.Extended.dll

Represents a single sub-image within a DZC collection, with its position in the mosaic. Mirrors Silverlight's MultiScaleSubImage with inverted viewport coordinates.

public class SKImagePyramidSubImage
Inheritance
SKImagePyramidSubImage
Inherited Members

Constructors

SKImagePyramidSubImage(int, int, double, string?)

Represents a single sub-image within a DZC collection, with its position in the mosaic. Mirrors Silverlight's MultiScaleSubImage with inverted viewport coordinates.

Properties

AspectRatio

Aspect ratio (width / height) of this sub-image.

Id

Item ID from the DZC.

MortonIndex

Morton (Z-order) index of this item in the DZC mosaic grid.

Opacity

Opacity of this sub-image (0–1). Set to 0 to hide without removing.

Source

Optional URI to the individual DZI file for deep zoom into this item.

ViewportOriginX

X position of the sub-image in the mosaic, using the Silverlight inverted coordinate system. A sub-image at mosaic grid position (col, row) has ViewportOriginX = -col * subImageLogicalWidth.

ViewportOriginY

Y position of the sub-image in the mosaic, using the Silverlight inverted coordinate system.

ViewportWidth

Width of the sub-image in the mosaic, using the Silverlight inverted coordinate system. Larger values = smaller on screen. This is the inverse of the visible fraction.

ZIndex

Z-index for rendering order. Higher = on top.

Methods

GetMosaicBounds()

Converts the Silverlight inverted viewport coordinates to the actual mosaic position. Returns the top-left corner and size in the parent's logical space.

LocalToParent(double, double)

Converts a point in this sub-image's local logical space to the parent's logical space.

ParentToLocal(double, double)

Converts a point in the parent's logical space to this sub-image's local logical space.