コード例 #1
0
 public virtual void BeginReport(int dpiX, int dpiY)
 {
     if (dpiX == 0)
     {
         dpiX = 96;
     }
     if (dpiY == 0)
     {
         dpiY = 96;
     }
     this.m_commonGraphics = new GraphicsBase((float)dpiX, (float)dpiY);
 }
コード例 #2
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (this.m_commonGraphics != null)
         {
             this.m_commonGraphics.Dispose();
             this.m_commonGraphics = null;
         }
         if (this.m_gdiFonts != null)
         {
             foreach (string key in this.m_gdiFonts.Keys)
             {
                 this.m_gdiFonts[key].Dispose();
             }
             this.m_gdiFonts = null;
         }
         if (this.m_disposeRenderer && this.m_renderer != null)
         {
             this.m_renderer.Dispose();
             this.m_renderer = null;
         }
     }
 }