Paint.NET

Welcome to the Paint.NET forum!
It is currently Sun Nov 22, 2009 10:47 am

All times are UTC


Forum rules


Questions or problems with plugin installation? Click here.



Post new topic Reply to topic  [ 78 posts ]  Go to page 1, 2, 3, 4, 5, 6  Next
Author Message
 Post subject: Alpha Mask Import Plugin (2.0)
PostPosted: Sat Sep 23, 2006 2:37 am 
Offline
User avatar

Joined: Wed Nov 30, 2005 11:40 pm
Posts: 1267
Location: Middle Tennessee
Alpha Mask -- 2.0

Attachment:
File comment: DLL .zip
AlphaMask.zip [6.48 KiB]
Downloaded 1598 times

Version 2.0 adds the ability to use whatever image is on your clipboard.
The supported image types at the moment is kinda sketchy, but the kicker is it works for stuff copied inside Paint.NET, which is 99% of this plugin's use, anyway.

This plugin allows you to import an image from a file or the clipboard and make it an alpha mask. If the image has color, it will be converted to greyscale.

Clipboard idea courtesy BoltBait. <3

Old description / links:
Hidden Content: Show 

_________________
Image
Kitteh all growed up :_(


Last edited by Illnab1024 on Sun Oct 18, 2009 3:53 am, edited 7 times in total.

Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 24, 2006 12:40 am 
Offline
User avatar

Joined: Wed Jul 19, 2006 11:20 pm
Posts: 54
Location: Brasil
Err... Link cracked...


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 24, 2006 1:01 am 
Offline
User avatar

Joined: Wed Nov 30, 2005 11:40 pm
Posts: 1267
Location: Middle Tennessee
Works fine here...Try it again...Maybe its overseas connection problems...

_________________
Image
Kitteh all growed up :_(


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 24, 2006 10:32 am 
Offline
User avatar

Joined: Fri May 12, 2006 6:49 pm
Posts: 1134
Location: Leiria, Portugal
Seriously, I can't see any use of this at all, I don't even KNOW what it does, I thought we could be able to pick a color, but to pick a FILE (WTH?)

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 24, 2006 2:21 pm 
Offline
User avatar

Joined: Wed Jul 19, 2006 11:20 pm
Posts: 54
Location: Brasil
Illnab1024 wrote:
Works fine here...Try it again...Maybe its overseas connection problems...

OK!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 26, 2006 6:01 pm 
Offline
Site Admin
User avatar

Joined: Wed Jul 20, 2005 4:22 am
Posts: 3825
Location: Wisconsin
trickman wrote:
Seriously, I can't see any use of this at all, I don't even KNOW what it does, I thought we could be able to pick a color, but to pick a FILE (WTH?)

Actually, this sounds like teh roxx! (Alright, enough with the stupid speek...)

See trickman, if you were only able to pick a color, then the whole layer would be partly transparent, same as adjusting the layer's opacity slider. This allows you to create a mask, an image whose intensity values change the opacity of a layer in your image.

So, if you wanted to make a shape with the curve tool and fill it with a gradient, but you didn't want the rough edges you get with the Magic Wand alternative, you could create the shape in a new image in white with a background of black, and save it as a .png. Then make your gradient in a new image, and use this plug-in to import the mask you just saved. The gradient would show in the white area, the shape you created in the original image, and the rest would be transparent!

I'm not on my laptop (and I'm on a dial-up connection (Boo! (Ooh! Parentheses inside of parentheses!))), but I'll certainly be picking this up! Thank you Illnab! You get to be my new hero! :wink:

_________________
/ My Website | My Weblog | My deviantART \
Image
Please, get your head out of your ... the sand. - pyrochild


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 26, 2006 6:42 pm 
Offline
User avatar

Joined: Fri May 12, 2006 6:49 pm
Posts: 1134
Location: Leiria, Portugal
Oh so that's what it does =) Thanks =)

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 26, 2006 8:48 pm 
Offline
User avatar

Joined: Wed Nov 30, 2005 11:40 pm
Posts: 1267
Location: Middle Tennessee
Lol. You're my hero too because I was too lazy to respond. But, over half the code is from pleska, so thank him too (mainly because I was too lazy to make it myself, and available resources are the easiest way.)

Bug reports are appreciated, too.

_________________
Image
Kitteh all growed up :_(


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 27, 2006 9:44 pm 
Offline
Site Admin
User avatar

Joined: Wed Jul 20, 2005 4:22 am
Posts: 3825
Location: Wisconsin
Alright then, thanks pleska too! :D

Anyway, I grabbed this yesterday, and it works like a charm! I thank you from the bottom of my wittle heart! Until PDN gets bona fide layer masks, this is a wholly acceptable substitute.

I was able to make it crash, though. It was partly my fault, but I figure I should let you know. I'm really not sure this is a problem with your plugin, since the same thing happens with the Photo Flood Fill plugin, but rather an unhandled exception with PDN...

I made my image, then typed gravitymask1.png in the name box but forgot to change the file type drop-down from PDN, so it was in effect a corrupt PNG. Before I realized my mistake, I tried loading it in the alpha mask importer, and PDN threw a System.OutOfMemory exception.

Again, I don't really know if there's anything that can be done within the Effects API to catch this, so I'll be posting this on Bugs - Troubleshooting as well.

Regardless, my high praise still stands. Thank you much! :D

_________________
/ My Website | My Weblog | My deviantART \
Image
Please, get your head out of your ... the sand. - pyrochild


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 27, 2006 9:46 pm 
Offline
User avatar

Joined: Wed Nov 30, 2005 11:40 pm
Posts: 1267
Location: Middle Tennessee
Nah...I think this something that can be handled in the plugin. Give me a minute and I will release an update (also with the ability to invert your mask in case you screwed up)...

_________________
Image
Kitteh all growed up :_(


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 01, 2006 5:30 pm 
Offline
User avatar

Joined: Wed Nov 30, 2005 11:40 pm
Posts: 1267
Location: Middle Tennessee
Letting you know I released 1.1. Enjoy!


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 30, 2006 2:05 am 
Offline

Joined: Wed Dec 06, 2006 11:44 pm
Posts: 89
I finally downloaded the alphamask the other day and I don't know how I ever got along without it. The mask and the feather plugin are my two favorite plugins.
I have one question about the mask though. What's the "mask file" feature used for?
I've been saving my used masks into a folder I named "mask," and I had assumed that the mask file would be used for pulling up those previously used masks.
I was going to reuse an old mask for a second time when I finally used the mask file yesterday. What I got was this strange tiled thing with four smaller copies of the original cutout area. What's up with that?
Exactly how is the mask file meant to be used? Thanks in advance.

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 30, 2006 8:45 am 
Offline
User avatar

Joined: Wed Nov 30, 2005 11:40 pm
Posts: 1267
Location: Middle Tennessee
Well, if the mask file image is smaller in resolution than the image it is applied to, it is meant to tile over the image...

Hmm...to your first question - that is the label input for the File you import for the alpha mask

And the mask file should be [Doesn't have to be - it is converted to greyscale when loaded] a grayscale image where a pixel's intensity decides the alpha of the corresponding image in the selection...

_________________
Image
Kitteh all growed up :_(


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 30, 2006 1:28 pm 
Offline

Joined: Wed Dec 06, 2006 11:44 pm
Posts: 89
Thanks for responding so quickly Illnab1024.
Let me just tell you what I'm trying to do.
I want to reuse an old mask on the same picture so that I don't have to apply the mask again from scratch.
I've tried every conceivable way to get a saved mask to fit over the original picture, but I always get the tiled mask with several smaller images on it. Those images also don't contain the color I used for the mask.
Anyway, I've tried using the mask file to pull up an old mask, and then pulling up the original picture on a second layer.
That doesn't work. I've also tried to do it visa versa with no luck either.
Maybe I'm not saving the mask correctly. When I save a mask, I first cut out the background. I'm then left with an image of the masked area alone. I simply highlight the layer with the used mask and save it to a folder I have set aside for that purpose.
Perhaps none of this is possible and you just have to mask from scratch every time.
Thanks again.

_________________
Image


Last edited by korteck on Tue Jan 02, 2007 5:17 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 30, 2006 7:40 pm 
Offline
User avatar

Joined: Wed Nov 30, 2005 11:40 pm
Posts: 1267
Location: Middle Tennessee
The mask should be the same size as the image it is gonna be applied over for it not to be tiled

_________________
Image
Kitteh all growed up :_(


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 78 posts ]  Go to page 1, 2, 3, 4, 5, 6  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 41 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Hosted by Forumer & phpBB

Get your Forumer™ today!

Adding a forum to your website is a great way to get return visitors.

» Get your own Free Forum!

Terms of Use

Privacy Policy

Report Abuse

Copyright © 2003-2009 Forumer. All Rights Reserved. | Copyright © paint.NET