public virtual JB2Shape GetShape(int shapeNum) { JB2Shape retval; if (shapeNum >= InheritedShapes) { retval = (JB2Shape)_Shapes[shapeNum - InheritedShapes]; } else if (InheritedDictionary != null) { retval = InheritedDictionary.GetShape(shapeNum); } else { throw new DjvuFormatException("Bad image number"); } return(retval); }
public virtual JB2Shape GetShape(int shapeno) { JB2Shape retval; if (shapeno >= InheritedShapes) { retval = (JB2Shape)_shapes[shapeno - InheritedShapes]; } else if (InheritedDictionary != null) { retval = InheritedDictionary.GetShape(shapeno); } else { throw new SystemException("Image bad number"); } return(retval); }