/** * <summary>Instantiates a child-level content scanner.</summary> * <param name="parentLevel">Parent scan level.</param> */ private ContentScanner(ContentScanner parentLevel) { this.parentLevel = parentLevel; this.contents = parentLevel.contents; this.objects = ((CompositeObject)parentLevel.Current).Objects; canvasSize = contextSize = parentLevel.contextSize; MoveStart(); }
public ContentScanner(xObjects::FormXObject formXObject, SKCanvas canvas, SKSize size) { objects = contents = formXObject.Contents; canvasSize = contextSize = size; renderContext = canvas; MoveStart(); }
/** * <summary>Instantiates a top-level content scanner.</summary> * <param name="contents">Content objects collection to scan.</param> */ public ContentScanner(ContentWrapper contents) { parentLevel = null; objects = this.contents = contents; canvasSize = contextSize = contents.ContentContext.Box.Size; MoveStart(); }
/** * <summary>Instantiates a child-level content scanner for <see cref="PdfClown.Documents.Contents.XObjects.FormXObject">external form</see>.</summary> * <param name="formXObject">External form.</param> * <param name="parentLevel">Parent scan level.</param> */ public ContentScanner(xObjects::FormXObject formXObject, ContentScanner parentLevel) { this.parentLevel = parentLevel; objects = contents = formXObject.Contents; canvasSize = contextSize = parentLevel.contextSize; renderContext = parentLevel.RenderContext; MoveStart(); }