|
@@ -0,0 +1,222 @@
|
|
|
|
|
+namespace QuickPDF2JPG
|
|
|
|
|
+{
|
|
|
|
|
+ partial class frmMain
|
|
|
|
|
+ {
|
|
|
|
|
+ /// <summary>
|
|
|
|
|
+ /// Required designer variable.
|
|
|
|
|
+ /// </summary>
|
|
|
|
|
+ private System.ComponentModel.IContainer components = null;
|
|
|
|
|
+
|
|
|
|
|
+ /// <summary>
|
|
|
|
|
+ /// Clean up any resources being used.
|
|
|
|
|
+ /// </summary>
|
|
|
|
|
+ /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
|
|
|
+ protected override void Dispose(bool disposing)
|
|
|
|
|
+ {
|
|
|
|
|
+ if (disposing && (components != null))
|
|
|
|
|
+ {
|
|
|
|
|
+ components.Dispose();
|
|
|
|
|
+ }
|
|
|
|
|
+ base.Dispose(disposing);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ #region Windows Form Designer generated code
|
|
|
|
|
+
|
|
|
|
|
+ /// <summary>
|
|
|
|
|
+ /// Required method for Designer support - do not modify
|
|
|
|
|
+ /// the contents of this method with the code editor.
|
|
|
|
|
+ /// </summary>
|
|
|
|
|
+ private void InitializeComponent() {
|
|
|
|
|
+ panel1 = new Panel();
|
|
|
|
|
+ btnStart = new Button();
|
|
|
|
|
+ edtBPC = new NumericUpDown();
|
|
|
|
|
+ edtDPIY = new NumericUpDown();
|
|
|
|
|
+ edtDPIX = new NumericUpDown();
|
|
|
|
|
+ label3 = new Label();
|
|
|
|
|
+ label2 = new Label();
|
|
|
|
|
+ label1 = new Label();
|
|
|
|
|
+ panel2 = new Panel();
|
|
|
|
|
+ listFiles = new DataGridView();
|
|
|
|
|
+ colFilePath = new DataGridViewTextBoxColumn();
|
|
|
|
|
+ colFileName = new DataGridViewTextBoxColumn();
|
|
|
|
|
+ colFileProgress = new DataGridViewTextBoxColumn();
|
|
|
|
|
+ btnSelectFiles = new Button();
|
|
|
|
|
+ panel1.SuspendLayout();
|
|
|
|
|
+ ((System.ComponentModel.ISupportInitialize)edtBPC).BeginInit();
|
|
|
|
|
+ ((System.ComponentModel.ISupportInitialize)edtDPIY).BeginInit();
|
|
|
|
|
+ ((System.ComponentModel.ISupportInitialize)edtDPIX).BeginInit();
|
|
|
|
|
+ panel2.SuspendLayout();
|
|
|
|
|
+ ((System.ComponentModel.ISupportInitialize)listFiles).BeginInit();
|
|
|
|
|
+ SuspendLayout();
|
|
|
|
|
+ //
|
|
|
|
|
+ // panel1
|
|
|
|
|
+ //
|
|
|
|
|
+ panel1.Controls.Add(btnStart);
|
|
|
|
|
+ panel1.Controls.Add(edtBPC);
|
|
|
|
|
+ panel1.Controls.Add(edtDPIY);
|
|
|
|
|
+ panel1.Controls.Add(edtDPIX);
|
|
|
|
|
+ panel1.Controls.Add(label3);
|
|
|
|
|
+ panel1.Controls.Add(label2);
|
|
|
|
|
+ panel1.Controls.Add(label1);
|
|
|
|
|
+ panel1.Dock = DockStyle.Top;
|
|
|
|
|
+ panel1.Location = new Point(0, 0);
|
|
|
|
|
+ panel1.Name = "panel1";
|
|
|
|
|
+ panel1.Size = new Size(767, 44);
|
|
|
|
|
+ panel1.TabIndex = 0;
|
|
|
|
|
+ //
|
|
|
|
|
+ // btnStart
|
|
|
|
|
+ //
|
|
|
|
|
+ btnStart.Location = new Point(664, 9);
|
|
|
|
|
+ btnStart.Name = "btnStart";
|
|
|
|
|
+ btnStart.Size = new Size(75, 23);
|
|
|
|
|
+ btnStart.TabIndex = 9;
|
|
|
|
|
+ btnStart.Text = "开始";
|
|
|
|
|
+ btnStart.UseVisualStyleBackColor = true;
|
|
|
|
|
+ btnStart.Click += btnStart_Click;
|
|
|
|
|
+ //
|
|
|
|
|
+ // edtBPC
|
|
|
|
|
+ //
|
|
|
|
|
+ edtBPC.Location = new Point(368, 13);
|
|
|
|
|
+ edtBPC.Maximum = new decimal(new int[] { 96, 0, 0, 0 });
|
|
|
|
|
+ edtBPC.Name = "edtBPC";
|
|
|
|
|
+ edtBPC.Size = new Size(75, 23);
|
|
|
|
|
+ edtBPC.TabIndex = 8;
|
|
|
|
|
+ edtBPC.Value = new decimal(new int[] { 32, 0, 0, 0 });
|
|
|
|
|
+ //
|
|
|
|
|
+ // edtDPIY
|
|
|
|
|
+ //
|
|
|
|
|
+ edtDPIY.Location = new Point(214, 13);
|
|
|
|
|
+ edtDPIY.Maximum = new decimal(new int[] { 1000, 0, 0, 0 });
|
|
|
|
|
+ edtDPIY.Name = "edtDPIY";
|
|
|
|
|
+ edtDPIY.Size = new Size(75, 23);
|
|
|
|
|
+ edtDPIY.TabIndex = 7;
|
|
|
|
|
+ edtDPIY.Value = new decimal(new int[] { 96, 0, 0, 0 });
|
|
|
|
|
+ //
|
|
|
|
|
+ // edtDPIX
|
|
|
|
|
+ //
|
|
|
|
|
+ edtDPIX.Location = new Point(59, 13);
|
|
|
|
|
+ edtDPIX.Maximum = new decimal(new int[] { 1000, 0, 0, 0 });
|
|
|
|
|
+ edtDPIX.Name = "edtDPIX";
|
|
|
|
|
+ edtDPIX.Size = new Size(75, 23);
|
|
|
|
|
+ edtDPIX.TabIndex = 6;
|
|
|
|
|
+ edtDPIX.Value = new decimal(new int[] { 96, 0, 0, 0 });
|
|
|
|
|
+ //
|
|
|
|
|
+ // label3
|
|
|
|
|
+ //
|
|
|
|
|
+ label3.AutoSize = true;
|
|
|
|
|
+ label3.Location = new Point(330, 15);
|
|
|
|
|
+ label3.Name = "label3";
|
|
|
|
|
+ label3.Size = new Size(32, 17);
|
|
|
|
|
+ label3.TabIndex = 5;
|
|
|
|
|
+ label3.Text = "位深";
|
|
|
|
|
+ //
|
|
|
|
|
+ // label2
|
|
|
|
|
+ //
|
|
|
|
|
+ label2.AutoSize = true;
|
|
|
|
|
+ label2.Location = new Point(168, 15);
|
|
|
|
|
+ label2.Name = "label2";
|
|
|
|
|
+ label2.Size = new Size(40, 17);
|
|
|
|
|
+ label2.TabIndex = 3;
|
|
|
|
|
+ label2.Text = "DPI_Y";
|
|
|
|
|
+ //
|
|
|
|
|
+ // label1
|
|
|
|
|
+ //
|
|
|
|
|
+ label1.AutoSize = true;
|
|
|
|
|
+ label1.Location = new Point(12, 15);
|
|
|
|
|
+ label1.Name = "label1";
|
|
|
|
|
+ label1.Size = new Size(41, 17);
|
|
|
|
|
+ label1.TabIndex = 1;
|
|
|
|
|
+ label1.Text = "DPI_X";
|
|
|
|
|
+ //
|
|
|
|
|
+ // panel2
|
|
|
|
|
+ //
|
|
|
|
|
+ panel2.Controls.Add(listFiles);
|
|
|
|
|
+ panel2.Controls.Add(btnSelectFiles);
|
|
|
|
|
+ panel2.Dock = DockStyle.Fill;
|
|
|
|
|
+ panel2.Location = new Point(0, 44);
|
|
|
|
|
+ panel2.Name = "panel2";
|
|
|
|
|
+ panel2.Size = new Size(767, 409);
|
|
|
|
|
+ panel2.TabIndex = 1;
|
|
|
|
|
+ //
|
|
|
|
|
+ // listFiles
|
|
|
|
|
+ //
|
|
|
|
|
+ listFiles.AllowUserToAddRows = false;
|
|
|
|
|
+ listFiles.AllowUserToDeleteRows = false;
|
|
|
|
|
+ listFiles.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
|
|
|
|
+ listFiles.Columns.AddRange(new DataGridViewColumn[] { colFilePath, colFileName, colFileProgress });
|
|
|
|
|
+ listFiles.Location = new Point(12, 35);
|
|
|
|
|
+ listFiles.Name = "listFiles";
|
|
|
|
|
+ listFiles.ReadOnly = true;
|
|
|
|
|
+ listFiles.RowTemplate.Height = 25;
|
|
|
|
|
+ listFiles.Size = new Size(743, 362);
|
|
|
|
|
+ listFiles.TabIndex = 2;
|
|
|
|
|
+ //
|
|
|
|
|
+ // colFilePath
|
|
|
|
|
+ //
|
|
|
|
|
+ colFilePath.HeaderText = "文件路径";
|
|
|
|
|
+ colFilePath.Name = "colFilePath";
|
|
|
|
|
+ colFilePath.ReadOnly = true;
|
|
|
|
|
+ colFilePath.Visible = false;
|
|
|
|
|
+ //
|
|
|
|
|
+ // colFileName
|
|
|
|
|
+ //
|
|
|
|
|
+ colFileName.HeaderText = "文件名称";
|
|
|
|
|
+ colFileName.Name = "colFileName";
|
|
|
|
|
+ colFileName.ReadOnly = true;
|
|
|
|
|
+ colFileName.Width = 150;
|
|
|
|
|
+ //
|
|
|
|
|
+ // colFileProgress
|
|
|
|
|
+ //
|
|
|
|
|
+ colFileProgress.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
|
|
|
|
|
+ colFileProgress.HeaderText = "处理进度";
|
|
|
|
|
+ colFileProgress.Name = "colFileProgress";
|
|
|
|
|
+ colFileProgress.ReadOnly = true;
|
|
|
|
|
+ //
|
|
|
|
|
+ // btnSelectFiles
|
|
|
|
|
+ //
|
|
|
|
|
+ btnSelectFiles.Location = new Point(12, 6);
|
|
|
|
|
+ btnSelectFiles.Name = "btnSelectFiles";
|
|
|
|
|
+ btnSelectFiles.Size = new Size(75, 23);
|
|
|
|
|
+ btnSelectFiles.TabIndex = 0;
|
|
|
|
|
+ btnSelectFiles.Text = "选择文件";
|
|
|
|
|
+ btnSelectFiles.UseVisualStyleBackColor = true;
|
|
|
|
|
+ btnSelectFiles.Click += btnSelectFiles_Click;
|
|
|
|
|
+ //
|
|
|
|
|
+ // frmMain
|
|
|
|
|
+ //
|
|
|
|
|
+ AutoScaleDimensions = new SizeF(7F, 17F);
|
|
|
|
|
+ AutoScaleMode = AutoScaleMode.Font;
|
|
|
|
|
+ ClientSize = new Size(767, 453);
|
|
|
|
|
+ Controls.Add(panel2);
|
|
|
|
|
+ Controls.Add(panel1);
|
|
|
|
|
+ Name = "frmMain";
|
|
|
|
|
+ Text = "PDF2JPG";
|
|
|
|
|
+ Load += FrmMain_Load;
|
|
|
|
|
+ panel1.ResumeLayout(false);
|
|
|
|
|
+ panel1.PerformLayout();
|
|
|
|
|
+ ((System.ComponentModel.ISupportInitialize)edtBPC).EndInit();
|
|
|
|
|
+ ((System.ComponentModel.ISupportInitialize)edtDPIY).EndInit();
|
|
|
|
|
+ ((System.ComponentModel.ISupportInitialize)edtDPIX).EndInit();
|
|
|
|
|
+ panel2.ResumeLayout(false);
|
|
|
|
|
+ ((System.ComponentModel.ISupportInitialize)listFiles).EndInit();
|
|
|
|
|
+ ResumeLayout(false);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ #endregion
|
|
|
|
|
+
|
|
|
|
|
+ private Panel panel1;
|
|
|
|
|
+ private Label label1;
|
|
|
|
|
+ private Panel panel2;
|
|
|
|
|
+ private Label label2;
|
|
|
|
|
+ private Label label3;
|
|
|
|
|
+ private NumericUpDown edtBPC;
|
|
|
|
|
+ private NumericUpDown edtDPIY;
|
|
|
|
|
+ private NumericUpDown edtDPIX;
|
|
|
|
|
+ private Button btnStart;
|
|
|
|
|
+ private Button btnSelectFiles;
|
|
|
|
|
+ private DataGridView listFiles;
|
|
|
|
|
+ private DataGridViewTextBoxColumn colFilePath;
|
|
|
|
|
+ private DataGridViewTextBoxColumn colFileName;
|
|
|
|
|
+ private DataGridViewTextBoxColumn colFileProgress;
|
|
|
|
|
+ }
|
|
|
|
|
+}
|