Compartilhar via


Viewport Element (Deep Zoom File Format Schema)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Defines the location of the image in the viewport.

Collection Element (Deep Zoom File Format Schema)
  Items Element (Deep Zoom File Format Schema)
    I Element (Deep Zoom File Format Schema)

<Viewport 
  Width = "width of area to display" 
  X = "left coordinate of area to display" 
  Y = "top coordinate of area to display"
/>

Attributes and Elements

The following sections describe attributes, child elements, and parent elements.

Attributes

Attribute

Description

Width

Required double attribute.

The width of the area of the image displayed. This value is in logical coordinates. For example, a value of 1 displays the entire image (no zoom), a value of 0.5 is 200% zoomed in, and a value of 0 is completely zoomed (user cannot see the image at all). A value above 1 is zooming out from the image. For example, a value of 2 means that the image will take up half the size of the MultiScaleSubImage control area (50% zoom).

X

Required double attribute.

The left coordinate of the rectangular area of the image to be displayed. The coordinates of the point are in local coordinates (0-1) relative to the displayed image width.

Y

Required double attribute.

The top coordinate of the rectangular area of the image to be displayed. The coordinates of the point are in local coordinates (0-1) relative to the displayed image width.

Child Elements

None.

Parent Elements

Element

Description

I

Defines an image in the collection.

Remarks

Viewport is an optional child element of the I element.

minOccurs="0"

maxOccurs= "1"

Element Information

Namespace

Empty

Schema name

Deep Zoom Schema

Validation file

deepzoom.xsd

Can be empty

Yes