Jump to content

Cookies

Members
  • Posts

    112
  • Joined

  • Last visited

Posts posted by Cookies

  1. You could select all the white with magic wand  :MagicWandTool: , press delete and then run antialias assistant or feather once your done create a new layer :AddNewLayer: and move down  :MoveLayerDown: and fill with white using paint bucket  :PaintBucket: and then flatten the image  :Flatten: Ctrl+Shift+F or (menu item)Image -> Flatten Image

    TIP: Hold shift while selecting the white, then you select all white, even if some of the white is "sealed"

  2. This is a simple High Pass filter i created, it took me around 20 minutes for the base, used some extra hours for extra things

    Some sample images

    The base image:
    _________________

    yhsjjie-171.png
    _________________


    Samples for Custom UI version with extra options:


    Zoom blur mode:
    High%20Pass%20-%200[1].jpg 

    Surface blur mode:
     High%20Pass%20-%201[1].jpg


    Samples for Indirect UI version with less options:

    Edges:
     Screenshot%20-%2042[1].jpg

    Sharpening (A good idea is to switch between this and the base image):
     Screenshot%20-%2043[1].jpg

    Greyscaled:

    Screenshot%20-%2044[1].jpg

     

    @ReMake has very kindly rebuilt this plugin to resolve some UI issues.  His version(s) replaces the previously available ZIP.

     

    Download for 4.0+ :arrow-right: HighPass.zip

     

    Download for 3.5.11 :arrow-right:HighPass v1.2 for PDN 3.5.11.zip

    • Upvote 1
  3.  I was fiddling with codelab today at school trying to create a highpass filter like the one in photoshop, i ended up having the same effect like the one in photoshop with a radius of 1 and mine with a radius of 3, mine turned out to be more smooth and i noticed that it only needed to be sharpened a bit to end up like photoshop's, my problem is i dont know how to sharpen it, i already called a gaussian  blur so i can't run another effect like that as i understand, codelab source is below

    #region UICode
     int Amount1 = 10; // [0,100] Radius
    #endregion
    
    
    // Setup for using Invert pixel op
    private UnaryPixelOps.Invert invertOp = new UnaryPixelOps.Invert();
    
    // Setup for using Normal blend op
    private UserBlendOps.NormalBlendOp normalOp = new UserBlendOps.NormalBlendOp();
    
    void Render(Surface dst, Surface src, Rectangle rect)
    {
        // Setup for calling the Gaussian Blur effect
        GaussianBlurEffect blurEffect = new GaussianBlurEffect();
        PropertyCollection blurProps = blurEffect.CreatePropertyCollection();
        PropertyBasedEffectConfigToken BlurParameters = new PropertyBasedEffectConfigToken(blurProps);
        BlurParameters.SetPropertyValue(GaussianBlurEffect.PropertyNames.Radius, Amount1);
        blurEffect.SetRenderInfo(BlurParameters, new RenderArgs(dst), new RenderArgs(src));
        // Call the Gaussian Blur function
        blurEffect.Render(new Rectangle[1] {rect},0,1);
    
        // Now in the main render loop, the dst canvas has a blurred version of the src canvas
        for (int y = rect.Top; y < rect.Bottom; y++)
        {
            for (int x = rect.Left; x < rect.Right; x++)
            {
                ColorBgra CurrentPixel = src[x,y];
    
                CurrentPixel = invertOp.Apply(CurrentPixel);
                ColorBgra cp = dst[x,y];
                cp.A = Int32Util.ClampToByte(cp.A / 2);
                CurrentPixel = normalOp.Apply(CurrentPixel, cp);
                CurrentPixel = invertOp.Apply(CurrentPixel);
                
                dst[x,y] = CurrentPixel;
            }
        }
    }
    
    

    Tried some different sharpening code i found with google, they didn't work.

    Would be nice if i could adjust the sharpness too

  4. New version! v1.1 is out!

    Added Triangle and Star shapes for gradient options

    Gradient control (gradient mode, angle, width, height and show gradient) are now disabled when "Use premade gradient" is checked

    Changed default width to 10% and default angle to 90

    Link in the first post is updated

  5.  Well, would just ask you what you would think of a checkbox "Repeat gradient" So, lets say we take ellipse, set the width to 50 then it will draw the ellipse 2 times by the side of each other, width 25, 4 ellipses, just asking if you would think it makes the UI too complicated  :roll:, and on a side note i'm working on a triangle gradient, i can take gradient request but it's not 100% sure ill make them if they're too complicated   :lol:

  6. I use 32 bit.

    Tried it with multiple wild settings adjustments, no problem so far.

    Hmmm, wondering whats causing the problem then, but good to hear it isn't 64 bit only  :lol: Was getting afraid of using a lot of time tomorrow in school to figure out how to get it working on 32 bit  :fear:

  7. The plugin keeps crashing for me.

    Here's the error details

    {error}

    Strange, a friend of mine also told me about it crashed at him, but no matter what i do i cant recreate it, i also asked my friend how he got it crashing his answer was "I just changed some values with transparent background and 2 layers"

    So now i ask you, how did you get it crashing?

    edit: Are you using 32bit? I asked my friend he says he use 32bit (OS), dont know if thats the problem, but to others if it works/not works are you then using 32bit or 64bit?

  8. Hello, this is my first plugin, if you think recognize it then it might be true (clicky clicky).

    I have been working on it for some time now, and i think it's ready to be released, i got a lot of help from EER and MadJik

    And it does what it say, it creates a lightning BUT without you need to start by drawing a gradient, but it's still possible to use a premade gradient :)

    Some screenshots of what it can do

    The most obvious use:
    Screenshot%20-%2036[1].jpg 

    Gradients are also possible:
    Screenshot%20-%2038[1].jpg 

    And the the not-at-all obvious use:
    Screenshot%20-%2037[1].jpg 

    Hope you enjoy using it :)

     

    Download:

    Lightning.zip

     

  9. No, you shouldn't be doing anything to the Paint.NET UI.

    Effect plugins are for rendering content to a layer. FileType plugins are for bringing in content from a stream.

    When you try to go outside these boundaries you introduce side effects that may cause Paint.NET to get confused, or users to get confused. Or if your error handling isn't perfect, things can crash or do other stuff. You also make it much more difficult for me going forward to ensure compatibility with your plugin. You may have something that works with whatever the latest version is, but you have no guarantee that later versions of Paint.NET will respond to what you're doing (or that it'll respond correctly, or that it'll respond to the restore command, etc). If you do stuff like this, I'm much more likely to just block your plugin from loading than I am to ensure it still works in the next version.

    Ok, thought so, just asked to be sure

×
×
  • Create New...