Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to Send image in paintdotnet workspace through myproject picturebox.

How to Send image in paintdotnet workspace through myproject picturebox.

Scheduled Pinned Locked Moved C#
csharphelptutorialworkspace
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nomi
    wrote on last edited by
    #1

    :(( Hi ! i m using paint.net v3.22 free software 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 plzzz help. //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(); }

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups