public GridGuidesInfo(ImageResource imgRes) : base(imgRes) { BinaryPSDReader reader = imgRes.GetDataReader(); uint Version = reader.ReadUInt32(); //Future implementation of document-specific grids. Initially, set the grid cycle to every quarter inch. At 72 dpi, that would be 18 * 32 = 576 (0x240) this.GridCycle = reader.ReadUInt64(); uint guideCount = reader.ReadUInt32(); for (int i = 0; i < guideCount; i++) { GridGuide guide = new GridGuide(reader); this.Guides.Add(guide); } reader.Close(); }