Ejemplo n.º 1
0
        public PreviewRenderer(Preview preview, Layout layout, Pixmap pixmap, 
            GC gc)
        {
            _pixmap = pixmap;
              _gc = gc;

              _pw = preview.WidthRequest;
              _ph = preview.HeightRequest;

              _zoom = layout.Boundaries(_pw, _ph, out _offx, out _offy);
        }
Ejemplo n.º 2
0
        public PreviewRenderer(Preview preview, Layout layout, Pixmap pixmap,
                               GC gc)
        {
            _pixmap = pixmap;
            _gc     = gc;

            _pw = preview.WidthRequest;
            _ph = preview.HeightRequest;

            _zoom = layout.Boundaries(_pw, _ph, out _offx, out _offy);
        }