Example #1
0
 protected void UpdateResolution(ImageDimensionInt res)
 {
     m_resolution     = res;
     m_dimensionRatio = 0;
     if (m_resolution.Width > 0 && m_resolution.Height > 0)
     {
         m_dimensionRatio = m_resolution.CalculateRatio();
     }
 }
Example #2
0
 protected void ResetResolution()
 {
     m_resolution     = new ImageDimensionInt();
     m_dimensionRatio = 0;
 }