Jump to content
Paint.NET 5.1 is now available! ×

Recommended Posts

Posted

Basically it is useful being able to extend pdn with custom filetypes. But I suggest an option in the FileType api for placement in the file menu. In many situations the filetype appearing in the save dialog box is not apropriet - for example if the author wants to create a new print option with extra functionality, add email support, the ability to save as a custom brush in the apropriet folder or easily setting the image as the desktop background.

KaHuc.png
Posted

Your FileType is given a Stream which is already opened to a file. If the user specifies "c:\Users\Name\Whatever.jpg" and you don't save anything to the stream you're given, then that file will end up being zero bytes. You'll end up littering the user's hard drive with all these worthless files and make a mess of things. What you're talking about is a blatant misuse of the file type plugin API.

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

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

forumSig_bmwE60.jpg

Posted
I mean more of a separate API which would be more based on the effects api - except there would be no rendering back to the canvas and the only object passed would be Document.

So your after something like an Export API where you can write an export plugin that gives the you the control to do something with the document, but not necessarily save it? I could see where that would be useful. You cold write plugins like, Export > Set as Desktop Background, or Export > Upload to an image hosting site. Things that don't fall under effects or file types.

Posted
So your after something like an Export API where you can write an export plugin that gives the you the control to do something with the document, but not necessarily save it? I could see where that would be useful. You cold write plugins like, Export > Set as Desktop Background, or Export > Upload to an image hosting site. Things that don't fall under effects or file types.

That is exactly what I mean.

KaHuc.png
Posted

You can do all this through the Effects API, provided the user knows to flatten the image first.

Just put it in Effects -> Export or something.

xZYt6wl.png

ambigram signature by Kemaru

[i write plugins and stuff]

If you like a post, upvote it!

Posted
You can do all this through the Effects API, provided the user knows to flatten the image first.

Just put it in Effects -> Export or something.

But that just isn't IMHO a versatile enough solution.

KaHuc.png
Posted

That would be the best temporary solution, a lot better than using a file type plugin, the only downside though, is not being able to access the whole document. Another one I was thinking was Export > Save each layer as, that wouldn't be possible with the effects system, but would be a great feature to have.

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