# Paneling Effect Plugin (ymd:100718)

## Recommended Posts

For me it's in Distort

AHA!

Found it in "DÃ©former"!

Thx a lot

##### Share on other sites
For me it's in Distort

AHA!

Found it in "DÃ©former"!

Thx a lot

No prob 8)

##### Share on other sites
For me it's in Distort

AHA!

Found it in "DÃ©former"!

Thx a lot

No prob 8)

##### Share on other sites
`...PixD.R = (byte)((float)(Pix1.R + Pix2.R + 0.5f)/2.0f);...`

What does adding 0.5f do? It seems that this kinda makes the results a little brighter, is that right? Thats why I initially thought of Lighten.

##### Share on other sites
`...PixD.R = (byte)((float)(Pix1.R + Pix2.R + 0.5f)/2.0f);...`

What does adding 0.5f do? It seems that this kinda makes the results a little brighter, is that right? Thats why I initially thought of Lighten.

##### Share on other sites
`...PixD.R = (byte)((float)(Pix1.R + Pix2.R + 0.5f)/2.0f);...`

What does adding 0.5f do? It seems that this kinda makes the results a little brighter, is that right? Thats why I initially thought of Lighten.

...initialy for rounding!

(3 + 2) / 2 = 2.5 ; integer is 2

(3 + 2 + 0.5) / 2 = 2.75 ; integer is 2

Conclusion: It's useless! (wrong formula!)

It's should be:

(3 + 2) / 2 + 0.5 = 2.5 + 0.5 = 3.0 ; integer =3;

(2 + 2) / 2 + 0.5 = 2.0 + 0.5 = 2.5 ; integer =2;

##### Share on other sites
`...PixD.R = (byte)((float)(Pix1.R + Pix2.R + 0.5f)/2.0f);...`

What does adding 0.5f do? It seems that this kinda makes the results a little brighter, is that right? Thats why I initially thought of Lighten.

...initialy for rounding!

(3 + 2) / 2 = 2.5 ; integer is 2

(3 + 2 + 0.5) / 2 = 2.75 ; integer is 2

Conclusion: It's useless! (wrong formula!)

It's should be:

(3 + 2) / 2 + 0.5 = 2.5 + 0.5 = 3.0 ; integer =3;

(2 + 2) / 2 + 0.5 = 2.0 + 0.5 = 2.5 ; integer =2;

##### Share on other sites

MadJik, I just realized that your code, w/ your average setting, is the same as:

1. duplicating your image.

2. runny BB's helper on top layer.

3. setting top layer opacity to 50%.

Would it be easier to code this by duplicating the source, running the helper effect and the altering the opacity?

##### Share on other sites
MadJik, I just realized that your code, w/ your average setting, is the same as:

1. duplicating your image.

2. runny BB's helper on top layer.

3. setting top layer opacity to 50%.

Would it be easier to code this by duplicating the source, running the helper effect and the altering the opacity?

I think it's already the way it works pixel per pixel!

##### Share on other sites

I get it.

I'll stop asking dumb questions now.

##### Share on other sites
I don't know how The Lighten blending mode works!

Pixel Destination = (Pixel1 + Pixel2) /2

Sorry, if it's too late

I find some info (with graphics, examples & formulas) about "blending modes" here:

http://www.pegtop.net/delphi/articles/blendmodes/

&

Thanks! Your plugin very useful! (as all others).

thank boss

##### Share on other sites

updated for paint.net v3.20 see the first post...

##### Share on other sites

New version... Check out the first post!

##### Share on other sites

Or you can do this:

##### Share on other sites

Halp!!!1111one

It's not in my distort menu. and I can't find it anywhere in any menus

## Join the conversation

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

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

Only 75 emoji are allowed.