bugzilla77 Posted March 16, 2016 Share Posted March 16, 2016 (edited) http://bugs.idsl.pl/paint.net/dices.7z 1. Copy dices.clp to Clipboard Use NirSoft InsideClipboard.exe and "Load From dices.clp File" 2. Create new empty image 800x600px and paste (ctrl+v) image from Clipboard 3. There is no transparent background but black! (GIMP works OK) Edited March 16, 2016 by bugzilla77 Quote Link to comment Share on other sites More sharing options...
toe_head2001 Posted March 16, 2016 Share Posted March 16, 2016 When loading an image from the clipboard, the order of preference that paint.net uses seems to be: 1) (Standard) Bitmap 2) DIB 3) PNG In your case, you have both a Bitmap (no transparency) and DIBs (with some transparency) More info here: http://forums.getpaint.net/index.php?/topic/31799-selecting-a-format-from-the-clipboard/ Quote My Gallery | My Plugin Pack Layman's Guide to CodeLab Link to comment Share on other sites More sharing options...
bugzilla77 Posted March 16, 2016 Author Share Posted March 16, 2016 In this case (load dices.clp from attachment via InsideClipboard.exe) CF_Bitmap size is zero. Paint.Net uses CF_DIB. Please check it. Quote Link to comment Share on other sites More sharing options...
BoltBait Posted March 16, 2016 Share Posted March 16, 2016 Do you have the same problems when using this plugin: http://forums.getpaint.net/index.php?/topic/28556- Quote Click to play: Download: BoltBait's Plugin Pack | CodeLab | and how about a Computer Dominos Game Link to comment Share on other sites More sharing options...
bugzilla77 Posted March 17, 2016 Author Share Posted March 17, 2016 Yes, I have. FillFromClipboard 4.4 is also buggy. Both ignore the alpha channel. Quote Link to comment Share on other sites More sharing options...
BoltBait Posted March 17, 2016 Share Posted March 17, 2016 Interesting, my Fill from Clipboard plugin defaults to PNG format which does support alpha. I just tested it with an image on the clipboard and the alpha was pasted in just fine. I suspect a problem with InsideClipboard. I don't think it is putting a "PNG" image on the clipboard and my plugin doesn't work with DIB format. In my opinion, you have a better chance of getting InsideClipboard of putting a PNG image into the clipboard than you do having Rick change how paint.net handles getting images off the clipboard. Quote Click to play: Download: BoltBait's Plugin Pack | CodeLab | and how about a Computer Dominos Game Link to comment Share on other sites More sharing options...
bugzilla77 Posted March 17, 2016 Author Share Posted March 17, 2016 This topic is about no support for alpha channel in CF_DIB. This DIB is correct: 40 bytes header and BRGA (1920000 bytes). PS I know that using PNG format is ok. Quote Link to comment Share on other sites More sharing options...
bugzilla77 Posted March 18, 2016 Author Share Posted March 18, 2016 (edited) > When loading an image from the clipboard, the order of preference that paint.net uses seems to be:> 1) (Standard) Bitmap> 2) DIB> 3) PNG This order of preference is no good. When I set clipboard: index 1) PNG index 2) CF_DIB Paint.NET gets CF_DIB (and incorrectly shows image without alpha channel, even if it present). The order of items in the clipboard should be respected or better types selected at first (PNG before CF_DIB before CF_BITMAP). Can you add this logic to base code of Paint.NET (ctrl-v)? Edited March 18, 2016 by bugzilla77 Quote Link to comment Share on other sites More sharing options...
BoltBait Posted March 18, 2016 Share Posted March 18, 2016 If you have control over what is put on the clipboard, only put PNG and paint.net will handle it properly. (Or, put a PNG and your other formats on the clipboard and use my Fill from Clipboard plugin which processes in the order you suggested.) Rick has stated in another thread (from a long time ago) his reasoning for the order he chooses to process what is on the clipboard. (I'm just too lazy to go find it.) I doubt that Rick will be changing his clipboard code. Quote Click to play: Download: BoltBait's Plugin Pack | CodeLab | and how about a Computer Dominos Game Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.