Search forums only
Search forums only
Adobe Creative Cloud
Downloading, Installing, Setting Up
Adobe Experience Cloud
Adobe Flash Player
Adobe Photoshop Lightroom
Adobe Photoshop Elements
Adobe Animate CC
Adobe Premiere Pro
Adobe After Effects
View all communities
Meet the experts
Learn our products
Get inspired in the lounge
Read the blog
Please enter a title.
You can not post a blank message. Please type your message and try again.
on Jul 14, 2006 6:58 AM by donaldhines
URGENT :one custom bitmap castmember made out of two ????
Jul 14, 2006 3:51 AM
I need join 2 bitmap castmember in one in followin way
I have a background image and image of a number (with alpha channel -
transparent outside of the number)
I need to place the number in the middle of the background image and create
a new castmember, that looks exactly, like number castmember is laying over
the background castmember
I tryed to do this with following code
bgImage = "bg1"
numImage = "numbers\9"
imageObject = image(20, 20, 32, 1)
newmember = new(#bitmap, member 10 of castLib 1)
newmember.image = imageObject
but number on created bitmap is copied along with its alpha channel, it
means a part of background is overwritten with transparent pixels from
How do I correct this problem, what was wrong?
How can I copy just not transparent pixals from number image and place them
onto background image?
Any help will be appreciated
This content has been marked as final.
Show 1 reply
Re: URGENT :one custom bitmap castmember made out of two ????
Jul 14, 2006 6:58 AM
in response to Newsgroup_User
I don't have an example for you, but try createMask() or createMatte() functions. For what your doing I think createMask() will work in conjunction with the #maskImage property. Something like this:
rect(5,5,member(numImage).width,member(numImage).height), imageObject.image.rect, \
[#maskImage:imageObject.image.createMask(), maskOffset:point(-10, -10)])
More Like This
Retrieving data ...