PageRenderTime 11ms CodeModel.GetById 8ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 1ms

/Main/src/DynamicDataDisplay.Maps/DeepZoom/Viewport.cs

#
C# | 38 lines | 17 code | 3 blank | 18 comment | 0 complexity | b7c9efb72912a38f3cfcc5eb6ea80084 MD5 | raw file
Possible License(s): CC-BY-SA-3.0
 1using System;
 2using System.Collections.Generic;
 3using System.Linq;
 4using System.Text;
 5using System.Xml.Serialization;
 6
 7namespace Microsoft.Research.DynamicDataDisplay.Maps.DeepZoom
 8{
 9    /// <summary>
10    /// Location of the image in the viewport.
11    /// </summary>
12    public class Viewport
13    {
14        /// <summary>
15        /// The width of the area of the image displayed. This value is in logical coordinates. 
16        /// For example a value of 1 displays the entire image (no zoom), 
17        /// a value of 0.5 is 200% zoomed in and a value of 0 is completely zoomed (user cannot see the image at all). 
18        /// A value above 1 is zooming out from the image. 
19        /// For example, a value of 2 means that the image will take up half the size of the MultiScaleSubImage control area (50% zoom).
20        /// </summary>
21        [XmlAttribute]
22        public double Width { get; set; }
23
24        /// <summary>
25        /// The left coordinate of the rectangular area of the image to be displayed. 
26        /// The coordinates of the point are in local coordinates (0-1) relative to the displayed image width.
27        /// </summary>
28        [XmlAttribute]
29        public double X { get; set; }
30
31        /// <summary>
32        /// The top coordinate of the rectangular area of the image to be displayed. 
33        /// The coordinates of the point are in local coordinates (0-1) relative to the displayed image width.
34        /// </summary>
35        [XmlAttribute]
36        public double Y { get; set; }
37    }
38}