public static PalettedImage4bppSectioned ConstructFromXml(XmlNode node)
        {
            ImageInfo info = GetImageInfo(node);

            PatcherLib.Iso.KnownPosition palPos = GetPalettePositionFromImageNode(info.Sector, node);
            PatcherLib.Iso.KnownPosition pos    = GetPositionFromImageNode(info.Sector, node);

            int     numBytesBetweenRows     = 0;
            XmlNode numBytesBetweenRowsNode = node.SelectSingleNode("NumBytesBetweenRows");

            if (numBytesBetweenRowsNode != null)
            {
                numBytesBetweenRows = int.Parse(numBytesBetweenRowsNode.InnerText);
            }

            PalettedImage4bppSectioned image = new PalettedImage4bppSectioned(info.Name, info.Width, info.Height, pos, palPos);

            image.PaletteCount        = info.PaletteCount;
            image.DefaultPalette      = info.DefaultPalette;
            image.CurrentPalette      = info.CurrentPalette;
            image.OriginalFilename    = info.OriginalFilename;
            image.Filesize            = info.Filesize;
            image.Sector              = info.Sector;
            image.NumBytesBetweenRows = numBytesBetweenRows;

            return(image);
        }
        public static PalettedImage4bppSectioned ConstructFromXml(XmlNode node)
        {
            ImageInfo info = GetImageInfo(node);
            PatcherLib.Iso.KnownPosition palPos = GetPalettePositionFromImageNode(info.Sector, node);
            PatcherLib.Iso.KnownPosition pos = GetPositionFromImageNode(info.Sector, node);

            int numBytesBetweenRows = 0;
            XmlNode numBytesBetweenRowsNode = node.SelectSingleNode("NumBytesBetweenRows");
            if (numBytesBetweenRowsNode != null)
            {
                numBytesBetweenRows = int.Parse(numBytesBetweenRowsNode.InnerText);
            }

            PalettedImage4bppSectioned image = new PalettedImage4bppSectioned(info.Name, info.Width, info.Height, pos, palPos);
            image.PaletteCount = info.PaletteCount;
            image.DefaultPalette = info.DefaultPalette;
            image.CurrentPalette = info.CurrentPalette;
            image.OriginalFilename = info.OriginalFilename;
            image.Filesize = info.Filesize;
            image.Sector = info.Sector;
            image.NumBytesBetweenRows = numBytesBetweenRows;

            return image;
        }