Jump to content

I want to send image from my project to paint.net ?


noman

Recommended Posts

H! .

i m using paint.net in myproject , i added it in my solution so i have two project in

one solution now i want to call paintdotnet thorugh my project i got success , now i like to send image through code in paintdotnet ,

paintdotnet use workspace class i didnt understand yet how to send image through my project and edit them and then send back to myproject its my task

i m very thankfull to you plzzz any one help me .....thanks in advance .

some code are below that i tried.

//its a button that is place in form1 its in myproject , and i m calling paint.net in mysoftware thorugh this code i get success but wanna send image that is in picturebox to paint.net but not getting any thing plz help me .

private void button2_Click(object sender, EventArgs e)

{

PaintDotNet.MainForm mF;

mF = new PaintDotNet.MainForm();

//PaintDotNet.PdnResources.GetImageResource(@"C:\Sunset.jpg");

//PaintDotNet.PdnResources.LoadImage(@"C:\Sunset.jpg");

// string[] fileNames ;

////string startingDir = Path.GetDirectoryName(documentWorkspace.FilePath);

// string startingDir = @"C:\Temp";

//public documentWorkspace;

//DialogResult result =PaintDotNet.DocumentWorkspace.ChooseFiles( PaintDotNet.DocumentWorkspace. , out fileNames, true, startingDir);

//PaintDotNet.DocumentWorkspace.ChooseFile(

//PaintDotNet.Actions.ImportFromFileAction(@"C:\Sunset.jpg");

// ImportFromFileAction(@"c:\sunset.jpg");

//PaintDotNet.Actions.OpenFileAction(pictureBox1.Image);

//PaintDotNet.Actions.NewImageAction();

// mF.AppWorkspace.PerformAction(new OpenFileAction());

// PaintDotNet.AppWorkspaceAction(new Image("C:\sunset.jpg"));

//PaintDotNet.AppWorkspaceAction(new OpenFileDialog());

mF.Show();

}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...