Jump to content

midora

Members
  • Posts

    1,782
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by midora

  1. Let's hope that Rick will once add the feature that the selected filter plugin in the open and save dialog will be used for the operation. It's not nice that you can not use these plugins together. ImPDF will be more strict in the future and just load PDFs created in the ImPDF pdf variant.
  2. Worst case paint.net can not rely on the Metadata 'remembering' (or it just takes some time). Always a mess if issues can not be reproduced locally.
  3. Looks like get_DpuUnit doesn't remember that it just set the default values and instead of returning the values sets them again. Because the subscriber calls get_DpuUnit there will be an infinite loop.
  4. Please describe in detail the steps you are doing. Inability to save is just not a good description.
  5. Hi @perry59welcome to the forum. You have to create a new layer on top of your image and paste the wings there.
  6. paint.net 4.3 allows subfolders in the effect menu. So I would check the whole Effect folder tree if there are duplicates.
  7. That's a bad idea. You should not allow to create PDFs which do not seem to be conform with the PDF specification (just because a tool doesn't complain). You have to run conformance tests especially if you like to support PDF/A-1b and PDF/A-2.
  8. @AndrewDavidIMHO this question is far beyond Codelab. Codelab creates PropertyBesedEffects. This is the most simple way to create an effect plugin. You can not just create a dialog, add some controls and tell paint.net to use it. You have to derive a new dialog from the paint.net one. You have to create an EffectToken which is used to transport settings from the dialog to the render function and to setup the controls in the dialog. You can do this but if you are not experienced with the basic concepts of effect plugins then it will take some time. You should first check the source code of an existing plugin to understand the flow of data, the start making small modification by adding a new control. It's just not the best time during the switch to .net 5.
  9. I wouldn't create an intermediate Bitmap. Just create a new BitmapLayer and set the pixels in a loop var layer = new BitmapLayer(pixelWidth, pixelHeight); doc.Layers.Add(layer); layer.Surface[column, row] = ... We just discussed what may be the fastest way to set the surface data from a raster.
  10. @otuncelliThats clever. I totally forgot that 'Crop to selection' works on non rectangular selections.
  11. Yes, just not at the same time. You have to add your Effects, Filetypes, and Shapes.
  12. There will be no OBL update for older plugins. The development gap of 5 years is just too long.
  13. All my 4.3 plugin variants are showing this warning. I never could eliminate it. But there seems to be no negative effect at runtime.
  14. There was one issue. Maybe someone could provide a hint. Adding the icon to the resource always created code with the icon type byte[]. Means I couldn't use it as StaticImage. At some point I gave up and edited the .resx file (it's a text file) and changed there byte[] to Bitmap. This worked. The created .cs file got this type and I was able to use it as StaticImage. This is only an issue in the .net 5 environmment.
  15. But I did this project using VS 2019. So maybe you missed any update. Even Net 6.0 should work.
  16. I guess you are right. I switched to 2019 beginning of the year because I couldn't install some newer sdks.
  17. I created an update of the solution (VS 2019) which uses .NET 5 and requires paint.net 4.3.0. PdnUiAllPropertyBasedControls 4.3.0.zip You have to update the references to the paint.net assembly (the project references the portable version).
  18. Untested, just looking in the repo. Add to the override Render method // Get the current settings from the token (or do it in OnSetRenderInfo) Amount1 = Amount2 = // Render each rectangle for (int index = startIndex; index < startIndex + length; ++index) Render(dstArgs.Surface, srcArgs.Surface, rois[index]); But you should really start with a more simple project. There is too much overhead in this one.
  19. Your override of the Render method doesn't render anything. To create a virtual OnRender method makes only sense if you like to override it (and the loop there executes an empty statement). So add the loop with a call to the second Render method to the first one. Take the surfaces from the RenderArgs. I'm not adding a code snippet now.
  20. @AndrewDavidZero would mean there is no row or column. A minimum of one makes more sense. Anyway if the author allows zero - for what ever reason - the code has to check that there is no division by this value.
  21. A division by zero in the plugin Render method is most likely a bug in the plugin code. Does it make sense to allow zero for the slider value?
  22. Win 10 Home 21H1 build 19043.1237. I remember that I changed the colors on the second screen once to be a little bit warmer. This explains the difference. No difference in paint.net compared to the FileExplorer.
  23. That's a little bit strange because the Windows FileExplorer shows it like the third image. And I guess the the FileExplorer uses also WIC. Maybe icm is not enabled. paint.net 4.2.16 and the 4.3 beta shows it like the second one, which seems to be fine. And the What's it plugin identifies it as jpeg 😉 I have to correct the first sentence. It only gets the green touch on my second monitor on the main one it looks fine.
  24. By mistake I figured out that the rule 'paint.net does only load an image if the image filename has the correct extension' is not always true. Renaming a .jpg to .bmp still loads the file. I guess this is the case because both extension use WIC to decode the file and WIC identifies the file by content and not by extension. We will not tell this users 😉
×
×
  • Create New...