internal void SetImageSize(int width, int height) { t_imageSize = new Size(width, height); t_WPFImageSize = new System.Windows.Size(width, height); CalculateFactoredSize(); }
private void CalculateFactoredSize() { t_factoredSize = new Size((int)(t_imageSize.Width * t_zoomFactor), (int)(t_imageSize.Height * t_zoomFactor)); SetOriginToZeroIfNeeded(); }