Jump to content

midora

Members
  • Posts

    1,782
  • Joined

  • Last visited

  • Days Won

    26

Posts posted by midora

  1. Midora - the subject matter is as stated...CMY Ghost

     

    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.

  2. 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?

     

  3. 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.

  4. 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.

  5. 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
  6. 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.

  7. 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
                    }
                }
    
    
    • Upvote 1
  8. 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 ;-)

×
×
  • Create New...