Here you have an updated version of the the SaveForelayer example:
There is one BitmapEx object for each image with it's DrawerEx:
- bmpBackground holds the background image
- drwBackground allows drawing onto the background image
- bmpForelayer holde the forelayer image
- drwForelayer allows drawing onto the forelayer image
- bmpImage holds the combination of both above images
- drwImage allows drawing onto it
two more DrawerEx objects
- drwMain drawer to draw onto the form's backgound
- drwMainForelayer drawer to draw anto the form's forelayer
Run the program and:
- click on 'Draw on forelayer' draws onto bmpForelayer and copies it to the form's forelayer
- click on 'Erase forelayer' erases the form's forelayer
- click an 'Add forelayer on background' copies both bmpBackground and bmpForelayer on bmpImage
Now you can show on the form all 3 bitmaps.
- Show both shows bmpImage
- Show background shows bmpBackground
- Show forelayer shows the forelayer
You can save the 3 imagaes to files.
Then with 'Transfer both on background' you transfer bmpImage to bmpBackground.
Best regards.
|