资源简介
C#调用photoshop工具源码 photoshop
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Microsoft.Win32;
using System.Diagnostics;
namespace WindowsApplication5
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button3_Click(object sender EventArgs e)
{
Application.Exit();
}
private void Form1_Load(object sender EventArgs e)
{
textBox1.Text = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
}
private void button2_Click(object sender EventArgs e)
{
string myRar;
RegistryKey myReg;
object myObj;
ProcessStartInfo myStartInfo;
Process myProcess;
try
{
myReg = Registry.ClassesRoot.OpenSubKey(“Applications\\photoshop.exe\\shell\\Open\\Command“);
myObj = myReg.GetValue(““);
myRar = myObj.ToString();
myReg.Close();
myRar = myRar.Substring(1 myRar.Length - 7);
myStartInfo = new ProcessStartInfo();
myStartInfo.FileName = myRar;
myStartInfo.Arguments = textBox1.Text.ToString();
myProcess = new Process();
myProcess.StartInfo = myStartInfo;
myProcess.Start();
}
catch (Exception ex)
{
DisplayException(new Exception(“Export failed please make sure Photoshop is installed on this computer and try again“));
}
}
private void button1_Click(object sender EventArgs e)
{
OpenFileDialog fbd = new OpenFileDialog();
if (fbd.ShowDialog() == DialogResult.OK)
{
textBox1.Text = fbd.FileName.ToString();
}
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 3245 2009-08-05 15:39 C#调用ps\Backup\WindowsApplication5\ExportPhotoshop.csproj
文件 2090 2009-08-05 16:03 C#调用ps\Backup\WindowsApplication5\Form1.cs
文件 4809 2009-08-05 15:41 C#调用ps\Backup\WindowsApplication5\Form1.Designer.cs
文件 6226 2009-08-05 15:41 C#调用ps\Backup\WindowsApplication5\Form1.resx
文件 486 2009-08-05 15:11 C#调用ps\Backup\WindowsApplication5\Program.cs
文件 1310 2009-08-05 15:11 C#调用ps\Backup\WindowsApplication5\Properties\AssemblyInfo.cs
文件 2865 2009-08-05 15:11 C#调用ps\Backup\WindowsApplication5\Properties\Resources.Designer.cs
文件 5612 2009-08-05 15:11 C#调用ps\Backup\WindowsApplication5\Properties\Resources.resx
文件 1102 2009-08-05 15:11 C#调用ps\Backup\WindowsApplication5\Properties\Settings.Designer.cs
文件 249 2009-08-05 15:11 C#调用ps\Backup\WindowsApplication5\Properties\Settings.settings
文件 938 2009-08-05 16:05 C#调用ps\Backup\WindowsApplication5.sln
..A..H. 12800 2009-08-05 16:05 C#调用ps\Backup\WindowsApplication5.suo
文件 3929 2011-12-06 15:21 C#调用ps\UpgradeLog.xm
文件 10240 2011-12-06 15:22 C#调用ps\WindowsApplication5\bin\Debug\WindowsApplication5.exe
文件 22016 2011-12-06 15:22 C#调用ps\WindowsApplication5\bin\Debug\WindowsApplication5.pdb
文件 14328 2011-12-06 15:22 C#调用ps\WindowsApplication5\bin\Debug\WindowsApplication5.vshost.exe
文件 490 2009-06-11 05:14 C#调用ps\WindowsApplication5\bin\Debug\WindowsApplication5.vshost.exe.manifest
文件 3453 2011-12-06 15:21 C#调用ps\WindowsApplication5\ExportPhotoshop.csproj
文件 2092 2011-12-06 15:22 C#调用ps\WindowsApplication5\Form1.cs
文件 4809 2009-08-05 15:41 C#调用ps\WindowsApplication5\Form1.Designer.cs
文件 6226 2009-08-05 15:41 C#调用ps\WindowsApplication5\Form1.resx
文件 788 2011-12-06 15:22 C#调用ps\WindowsApplication5\obj\Debug\ExportPhotoshop.csproj.FileListAbsolute.txt
文件 847 2011-12-06 15:22 C#调用ps\WindowsApplication5\obj\Debug\ExportPhotoshop.csproj.GenerateResource.Cache
文件 4608 2011-12-06 15:21 C#调用ps\WindowsApplication5\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll
文件 842 2009-08-05 15:41 C#调用ps\WindowsApplication5\obj\Debug\WindowsApplication5.csproj.GenerateResource.Cache
文件 10240 2011-12-06 15:22 C#调用ps\WindowsApplication5\obj\Debug\WindowsApplication5.exe
文件 180 2011-12-06 15:21 C#调用ps\WindowsApplication5\obj\Debug\WindowsApplication5.Form1.resources
文件 22016 2011-12-06 15:22 C#调用ps\WindowsApplication5\obj\Debug\WindowsApplication5.pdb
文件 180 2011-12-06 15:21 C#调用ps\WindowsApplication5\obj\Debug\WindowsApplication5.Properties.Resources.resources
文件 352 2009-08-05 15:58 C#调用ps\WindowsApplication5\obj\WindowsApplication5.csproj.FileList.txt
............此处省略27个文件信息
- 上一篇:C#串口调试工具44664
- 下一篇:WPFGRAPHICS.zip
相关资源
- WPFGRAPHICS.zip
- 基于asp.net+sql的学生宿舍管理系统
- C# WPF+MVVM+EF+多语言
- C#CircularProgressBar
- c#调用 windows api实现WinForm中嵌入EXE程
- WPF-自定义控件
- c# / VB 调用refprop.dll
- 基于asp.net的bbs系统
- 基于asp.net的新闻发布系统
- MySplConnection.zip
- OPC2.0核心组件
- C#写的Ftp上传文件、文件夹
- PID调试软件模拟仿真
- asp.net 三层架构,经典源码
- asp.net 站内邮件系统c#
- c#WinForm程序自动升级源码
- 图书管理图书管理图书管理图书管理
- C#实现本机资源监控
- c#gps原代码
- LoadingMaskWPF加载数据loading遮罩
- C#中主窗体Panel中加载其他多个窗体
- C_序列化和反序列化.pdf
- GPSTXT文件C#读写分割管理
- C# Primer Plus(源码)
- 雷达屏幕显示
- 基于C#的TCP/IP协议客户端和服务器的代
- C# FTP客户端实例42418
- 通过修改属性表完成shp文件的修改
- FusionCharts ASP.NET+SQLServer
- CSharp通讯录编程
评论
共有 条评论