摘要 |
A method for determining transparency in image extraction creates a first mask bitmap by combining a first image and a second image, wherein the first image and the second image have the same size and are the same except for transparent areas. A second mask bitmap is created which displaces pixels of first RGB values in the first image to second RGB values. The first mask bitmap is applied to the second mask bitmap by performing an 'OR' operation on the first and second mask bitmaps. Pixels in the resulting bitmap of the 'OR' operation which have the first RGB values are transparent. Pixels in the resulting bitmap of the 'OR' operation, corresponding to the pixels in the first image that had the first RGB values, have the second RGB values. Pixels are identified in the resulting bitmap of said 'OR' operation which have said first RGB values as transparent.
|