Exemplo n.º 1
0
 public void StoreValues(Data data, string path)
 {
     data.SetValue(@"" + path + @"Compression", Compression.ToString());
     data.SetValue(@"" + path + @"Dpi", Dpi.ToString(CultureInfo.InvariantCulture));
     data.SetValue(@"" + path + @"Enabled", Enabled.ToString());
     data.SetValue(@"" + path + @"JpegCompressionFactor", JpegCompressionFactor.ToString(CultureInfo.InvariantCulture));
     data.SetValue(@"" + path + @"Resampling", Resampling.ToString());
 }
Exemplo n.º 2
0
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();

            sb.AppendLine("Compression=" + Compression.ToString());
            sb.AppendLine("Dpi=" + Dpi.ToString());
            sb.AppendLine("Enabled=" + Enabled.ToString());
            sb.AppendLine("JpegCompressionFactor=" + JpegCompressionFactor.ToString());
            sb.AppendLine("Resampling=" + Resampling.ToString());

            return(sb.ToString());
        }