Ejemplo n.º 1
0
        internal XObjectWrapper(ContentScanner scanner) : base((XObject)scanner.Current)
        {
            SKMatrix ctm = scanner.State.Ctm;

            this.box = SKRect.Create(
                ctm.TransX,
                scanner.ContextSize.Height - ctm.TransY,
                ctm.ScaleX,
                Math.Abs(ctm.ScaleY)
                );
            this.name    = BaseDataObject.Name;
            this.xObject = BaseDataObject.GetResource(scanner.ContentContext);
        }
Ejemplo n.º 2
0
            internal XObjectWrapper(
                ContentScanner scanner
                ) : base((XObject)scanner.Current)
            {
                Matrix ctm = scanner.State.Ctm;

                this.box = new RectangleF(
                    ctm.Elements[4],
                    scanner.ContextSize.Height - ctm.Elements[5],
                    ctm.Elements[0],
                    Math.Abs(ctm.Elements[3])
                    );
                this.name    = BaseDataObject.Name;
                this.xObject = BaseDataObject.GetResource(scanner.ContentContext);
            }