• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 292
  • Last Modified:

Blend Two Images

Hi

Have a new Image question.
I have two images, background(image1) & foreground(image2). Image2 contains transparent areas. Now i want to blend this 2 images to 1 image. The background image must be seen through the foregrounds image transparent areas. How?
0
SvanteMusic
Asked:
SvanteMusic
1 Solution
 
User137Commented:
Is this to be done real-time, how fast?

DelphiX and Graphics32 can alpha-blend 2 images pretty fast and both are free.

If speed doesn't matter (or don't want any additional components), the theory is to get R,G,B values from both images one pixel at the time and calculate the result from pixel(x,y) at Image1 and pixel(x,y) at Image2.
0
 
ginsonicCommented:
Whay don't use you Graphic32 library ? Is freeware with source code and a lots of sample codes. Use layers.

http://www.g32.org/graphics32/index.html
0
 
SvanteMusicAuthor Commented:
This will be with two images (can be diffrent size, but must be stretched to same size)

The foreground must cover the background except the transparent areas.

Its not a must to be fast procedure.
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
ginsonicCommented:
I repeate, use Graphic32 library. Do exactly what you wish.And is very fast.
0
 
CleanupPingCommented:
SvanteMusic:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
kacorretiredCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area for this question:
       to accept ginsonic's answer
Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Some days and here is the Christmas Time. I wish good luck and good health for you all and for your loved ones

kacor
EE Cleanup Volunteer
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now