Beispiel #1
0
        public bool Rotate(ImageTool.ImageRotation rotateValue)
        {
            bool bRet = false;

            if ((null != m_imageTool) && (m_physicalTargetPath.Length > 0))
            {
                //if (false == File.Exists(m_physicalTargetPath))   // These are taken out for performance.
                //    EnsureDestPathExists(m_physicalTargetPath);   // When the image is initialized, this should be done.
                bRet = m_imageTool.Rotate(rotateValue, m_physicalSourcePath, m_physicalTargetPath);

                m_lastCommand = ImageCommand.Rotate.ToString();  // mc_commandRotate;
                //m_lastParams = rotateValue.ToString(m_numberFormatInfo);  // Compiler states that this is obsolete, to not use format info.
                m_lastParams = rotateValue.ToString();
            }

            return bRet;
        }