예제 #1
0
        internal void SetImageSize(int width, int height)
        {
            t_imageSize    = new Size(width, height);
            t_WPFImageSize = new System.Windows.Size(width, height);

            CalculateFactoredSize();
        }
예제 #2
0
        private void CalculateFactoredSize()
        {
            t_factoredSize = new Size((int)(t_imageSize.Width * t_zoomFactor), (int)(t_imageSize.Height * t_zoomFactor));


            SetOriginToZeroIfNeeded();
        }