/Main/src/DynamicDataDisplay.Maps/DeepZoom/Image.cs
C# | 45 lines | 20 code | 5 blank | 20 comment | 0 complexity | 83794e3b949966a190876c2ad1bfd261 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 /// If you are defining a single image (versus a collection of images) for Deep Zoom, this element is the root element of the schema. 11 /// </summary> 12 public class Image 13 { 14 /// <summary> 15 /// If this element is not present, the image is not sparse - all pixels are available at all levels. 16 /// Otherwise, you can use the DisplayRect elements to describe all the available pixels. 17 /// </summary> 18 public List<DisplayRect> DisplayRects { get; set; } 19 20 /// <summary> 21 /// Defines the size of the image in pixels. 22 /// </summary> 23 [XmlElement] 24 public uint32size Size { get; set; } 25 26 /// <summary> 27 /// The tile size of the level in pixels. Note that these have to be square. 28 /// Unlike Collection.TileSize, the TileSize for an Image does not have to be a power of 2 value. 29 /// </summary> 30 [XmlAttribute] 31 public ulong TileSize { get; set; } 32 33 /// <summary> 34 /// The tile overlap on all four sides of the tiles. A value of 0 is allowed for Deep Zoom images. 35 /// </summary> 36 [XmlAttribute] 37 public ulong Overlap { get; set; } 38 39 /// <summary> 40 /// This defines the file format of the tiles as an extension. 41 /// </summary> 42 [XmlAttribute] 43 public string Format { get; set; } 44 } 45}