Jump to content

Zagna

Members
  • Posts

    509
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by Zagna

  1. 1 hour ago, comfreak said:

    I know this topic is ancient. I have a dimension to add though: when installing Paint.net via the Microsoft Store the app gets written into the hidden (and inaccessible) folder c:\program files\windows apps\

    I know you can access this folder through manipulating its security settings. But I am on a machine where I cannot/do not want to do that.

     

    But I can (and want to) change the default photo editor app via the registry hack mentioned by peterfnet (posted January 7, 2017). So what target do I point the registry to?

     

    Something C:\Program Files\WindowsApps\....?  Any ideas?

    You can use paintdotnet: protocol

  2. 36 minutes ago, Rick Brewster said:

    Why would you dispose the Document before returning it from the FileType? That makes no sense. That destroys the object. You only dispose things that are done being used.

    The return is inside the using. Just tinkering around to see if I could get Intellisense happy.

    Or I just misunderstood the stackoverflow search results about combining return&using.

    If so, just ignore my ramblings. I just dabble with C#.

  3. While checking null's filetype on github, I noticed FileTypeOptions and when updating ORA plugin, VS 2019's Intellisense complained at creating the Document type about recommended dispose pattern to make sure it's disposed on all paths. So I tried putting the whole thing inside using after a bit of googling and now when I try to open a .ora, paint.net crashes.

    Removing the using block fixes it back to working order. Don't know if this is something that needs to fixed at all? Or just ignore Intellisense?

  4. 2 hours ago, Amita4ever said:

    Okay.  Thanks.  That is what I was afraid of.  I really wanted to be able to start with a percentage reduction of the image (I'm trying to duplicate a picture but put in a different image reduced by the same percentage and was finding it hard to 'eyeball' it accurately), but the more I played with it, the less it seemed feasible.  Maybe I'll try the algebra approach and do the math to reduce the actual pixel height to 87%, but I was trying to avoid that - lol.

    You can also do it like this. Ctrl+C the layer you want to reduce, Ctrl+Alt+V to paste the layer to a new image, Resize that new image to 87%, Ctrl+C this new shrunken image and finally go back to the original image Ctrl+Shift+V to paste it as a new layer and then you can just hide the original size layer.

    • Like 2
×
×
  • Create New...