Image synthesis principle

Source: Internet
Author: User

Labels: Java image and image synthesis transparency

Blog purpose: Use graphs to speak

Auxiliary text description:

Purpose: display an image in a specified area. The other part is transparent.

Preparation: Prepare two images A and B. The display part of A is black and the transparent part is white. The display part of B remains unchanged, and the transparent part is filled with black.

Process: Perform the and operation on the image and the background. The displayed area is black. Then, perform the XOR operation on the Image B and the black area. In this way, you can get a transparent background image.

Principle: All data in the computer is 0 and 1. If we use RGB to represent the color, each of which is 8-bit binary, then the white color is 24-bit 1, and the black color is 24-Bit 0. when white and other colors X are used as the and operation, the color x is obtained. In the XOR operation, 0 and any color x are calculated as color x.

Zookeeper

Image synthesis principle

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.