Jump to content

midora

Members
  • Posts

    1,782
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by midora

  1. You may use the ImPDF FileType plugin to save as PDF and ghostscript to convert from pdf to eps. PDF and EPS are vector file formats so a specif dpi value is just relevant for raster images embedded in the vector files.
  2. Up to now I tried to avoid disassembly of Paint.NET code. I'm pretty sure it is worth because most of the stuff I touched in Paint.NET is well designed and not just hacked ;-) So snippet would be fine but it is not important. Just needed for a color sheme selector.
  3. The knowledge of the math plus a good idea of composition. This combination is great. Thanks TR for some nice plugins.
  4. You should be more careful with your subjects ;-) If you are just mention two words then not everyone will understand that you are talking about a special plugin. As EER told you best place to ask a plugin specific question is the plugin thread.
  5. Rick (or who else has an idea about it :-). The color wheel in Paint.NET has an antialiased border. This seems to be nothing special but if you are using a PathGradientBrush to fill the wheel the border is not antialiased. MSDN tells: The smoothing mode specifies whether lines, curves, and the edges of filled areas use smoothing (also called antialiasing). One exception is that path gradient brushes do not obey the smoothing mode. Areas filled using a PathGradientBrush are rendered the same way (aliased) regardless of the SmoothingMode property. OK, what I'm doing in the moment is to draw a circle in the background color around the wheel. This works because the antialiased circle smooths the border of the wheel. Is there a better solution (especially for the case that the background is not solid?
  6. I guess he is talking about TRs cmy ghost plugin.
  7. You have to know how PropertyBased is working. If a dialog opens then it will show the values of the last saved token. There is a difference between PropertyBasedEffects and PropertyBasedFiletypes. The token of a FileType survives a restart of Paint.NET but an Effect token does not. I forgot to mention that there is an issue which I would call a bug. Cancel of a PropertyBasedFileType does not reset the token to the values after opening of the dialog.
  8. Sorry there is no interface to do this. You may create your own dialog but there are several issues to solve: - you should execute the dialog in the Ui task which is a bit tricky - the dialog should show the PDN glass look (if switched on) and follow the IndirectUi layout - center the dialog on the main form and use the main form as owner - the dialog should support PDN 3.5 and 4 There is one issue you can't solve w/o doing dirty things: Canceling the dialog (or the save method) will raise an exception. One example is the ImSVG FileType plugin.
  9. Windows 7, Service Pack 1 IndirectUi Sliders do not show a focus rectangle (if you are using the keyboard) Maximize main window on a secondary screen. Close Paint.NET. The following restart will open maximized on the primary screen Settings.Diagnostics page: Copy of the content to the clipboard would be usefull
  10. If the hidden frame feature is required you may try PDNAnimator. There you can define the hidden frame by a marker in the layer name. The tool has not been updated for a while but should work fine.
  11. As long as the plugins do not access methods outside of the somehow specified plugin interface (i.e. Ui. helper methods) . These plugins may break. But this is nothing new.
  12. I appreciate your customer service :-) You could just copy the 3.5.11 libs and exe and reference them. In this case the target project must be .NET 3.5. There is no special need to build on a different computer.
  13. Does your code require special PDN4 or .NET4 functionality? If not then there is no need to create two versions. See here
  14. Because you are writing the size at the beginning of the file you are able to allocate memory and load all pixels in one block. Use unsafe pointers to convert to the bitmap if speed is important and your algorithm has been proven. Write a magic at the beginning of the file and check it on load.
  15. Flatten just merges all layers to one surface. If you need the data of all layers do: foreach (BitmapLayer layer in input.Layers) { for (int row = 0; row < layer.Height; row++) { for (int column = 0; column < layer.Width; column++) { ColorBgra bgra = layer.Surface[column, row]; } } } Maybe I should add some code to ExamplePropertyBasedFileType template.
  16. Just flatten the input layers to the scratchsurface and write the pixels to the output stream. input.Flatten(scratchSurface); for (int row = 0; row < scratchSurface.Height; row++) { for (int column = 0; column < scratchSurface.Width; column++) { ColorBgra bgra = scratchSurface[column, row]; // write pixel to output stream } }
  17. IndirectUi RollBallAndSliders: Doubleclick to the ball resets the ball but not the bottom slider. This can be checked in Layers->Rotate/Zoom.
  18. This issue no longer exists for me in Paint.NET 4. So FastenYourWindows plugin has been restricted to dialogs.
  19. Not making pressure, we are happy that you did the step to publish an alpha. And we know the amount of work behind it and to finish it. I would expect there are two or three other new things ;-) Like new PropertyBased controls (Roller). Playing with Direct2D may be fun. So let's keep a copy of the 3.5 libs to be on the save side. BTW: EffectFlags.ForceAliasedSelectionQuality is a small step to Unlimited (IgnoreSelection) flag ;-)
  20. Red: My comment to you was just about removing the temporary bitmap because it is not necessary. The rest was a general hint to us the developers.
  21. Just collecting FileTypes in a subforum would be my favorite too.
×
×
  • Create New...