public PrintControllerFile(ImageFormat format, float scale, long quality, string output)
        {
            if (quality < 0)
            {
                throw new ArgumentOutOfRangeException("quality", quality, "Quality must be between 0 and 100");
            }
            if (quality > 100)
            {
                throw new ArgumentOutOfRangeException("quality", quality, "Quality must be between 0 and 100");
            }

            _Format  = format;
            _Scale   = scale;
            _Quality = quality;
            _Output  = output;

            _Codec = PrintControllerFormat.GetImageCodecInfo(_Format);

            string dir = Path.GetDirectoryName(_Output);

            if (dir.Length > 0)
            {
                if (!Directory.Exists(dir))
                {
                    Directory.CreateDirectory(dir);
                }
            }
        }
        public PrintControllerFile()
        {
            _Format             = ImageFormat.Bmp;
            _Scale              = 1f;
            _Quality            = 1L;
            _isPrintToImageFile = false;

            _Codec = PrintControllerFormat.GetImageCodecInfo(_Format);
            string dir = Path.GetDirectoryName(_Output);

            if (dir.Length > 0)
            {
                if (!Directory.Exists(dir))
                {
                    Directory.CreateDirectory(dir);
                }
            }
        }