Ejemplo n.º 1
0
 private static Image GetImage(XmlReader reader)
 {
     return(new Image
     {
         Index = AttributeHelpers.GetInt(reader.GetAttribute("Index")),
         RescanStatus = AttributeHelpers.GetRescanStatus(reader.GetAttribute("RescanStatus")),
         ScantimeFinalBlankAreaDecision =
             AttributeHelpers.GetScantimeFinalBlankAreaDecision(
                 reader.GetAttribute("ScantimeFinalBlankAreaDecision")),
         Side = AttributeHelpers.GetSide(reader.GetAttribute("Side")),
         Type = AttributeHelpers.GetImageType(reader.GetAttribute("Type")),
         Depth = AttributeHelpers.GetImageDepth(reader.GetAttribute("Depth")),
         Format = AttributeHelpers.GetImageFormat(reader.GetAttribute("Format")),
         Filename = reader.GetAttribute("Filename"),
         Filesize = AttributeHelpers.GetLong(reader.GetAttribute("Filesize")),
         Length = AttributeHelpers.GetInt(reader.GetAttribute("Length")),
         Height = AttributeHelpers.GetInt(reader.GetAttribute("Height")),
         OffsetLength = AttributeHelpers.GetInt(reader.GetAttribute("OffsetLength")),
         OffsetHeight = AttributeHelpers.GetInt(reader.GetAttribute("OffsetHeight")),
         ResolutionLength = AttributeHelpers.GetImageResolution(reader.GetAttribute("ResolutionLength")),
         ResolutionHeight = AttributeHelpers.GetImageResolution(reader.GetAttribute("ResolutionHeight"))
     });
 }