public GdiPlusCanvasViewport(RootGraphic rootgfx,
     Size viewportSize, int cachedPageNum)
     : base(rootgfx, viewportSize, cachedPageNum)
 {
     quadPages = new QuadPages( cachedPageNum, viewportSize.Width, viewportSize.Height * 2);
     this.CalculateCanvasPages();
 }
 //static int dbugCount = 0;
 protected override void OnClosing()
 {
     if (quadPages != null)
     {
         quadPages.Dispose();
         quadPages = null;
     }
     base.OnClosing();
 }