|
|
|||||
|
Creating the Background | |||||
|
First we create a Bitmap and draw our background onto it. [C#]
|
||||||
|
Creating the Foreground Image | |||||
|
Next we create the images we are going to draw onto our background. There are two parts here: the visible part and the alpha channel which defines a mask for the visible image. The visible part we set to yellow and then we insert an alpha channel using the SetAlpha function. [C#]
|
||||||
|
Drawing the Images | |||||
|
We now draw our image matted into the background. [C#]
|
||||||
|
Saving | |||||
|
Finally we save the Bitmap as a JPEG file. [C#]
|
||||||
|
Input and Output | |||||
|
These are the kinds of input image you might use and the kind of output image you might expect.
|