Jump to content

Is there any viewer for this?


Chakravarthy

Recommended Posts

I'm the author of this post, unfortunately, i posted that with out login.

In other words of my requirement, is there any tool that can be consumed in .ASPX page, so that i can edit the image, just like using my MSPaint on windows.

Any information on this is highly appricated.

Regards,

DSK Chakravarthy

Link to comment
Share on other sites

Do you want a viewer, or the whole editor?

If you just want a viewer for .PDN files on an ASPX page, you can reference PaintDotNet.Data.dll and use an instance of PdnFileType and call its Load method. That will give you a Document instance which you can then Render() to a Surface, and then from the Surface you can call CreateAliasedBitmap and do whatever you want with that.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

Thanks Rick,

Do you have any example for the same?

Secondly, if i use the PaintDotNet.Data.dll assembly, can i have a features like zoom in, zoom out, pick the color of any pixel, replce the pixel color with any other,.... etc kind works?

Regards,

DSK Chakravarthy

Link to comment
Share on other sites

No, we don't have sample code for what you're trying to do. Paint.NET was never engineered to work on a web page, it doesn't work like that at all. PaintDotNet.Data.dll has code for reading and writing data, and for rendering it to the screen in the context of WinForms, not WebForms.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

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...