Jump to content

midora

Members
  • Posts

    1,782
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by midora

  1. I would reinstall my PC. You installed sw from a page which has no imprint or other information. So there is a big chance that your pc is infected in the meantime.
  2. There is no multi-layer jpeg format. So maybe you changed the extension to jpeg but saved in pdn format. Try to change the extension of the file to .pdn manually.
  3. No where. The author is still not happy with the current state to release a first version. Like Rick with v4 ;-) But at the end this plugin is just like the build-in Layers->Rotate/Zoom with some more options. More to test the underlying OptionBasedEffect.dll which provides the ui, manages the options and handles the extensions. Some of the developers need the simplicity of PropertyBasedEffect using IndirectUI but also extensibility.
  4. Seems to save the absolute position. You may switch this feature off at the bottom of the dialog in the Setting popup.
  5. Its not only an issue of RAM. To calculate the composite image (the image you will see in the main window) means that the applications has to combine top down all pixels of all layers respecting alpha channel and blend mode. Simplified: If one layer takes x seconds then n layers need n * x seconds. But because Paint.NET is multicore aware you may add more cores to speed up the calculation.
  6. It's not just you fighting with this issue. What works for me (W7 Mult-window environment + ATI ;-): Start Paint.NET w/o an image as parameter. This way I'm getting the last saved window location and size.
  7. Please try to provide more info about your environment like hw, sw, operating system. You may also attach or link a zipped exampled of a saved .pdn so that we are able check if there is an error in the file. Maybe an antivirus tools blocks the access. If you are using one then switch it off temporarily.
  8. Means 276MB per layer plus composite. Changing dpi setting has no impact on the amount of pixels. So if the pdn does not load and nobody provides a direct solution you may try to use pnd2png to create the composite or to split the pdn into layers.
  9. OK, that's exactly what the 'finalizer' in the attached example does. But it is only called for the instance created at startup and for the instances created when I click the Adjustment title. There are also no calls of the finalizer after an operation which adds a history entry. This is why I did this basic property based example. In the moment I'm developing a so called OptionBasedLibrary with the look and feel of PropertyBased but with some extensions like the possibility to copy/paste and load/save the serialized token to xml, the possibility to create user controls, ... I solved somehow the issue with CreateInitialToken by using a modified factory pattern which allows to stack a context (scope). Now I'm looking for possible memory issues because I need to construct a context before an effect instance is created (because one of its jobs is to provide language specific texts needed by the base contructor of the effect for name and submenuname). But the memory of the context should be released on deconstruction of the effect.
  10. But this means that - after a while - there may be thousands of unreleased effect instances?
  11. For sure that's not the question in this case. Maybe I used the wrong word. The question is why is the destructor not called (a dispose function in my view). It looks like that Paint.NET creates new instances for each effect if you are clicking the menu and never destroys them.
  12. I'm not sure if there is a problem maybe someone else likes to check or clarify this. I used my ExamplePropertyBasedEffect class to add output to DebugView in new and dispose. During startup of Paint.NET there is one new and one dispose of the effect instance. Then there is a second new which has no dispose. Now if I'm just clicking on the menu title 'Effects' there is a new (probably to get the submenu name). Doing clicking again and again does always a new but no dispose. Clicking on 'Adjustments' does always a new and a dispose. Clicking on other menu titles does no new and dispose. Closing of Paint.NET does not any dispose. Is this an issue with the garbage collector or a dangling / circula reference? Or may be just issue with understanding? The example project is attached. ExamplePropertyBasedEffect plus instance counter.zip
  13. Thanks taking the time looking in this issue. It drives me crazy ;-) Nothing is ready during CreateInitialToken. Even the Effect Property of the ConfigDialog is not set at this time. Or the service to access the userdata path. Means PropertyBasedEffect can use an other constructor in the assembly but it is internal and can not be used from dlls? Because I would expect that the PropertyBasedEffect has the same issue to access the list of properties.
  14. Could not verify this on Win7. Used the 'Measure Selection' plugin to look for the values. Which properties are you reading?
  15. Ok, it works for me in OnSetRenderInfo but not in CreateInitialToken. Seems the Services object in Effects is not ready at this time. I like to use the path in CreateInitialToken to allow 'user default values' for the effect. For sure I do not like a static solution, but if the path is not accessible...
  16. Could you provide a code sippet because configFolder = Services.GetService<PaintDotNet.AppModel.IAppInfoService>().UserDataDirectory; just throws the exception: Object reference not set to an instance of an object. So some object is needed first. Worst case I have to go back to string mydocuments = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments); configFolder = Path.Combine(mydocuments, "Paint.NET User Files");
  17. It seems that nobody of the forum users has an idea about the file format this orb tool requires. So we can only guess. To ask this question again without any more information does not make sense.
  18. Use Windows 'cmd.exe' as shell to execute the converter tool.
  19. The checkerboard pattern in the bmp is visible in viewers which do no have an idea about transparency in BMP (like MS Windows Explorer). But maybe this orb tool expects a special color for the transparent parts (you should really ask the developers about the expected file format). But you can try to render the bmp against a color. This keeps the transparency but sets the color of these transparent pixels to your preffered color. Black pdn2bmp,exe /background=0x00000000 image.pdn Whire pdn2bmp,exe /background=0xFFFFFF00 image.pdn
  20. I'm not sure but do you know that windows uses \ as path separator? Anyway just drag and drop the pdn file to the exe because /argb is the default.
  21. The original is 32-bit the resaved 24-bit. Both are of type BI_RGB. The MS BITMAPINFOHEADER specification defines that BI_RGB does not support in alpha channel. Some applications are using the unused bytes to store alpha values but this is unsprecified. You may use a tool like pdn2bmp to convert a pdn file to an argb bmp.
  22. Is there a property or a method to get this filename from Paint.NET? Would like to use it to store options and default values for OptionBased effect and filetype plugins as xml files. Thanks
  23. Danke für die Blumen (this will be difficult to translate because the meaning depends on intonation ;-) Because I'm lazy I added the possibility to set the default values in the configuration file (I always need Meter, 300dpi, 1:50) So there is an update: 1.1 (2.4.2013) - Renamed MeasureSelection.txt to MeasureSelection.dlc (please delete MeasureSelection.txt) - Added optional default value keys to the .dlc file - Moved some information from code to the assembly part of the dll I hope Rick will include - at some time - the dpi value of the image to the Environment of Effects. And to add a scale value to the resize dialog or somewhere else would help to get the scaled values in the status line during selection.
×
×
  • Create New...