Ejemplo n.º 1
0
 /* ----------------------------------------------------------------- */
 ///
 /// DownSamplingToIndex
 ///
 /// <summary>
 /// DownSamplings からコンボボックスのインデックスに変換する.
 /// NOTE: 現状は全て同じ値なのでキャストを行うだけ.今後,この
 /// 2 つの値が異なるケースが現れた場合は,この関数で調整する.
 /// </summary>
 ///
 /* ----------------------------------------------------------------- */
 public static int DownSamplingToIndex(Parameter.DownSamplings id)
 {
     foreach (Parameter.DownSamplings x in Enum.GetValues(typeof(Parameter.DownSamplings))) {
         if (x == id) return (int)id;
     }
     return (int)Parameter.DownSamplings.None;
 }
Ejemplo n.º 2
0
 /* ----------------------------------------------------------------- */
 ///
 /// ExistedFileToIndex
 ///
 /// <summary>
 /// ExistedFiles からコンボボックスのインデックスに変換する.
 /// NOTE: 現状は全て同じ値なのでキャストを行うだけ.今後,この
 /// 2 つの値が異なるケースが現れた場合は,この関数で調整する.
 /// </summary>
 ///
 /* ----------------------------------------------------------------- */
 public static int ExistedFileToIndex(Parameter.ExistedFiles id)
 {
     foreach (Parameter.ExistedFiles x in Enum.GetValues(typeof(Parameter.ExistedFiles))) {
         if (x == id) return (int)id;
     }
     return (int)Parameter.ExistedFiles.Overwrite;
 }
Ejemplo n.º 3
0
 /* ----------------------------------------------------------------- */
 /// ExistedFileString
 /* ----------------------------------------------------------------- */
 public static string ExistedFileString(Parameter.ExistedFiles id)
 {
     switch (id) {
     case Parameter.ExistedFiles.Overwrite: return "上書き";
     case Parameter.ExistedFiles.MergeHead: return "先頭に結合";
     case Parameter.ExistedFiles.MergeTail: return "末尾に結合";
     case Parameter.ExistedFiles.Rename: return "リネーム";
     default: break;
     }
     return "Unknown";
 }
Ejemplo n.º 4
0
 /* ----------------------------------------------------------------- */
 /// DownSamplingString
 /* ----------------------------------------------------------------- */
 public static string DownSamplingString(Parameter.DownSamplings id)
 {
     switch (id) {
     case Parameter.DownSamplings.None:      return "なし";
     case Parameter.DownSamplings.Average:   return "平均化";
     case Parameter.DownSamplings.Bicubic:   return "バイキュービック";
     case Parameter.DownSamplings.Subsample: return "サブサンプル";
     default: break;
     }
     return "Unknown";
 }
Ejemplo n.º 5
0
 /* ----------------------------------------------------------------- */
 ///
 /// FileTypeToIndex
 ///
 /// <summary>
 /// FileTypes からコンボボックスのインデックスに変換する.
 /// NOTE: 現状は全て同じ値なのでキャストを行うだけ.今後,この
 /// 2 つの値が異なるケースが現れた場合は,この関数で調整する.
 /// </summary>
 ///
 /* ----------------------------------------------------------------- */
 public static int FileTypeToIndex(Parameter.FileTypes id)
 {
     foreach (Parameter.FileTypes x in Enum.GetValues(typeof(Parameter.FileTypes))) {
         if (x == id) return (int)id;
     }
     return (int)Parameter.FileTypes.PDF;
 }
Ejemplo n.º 6
0
 /* ----------------------------------------------------------------- */
 ///
 /// ResolutionToIndex
 ///
 /// <summary>
 /// Resolutions からコンボボックスのインデックスに変換する.
 /// NOTE: 現状は全て同じ値なのでキャストを行うだけ.今後,この
 /// 2 つの値が異なるケースが現れた場合は,この関数で調整する.
 /// </summary>
 ///
 /* ----------------------------------------------------------------- */
 public static int ResolutionToIndex(Parameter.Resolutions id)
 {
     foreach (Parameter.Resolutions x in Enum.GetValues(typeof(Parameter.Resolutions))) {
         if (x == id) return (int)id;
     }
     return (int)Parameter.Resolutions.Resolution300;
 }
Ejemplo n.º 7
0
 /* ----------------------------------------------------------------- */
 ///
 /// PostProcessToIndex
 ///
 /// <summary>
 /// PostProcesses からコンボボックスのインデックスに変換する.
 /// NOTE: 現状は全て同じ値なのでキャストを行うだけ.今後,この
 /// 2 つの値が異なるケースが現れた場合は,この関数で調整する.
 /// </summary>
 ///
 /* ----------------------------------------------------------------- */
 public static int PostProcessToIndex(Parameter.PostProcesses id)
 {
     foreach (Parameter.PostProcesses x in Enum.GetValues(typeof(Parameter.PostProcesses))) {
         if (x == id) return (int)id;
     }
     return (int)Parameter.PostProcesses.Open;
 }
Ejemplo n.º 8
0
 /* ----------------------------------------------------------------- */
 ///
 /// PDFVersionToIndex
 ///
 /// <summary>
 /// PDFVersions からコンボボックスのインデックスに変換する.
 /// NOTE: 現状は全て同じ値なのでキャストを行うだけ.今後,この
 /// 2 つの値が異なるケースが現れた場合は,この関数で調整する.
 /// </summary>
 ///
 /* ----------------------------------------------------------------- */
 public static int PDFVersionToIndex(Parameter.PDFVersions id)
 {
     foreach (Parameter.PDFVersions x in Enum.GetValues(typeof(Parameter.PDFVersions))) {
         if (x == id) return (int)id;
     }
     return (int)Parameter.PDFVersions.Ver1_7;
 }
Ejemplo n.º 9
0
 /* ----------------------------------------------------------------- */
 /// ResolutionString
 /* ----------------------------------------------------------------- */
 public static string ResolutionString(Parameter.Resolutions id)
 {
     return Parameter.ResolutionValue(id).ToString();
 }
Ejemplo n.º 10
0
 /* ----------------------------------------------------------------- */
 /// PostProcessString
 /* ----------------------------------------------------------------- */
 public static string PostProcessString(Parameter.PostProcesses id)
 {
     switch (id) {
     case Parameter.PostProcesses.Open: return "開く";
     case Parameter.PostProcesses.None: return "何もしない";
     case Parameter.PostProcesses.UserProgram: return "ユーザープログラム";
     default: break;
     }
     return "Unknown";
 }
Ejemplo n.º 11
0
 /* ----------------------------------------------------------------- */
 /// PDFVersionString
 /* ----------------------------------------------------------------- */
 public static string PDFVersionString(Parameter.PDFVersions id)
 {
     if (id == Parameter.PDFVersions.VerPDFA) return ""; //"PDF/A";
     else if (id == Parameter.PDFVersions.VerPDFX) return ""; //"PDF/X";
     return Parameter.PDFVersionValue(id).ToString();
 }
Ejemplo n.º 12
0
 /* ----------------------------------------------------------------- */
 /// FileTypeString
 /* ----------------------------------------------------------------- */
 public static string FileTypeString(Parameter.FileTypes id)
 {
     return Parameter.FileTypeValue(id);
 }