This class holds the properties for each sub-image within the MultiScaleImage.
Assembly: System.Windows (in System.Windows.dll)
Thetype exposes the following members.
|AspectRatio||Gets the aspect ratio of the image used as the source of the . The aspect ratio is the width of the image divided by its height.|
|Dispatcher||Gets the Dispatcher this object is associated with. (Inherited from DependencyObject.)|
|Id||Gets the Id of the image used as the source of the .|
|Opacity||Gets or sets the degree of the opacity.|
|OriginalPixelHeight||Gets the original height of the image to be displayed.|
|OriginalPixelWidth||Gets the original width of the image to be displayed.|
|ViewportOrigin||Gets or sets the top-left corner of the area of the image to be displayed.|
|ViewportWidth||Gets or sets the width of the area of the image displayed.|
|ZIndex||Gets or sets a value that represents the z-order rendering behavior of the . Z-order determines the relative rendering order of objects (which object is on top of which other objects).|
|CheckAccess||Determines whether the calling thread has access to this object. (Inherited from DependencyObject.)|
|ClearValue||Clears the local value of a dependency property. (Inherited from DependencyObject.)|
|Equals(Object)||Determines whether the specified Object is equal to the current Object. (Inherited from Object.)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)|
|GetAnimationBaseValue||Returns any base value established for a Silverlight dependency property, which would apply in cases where an animation is not active. (Inherited from DependencyObject.)|
|GetHashCode||Serves as a hash function for a particular type. (Inherited from Object.)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|GetValue||Returns the current effective value of a dependency property from a DependencyObject. (Inherited from DependencyObject.)|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|ReadLocalValue||Returns the local value of a dependency property, if a local value is set. (Inherited from DependencyObject.)|
|SetValue||Sets the local value of a dependency property on a DependencyObject. (Inherited from DependencyObject.)|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
|AspectRatioProperty||Identifies the AspectRatio dependency property.|
|IdProperty||Identifies the Id dependency property.|
|OpacityProperty||Identifies the Opacity dependency property.|
|OriginalPixelHeightProperty||Identifies the OriginalPixelHeight dependency property.|
|OriginalPixelWidthProperty||Identifies the OriginalPixelWidth dependency property.|
|ViewportOriginProperty||Identifies the ViewportOrigin dependency property.|
|ViewportWidthProperty||Identifies the ViewportWidth dependency property.|
|ZIndexProperty||Identifies the ZIndex dependency property.|
If you want to work with a set of individual images, for example, programmatically move individual images around the screen or filter your images, you will want to use a collection of images rather than a single high-resolution image. There are two basic things you need to do to do this:
You need to export your images as a collection rather than a single image. You can do this in Deep Zoom Composer. Just make sure to check the "Create Collection" checkbox when you export your composition. Images within the collection you export are called "sub images".
XAML usage for this class is technically possible but is not shown, because a XAML usage does not serve a purpose in any existing Silverlight content model. The subimages are the result of processing of an image set by a tool, and are not created in pure markup. Typically, you interact with this class by getting the value of MultiScaleImage.SubImages. It is possible to apply a XAML defined style to MultiScaleImage properties.
The following example shows how to get a list of sub images in a .
Private Function RandomizedListOfImages() As List(Of MultiScaleSubImage) Dim imageList As New List(Of MultiScaleSubImage)() Dim ranNum As New Random() ' Store List of sub images. For Each subImage As MultiScaleSubImage In MyMSI.SubImages imageList.Add(subImage) Next Return imageList End Function
The following example allows you to rearrange images in a grid pattern by manipulating all the objects in the collection. Click on the "Randomize Images" button to see the effect.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.