예제 #1
0
 public static RawNybbleImage ConstructFromXml( System.Xml.XmlNode node )
 {
     ImageInfo info = GetImageInfo( node );
     var pos = GetPositionFromImageNode( info.Sector, node );
     RawNybbleImage image = new RawNybbleImage( info.Name, info.Width, info.Height, pos );
     image.OriginalFilename = info.OriginalFilename;
     image.Filesize = info.Filesize;
     image.Sector = info.Sector;
     return image;
 }
예제 #2
0
        public static RawNybbleImage ConstructFromXml(System.Xml.XmlNode node)
        {
            ImageInfo      info  = GetImageInfo(node);
            var            pos   = GetPositionFromImageNode(info.Sector, node);
            RawNybbleImage image = new RawNybbleImage(info.Name, info.Width, info.Height, pos);

            image.OriginalFilename = info.OriginalFilename;
            image.Filesize         = info.Filesize;
            image.Sector           = info.Sector;
            return(image);
        }