Jump to content

Distressed image


Recommended Posts

@emyabdel Welcome to PDN :)

 

There are a number of ways to do this.

 

You could use Custom Mini Brushes and download Splatter Brushes from Brush easy, or you could also use Brush Factory.

 

I made a simple star with 'splats' by making a solid black star, using the Shapes Tool and then, on a new layer, added the splats - using Brush Factory.

 

star.png

30b8T8B.gif

How I made Jennifer & Halle in Paint.net

My Gallery | My Deviant Art

"Rescuing one animal may not change the world, but for that animal their world is changed forever!" anon.

 
Link to comment
Share on other sites

3 hours ago, emyabdel said:

 

There's already a plugin that does this.  It's called "Make Dirty".  Here's the CodeLab script:

 

// Name: Make Dirty
// Submenu: Render
// Author: BoltBait
// Title: BoltBait's Make Dirty
// Version: 1.0
// Desc: Make an image dirty
// Keywords: dirty, olden, rust
// URL: http://BoltBait.com/pdn
#region UICode
IntSliderControl Amount1 = 250; // [2,1000] Scale
DoubleSliderControl Amount2 = 0.5; // [0,1] Roughness
BinaryPixelOp Amount3 = LayerBlendModeUtil.CreateCompositionOp(LayerBlendMode.Normal); // Blend Mode
ReseedButtonControl Amount4 = 0; // [255] Reseed
#endregion

// Setup for calling the Render Clouds function
CloudsEffect cloudsEffect = new CloudsEffect();
PropertyCollection cloudsProps;

// Setup for using Multiply blend op
private BinaryPixelOp multiplyOp = LayerBlendModeUtil.CreateCompositionOp(LayerBlendMode.Multiply);

protected override void OnDispose(bool disposing)
{
    // Release any surfaces or effects you've created.
    if (cloudsEffect != null) cloudsEffect.Dispose();
    cloudsEffect = null;
    base.OnDispose(disposing);
}

void PreRender(Surface dst, Surface src)
{
    cloudsProps = cloudsEffect.CreatePropertyCollection();
    PropertyBasedEffectConfigToken CloudsParameters = new PropertyBasedEffectConfigToken(cloudsProps);
    CloudsParameters.SetPropertyValue(CloudsEffect.PropertyNames.Scale, Amount1);
    CloudsParameters.SetPropertyValue(CloudsEffect.PropertyNames.Power, Amount2);
    CloudsParameters.SetPropertyValue(CloudsEffect.PropertyNames.BlendMode, Amount3);
    CloudsParameters.SetPropertyValue(CloudsEffect.PropertyNames.Seed, (int)Amount4);
    cloudsEffect.SetRenderInfo(CloudsParameters, new RenderArgs(dst), new RenderArgs(src));
}

// Here is the main render loop function
void Render(Surface dst, Surface src, Rectangle rect)
{
    // Call the Clouds function using Black and White
    cloudsEffect.Render(new Rectangle[1] {rect},0,1);

    // Now in the main render loop, the dst canvas has a render of clouds
    for (int y = rect.Top; y < rect.Bottom; y++)
    {
        if (IsCancelRequested) return;
        for (int x = rect.Left; x < rect.Right; x++)
        {
            ColorBgra CurrentPixel = dst[x,y];

            CurrentPixel = multiplyOp.Apply(src[x,y], CurrentPixel);

            dst[x,y] = CurrentPixel;
        }
    }
}

 

Link to comment
Share on other sites

48 minutes ago, Pixey said:

@emyabdel Welcome to PDN :)

 

There are a number of ways to do this.

 

You could use Custom Mini Brushes and download Splatter Brushes from Brush easy, or you could also use Brush Factory.

 

I made a simple star with 'splats' by making a solid black star, using the Shapes Tool and then, on a new layer, added the splats - using Brush Factory.

 

star.png

thank you i will try this

Link to comment
Share on other sites

Sorry, but I’m away from my computer today and I can’t do that from my phone. 

 

But, here is some instructions on what to do with a CodeLab script (written for a newbie):

 

https://forums.getpaint.net/topic/111233-codelab-for-average-users-a-laymans-guide/

 

Link to comment
Share on other sites

Unfortunately this tutorial is missing the images. It might give you a starting point:

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...