Method and device for realizing page mask
An implementation method and masking technology, applied in the direction of texture/color, editing/combining graphics or text, etc., can solve the problems of complex implementation method and increase maintenance workload, and achieve the effect of reducing maintenance workload and simple implementation method.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0058] The embodiment of the present invention provides a method for implementing a page mask, see image 3 , the method flow includes:
[0059] 101: Obtain page information of a page that needs to display a mask.
[0060] Wherein, the page information includes the height and width of the page where the mask needs to be displayed, and the position area of at least one page element that needs to be displayed through the mask hollowing out on the page.
[0061] 102: Draw a corresponding hollow mask on the page according to the page information, so as to display the page element through the hollow position on the mask.
[0062]The beneficial effect brought by the above method provided by this embodiment is: by first obtaining the page information of the page that needs to display the mask; the page information includes the height, width, and at least one of the pages that need to display the mask The position area of the page element displayed through the mask hollowing out...
Embodiment 2
[0064] The embodiment of the present invention provides a method for implementing a page mask, see Figure 4 ~ Figure 5 , the method flow includes:
[0065] 201: Obtain page information of a page that needs to display a mask.
[0066] Wherein, the page information includes the height and width of the page where the mask needs to be displayed, and the position area of at least one page element that needs to be displayed through the mask hollowing out on the page.
[0067] Wherein, the page to be displayed with the mask may be any page displayed by the application client (such as a browser). Generally, the page mask is suitable for arranging the home page displayed on the application client. Specifically, the height and width of the page that needs to display the mask can be obtained from the page file of the application.
[0068] Wherein, each page includes several page elements, such as a background, a title bar, action buttons, labels and icons, and the like. According ...
Embodiment 3
[0094] The embodiment of the present invention provides a method for implementing a page mask, see Figure 6 , the method flow includes:
[0095] 301: Same as 201 in Embodiment 2 of the present invention, and will not be described in detail here.
[0096] 302: Draw a corresponding hollow mask on the page according to the page information, so as to display page elements through the hollow positions on the mask.
[0097] Further, this step includes:
[0098] 3021: Draw a mask whose height and width are respectively the height and width of the page on the page.
[0099] Specifically, this step is the same as 2021 in Embodiment 2 of the present invention, and will not be described in detail here.
[0100] 3022: Obtain an area on the mask that overlaps with a position area in the page of at least one page element that needs to be displayed through the mask.
[0101] Specifically, this step is the same as 2022 in Embodiment 2 of the present invention, and will n...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 