PageRenderTime 37ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/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
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Xml.Serialization;
  6. namespace Microsoft.Research.DynamicDataDisplay.Maps.DeepZoom
  7. {
  8. /// <summary>
  9. /// If you are defining a single image (versus a collection of images) for Deep Zoom, this element is the root element of the schema.
  10. /// </summary>
  11. public class Image
  12. {
  13. /// <summary>
  14. /// If this element is not present, the image is not sparse - all pixels are available at all levels.
  15. /// Otherwise, you can use the DisplayRect elements to describe all the available pixels.
  16. /// </summary>
  17. public List<DisplayRect> DisplayRects { get; set; }
  18. /// <summary>
  19. /// Defines the size of the image in pixels.
  20. /// </summary>
  21. [XmlElement]
  22. public uint32size Size { get; set; }
  23. /// <summary>
  24. /// The tile size of the level in pixels. Note that these have to be square.
  25. /// Unlike Collection.TileSize, the TileSize for an Image does not have to be a power of 2 value.
  26. /// </summary>
  27. [XmlAttribute]
  28. public ulong TileSize { get; set; }
  29. /// <summary>
  30. /// The tile overlap on all four sides of the tiles. A value of 0 is allowed for Deep Zoom images.
  31. /// </summary>
  32. [XmlAttribute]
  33. public ulong Overlap { get; set; }
  34. /// <summary>
  35. /// This defines the file format of the tiles as an extension.
  36. /// </summary>
  37. [XmlAttribute]
  38. public string Format { get; set; }
  39. }
  40. }