Welcome to GraphicForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Mask from transparent Photoshop image

 
   Graphic Forums (Home) -> General Discussions RSS
Next:  2 Flash-animation tutorial for bigener(Video)  
Author Message
Bob Pierce

External


Since: Feb 13, 2006
Posts: 16



(Msg. 1) Posted: Mon Mar 24, 2008 9:01 pm
Post subject: Mask from transparent Photoshop image
Archived from groups: macromedia>flash (more info?)

Targeting player 7, is there a straightforward way to make a shape from the
non-transparent areas of an imported bitmap? By straightforward I mean other
than breaking apart the bitmap and selecting the non-transparent areas with the
magic wand and deleting them. I have a number of product images with
transparent backgrounds and I want to make masks the same shape as the
products.

 >> Stay informed about: Mask from transparent Photoshop image 
Back to top
Login to vote
Horus

External


Since: Mar 25, 2008
Posts: 5



(Msg. 2) Posted: Tue Mar 25, 2008 7:23 am
Post subject: Re: Mask from transparent Photoshop image [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hello Bob,

> Targeting player 7, is there a straightforward way to make a shape
> from the non-transparent areas of an imported bitmap? By
> straightforward I mean other than breaking apart the bitmap and
> selecting the non-transparent areas with the magic wand and deleting
> them. I have a number of product images with transparent backgrounds
> and I want to make masks the same shape as the products.
>

Use "Blend" option for MC ("Alpha" or "Erase").

 >> Stay informed about: Mask from transparent Photoshop image 
Back to top
Login to vote
Horus

External


Since: Mar 25, 2008
Posts: 5



(Msg. 3) Posted: Tue Mar 25, 2008 7:43 am
Post subject: Re: Mask from transparent Photoshop image [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> Use "Blend" option for MC ("Alpha" or "Erase").

+ with "Layer" blend a top.
 >> Stay informed about: Mask from transparent Photoshop image 
Back to top
Login to vote
rlc5611

External


Since: Jul 05, 2004
Posts: 140



(Msg. 4) Posted: Tue Mar 25, 2008 8:13 am
Post subject: Re: Mask from transparent Photoshop image [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Back to top
Login to vote
Horus

External


Since: Mar 25, 2008
Posts: 5



(Msg. 5) Posted: Tue Mar 25, 2008 11:35 am
Post subject: Re: Mask from transparent Photoshop image [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hello rlc5611,

> For Flash 7?

You are right. I've missed this one...
Certainly, this is available only for 8+
 >> Stay informed about: Mask from transparent Photoshop image 
Back to top
Login to vote
Bob Pierce

External


Since: Feb 13, 2006
Posts: 16



(Msg. 6) Posted: Tue Mar 25, 2008 7:32 pm
Post subject: Re: Mask from transparent Photoshop image [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks for the input. Maybe it's time to move on from Flash 7! The blend mode
approach doesn't quite do what I want - unless I've misunderstood something.
This is what I'm trying to do:

this.blendMode = "layer";
bitmap_mc.blendMode = "erase";
maskee_mc.setMask(bitmap_mc);

Without the 3rd line, bitmap_mc successfully knocks it's own shape out of mcs
below it. But when set as a mask it knocks out it's containing rectangle. If
instead of blend I manually delete the "transparent" areas from the bitmap I
get the required result. It's difficult to understand the difference between
the bitmap I produce this way and the original imported .psd file with the same
transparent areas.
 >> Stay informed about: Mask from transparent Photoshop image 
Back to top
Login to vote
Horus

External


Since: Mar 25, 2008
Posts: 5



(Msg. 7) Posted: Wed Mar 26, 2008 8:14 am
Post subject: Re: Mask from transparent Photoshop image [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hello Bob,

> Thanks for the input. Maybe it's time to move on from Flash 7! The
> blend mode approach doesn't quite do what I want - unless I've
> misunderstood something. This is what I'm trying to do:
>
> this.blendMode = "layer";
> bitmap_mc.blendMode = "erase";
> maskee_mc.setMask(bitmap_mc);
> Without the 3rd line, bitmap_mc successfully knocks it's own shape
> out of mcs below it. But when set as a mask it knocks out it's
> containing rectangle. If instead of blend I manually delete the
> "transparent" areas from the bitmap I get the required result. It's
> difficult to understand the difference between the bitmap I produce
> this way and the original imported .psd file with the same transparent
> areas.


You are absolutely right about concealing difference between blend feature
and actual transparency in imported images (.psd, .png).
However, I suppose this was just a first step of adobe (initially macromedia
team) back to Director ideas of masking (it was perfectly marvelous there).
When you need to mask an image with some predefined mask it's much easier
to use images that already have transparency (.png is the choice). Nevertheless,
think of situation when you are dynamically (via AS) building complex mask:
you can use BitmapData class to scan, for example, an image and build your
mask on the basis of this scan with further option to apply different blending
modes on the fly. Need more vivid example? No problemo: for instace, you
are making some dynamic gallery or e-shop frontend, all your photos are initially
made for easier keying feature (on some solid color background. most often
green or blue), and you need to use these photos to be displayed semi-transparent.
Of couse, you can use photoshop (processing images like a sort of a robot...),
but you can use the method I've described above (letting you flash work over
the photos and making it possible for you to spend much more time with sweet
chicks d^_^b or beer, or whatever you like). The choice is yours )))
 >> Stay informed about: Mask from transparent Photoshop image 
Back to top
Login to vote
Bob Pierce

External


Since: Feb 13, 2006
Posts: 16



(Msg. 8) Posted: Wed Mar 26, 2008 1:41 pm
Post subject: Re: Mask from transparent Photoshop image [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Interesting! But an imported .png with transparency doesn't work as a mask. Are you saying that by using BitmapData class I can convert it to something that does?
 >> Stay informed about: Mask from transparent Photoshop image 
Back to top
Login to vote
Horus

External


Since: Mar 25, 2008
Posts: 5



(Msg. 9) Posted: Wed Mar 26, 2008 2:43 pm
Post subject: Re: Mask from transparent Photoshop image [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hello Bob,

> Interesting! But an imported .png with transparency doesn't work as a
> mask. Are you saying that by using BitmapData class I can convert it
> to something that does?

Exactly. Reading an image bit-by-bit -> processing them for your purpose
-> creating necessary graphics (for masking via blend) -> applying blending
) I personally didn't run the whole process above, but separately - yes )
 >> Stay informed about: Mask from transparent Photoshop image 
Back to top
Login to vote
Display posts from previous:   
   Graphic Forums (Home) -> General Discussions All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]