CN115601567A - Page color pickup method, device, computer equipment, storage medium and product - Google Patents
Page color pickup method, device, computer equipment, storage medium and product Download PDFInfo
- Publication number
- CN115601567A CN115601567A CN202211102786.9A CN202211102786A CN115601567A CN 115601567 A CN115601567 A CN 115601567A CN 202211102786 A CN202211102786 A CN 202211102786A CN 115601567 A CN115601567 A CN 115601567A
- Authority
- CN
- China
- Prior art keywords
- page
- color
- terminal
- target
- picture
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
- G06V10/56—Extraction of image or video features relating to colour
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Software Systems (AREA)
- Human Computer Interaction (AREA)
- Data Mining & Analysis (AREA)
- Multimedia (AREA)
- Processing Or Creating Images (AREA)
Abstract
Description
技术领域technical field
本申请涉及网页处理技术领域,尤其涉及一种页面颜色拾取方法、装置、计算机设备、存储介质及产品。The present application relates to the technical field of web page processing, in particular to a page color picking method, device, computer equipment, storage medium and product.
背景技术Background technique
在web应用快搭(低代码页面搭建平台)中,终端用户会对当前已配置的内容设置文字颜色,板块背景颜色等场景进行颜色拾取,并后续根据拾取到的颜色设计终端需要的个性化页面,以确保后续设计的页面的颜色统一性。In the web application quick build (low-code page building platform), the end user will set the text color of the currently configured content, the background color of the plate and other scenes to pick up the color, and then design the personalized page required by the terminal according to the picked up color , to ensure the color uniformity of the subsequent designed pages.
然而,发明人发现,当前在网页上进行颜色拾取通常是需要对网页进行截图得到网页图片,再将网页图片加载到图像处理软件中进行颜色提取,操作繁琐,拾取效率低下,一旦终端需要拾取不同网页上的多种颜色,将会导致终端因频繁操作而造成运行缓慢的情况发生。However, the inventors have found that the current color picking on the webpage usually needs to take a screenshot of the webpage to obtain the webpage picture, and then load the webpage picture into the image processing software for color extraction. The operation is cumbersome and the picking efficiency is low. Once the terminal needs to pick up different Multiple colors on the webpage will cause the terminal to run slowly due to frequent operations.
发明内容Contents of the invention
本申请提供一种页面颜色拾取方法、装置、计算机设备、存储介质及产品,用以解决当前页面的颜色提取操作繁琐,拾取效率低下,容易导致终端运行缓慢的问题。The present application provides a page color picking method, device, computer equipment, storage medium and product, which are used to solve the problems of cumbersome color picking operations for the current page, low picking efficiency, and slow running of the terminal.
第一方面,本申请提供一种页面颜色拾取方法,包括:In a first aspect, the present application provides a page color picking method, including:
获取目标页面并构建所述目标页面的页面图片,将覆盖有页面图片的目标页面展示在终端上,其中,所述目标页面是指用于被拾取颜色的网络页面;Obtaining the target page and constructing a page picture of the target page, and displaying the target page covered with the page picture on the terminal, wherein the target page refers to a web page for the picked color;
当监听到所述终端的指针在所述页面图片上移动或点击时,识别所述指针在所述页面图片上的指针位置,获取所述页面图片上与所述指针位置对应的指定像素的指定颜色值,将所述指定颜色值显示在所述终端上。When the pointer of the terminal is monitored to move or click on the page picture, identify the pointer position of the pointer on the page picture, and acquire the designation of the specified pixel corresponding to the pointer position on the page picture A color value, displaying the specified color value on the terminal.
上述方案中,所述获取目标页面并构建所述目标页面的页面图片,包括:In the above solution, the acquisition of the target page and the construction of the page picture of the target page include:
接收终端发送的拾取指令,将当前在所述终端的浏览器中展示的网络页面设为目标页面;receiving the picking instruction sent by the terminal, and setting the web page currently displayed in the browser of the terminal as the target page;
获取所述目标页面的渲染树,将所述渲染树中与预定义的拾取标签一致的渲染标签设为目标标签;Acquire the rendering tree of the target page, and set the rendering tag in the rendering tree that is consistent with the predefined picking tag as the target tag;
识别所述目标标签的中元素对象的类别,其中,所述类别反应了所述元素对象的来源;identifying the category of the element object in the target tag, wherein the category reflects the source of the element object;
若所述类别为HTML,则获取与所述渲染标签对应的DOM信息,根据所述DOM信息生成相应于所述目标标签的DOM图片,其中,所述类别为HTML表征了所述元素对象的来源为超文本标记语言;If the category is HTML, then obtain the DOM information corresponding to the rendering tag, and generate a DOM image corresponding to the target tag according to the DOM information, wherein the category being HTML represents the source of the element object is hypertext markup language;
若所述类别为CSS,则访问与所述目标标签中元素对象对应的源地址,将所述源地址中当前展示的图片设为CSS图片,其中,所述类别为CSS表征了所述元素对象的来源为层叠样式表。If the category is CSS, then access the source address corresponding to the element object in the target tag, and set the picture currently displayed in the source address as a CSS picture, wherein the category being CSS represents the element object The source of is Cascading Style Sheets.
上述方案中,所述将覆盖有页面图片的目标页面展示在终端上,包括:In the above solution, displaying the target page covered with the page picture on the terminal includes:
在所述渲染树中构建与所述目标标签关联的画布标签,将与所述目标标签对应的DOM图片或CSS图片插入所述画布标签;当所述渲染树中所有目标标签均已关联插入有DOM图片或CSS图片的画布标签时,将所述渲染树设为截图渲染树;其中,所述画布标签的渲染层级高于所述目标标签的渲染层级;Construct the canvas tag associated with the target tag in the rendering tree, insert the DOM image or CSS image corresponding to the target tag into the canvas tag; when all the target tags in the rendering tree have been associated and inserted When the canvas tag of a DOM picture or a CSS picture is used, the rendering tree is set as a screenshot rendering tree; wherein, the rendering level of the canvas tag is higher than the rendering level of the target tag;
将所述截图渲染树发送至所述终端并对所述截图渲染树进行渲染处理,用以将覆盖有所述DOM图片和/或所述CSS图片覆盖的目标页面展示在所述终端上。Sending the screenshot rendering tree to the terminal and performing rendering processing on the screenshot rendering tree, so as to display the target page covered with the DOM image and/or the CSS image on the terminal.
上述方案中,所述将覆盖有页面图片的目标页面展示在终端上之后,所述方法还包括:In the above solution, after the target page covered with the page picture is displayed on the terminal, the method further includes:
计算反映所述页面图片中所有像素的颜色均值的页面主色值,将所述页面主色值显示在所述终端上。Calculating a page dominant color value reflecting the color mean value of all pixels in the page picture, and displaying the page dominant color value on the terminal.
上述方案中,所述将覆盖有页面图片的目标页面展示在终端上之后,所述方法还包括:In the above solution, after the target page covered with the page picture is displayed on the terminal, the method further includes:
当监听到所述终端上的指针在所述页面图片上拉取拉选框时,计算反映所述拉选框中所有像素的颜色均值的框选主色值,将所述框选主色值显示在所述终端上。When the pointer on the terminal is monitored to pull the pull-out box on the page picture, calculate the selected main color value reflecting the color mean value of all pixels in the selected box, and select the main color value of the selected box displayed on said terminal.
上述方案中,所述将所述指定颜色值显示在所述终端上之后,所述方法还包括:In the above solution, after the specified color value is displayed on the terminal, the method further includes:
放大所述指定像素的尺寸得到指定放大像素,及放大所述页面图片上位于所述指定像素周边的邻接像素的尺寸得到邻接放大像素,将所述指定放大像素和邻接放大像素载入到预置在所述终端的放大框内,用以放大所述指定像素和所述邻接像素。enlarging the size of the specified pixel to obtain the specified enlarged pixel, and enlarging the size of the adjacent pixels located around the specified pixel on the page image to obtain the adjacent enlarged pixel, and loading the specified enlarged pixel and the adjacent enlarged pixel into the preset In the enlargement frame of the terminal, it is used to enlarge the specified pixel and the adjacent pixels.
上述方案中,所述将所述指定放大像素和邻接放大像素载入到预置在所述终端的放大框内,用以放大所述指定像素和所述邻接像素之后,所述方法还包括:In the above solution, after loading the designated enlarged pixel and adjacent enlarged pixels into the enlarged frame preset on the terminal to enlarge the designated pixel and the adjacent pixels, the method further includes:
计算反映所述指定像素和所述邻接像素的颜色均值的放大颜色值,将所述放大颜色值显示在所述终端上。calculating an enlarged color value reflecting the color mean value of the specified pixel and the adjacent pixels, and displaying the enlarged color value on the terminal.
第二方面,本申请提供一种页面颜色拾取装置,包括:In a second aspect, the present application provides a page color picking device, including:
截图覆盖模块,用于获取目标页面并构建所述目标页面的页面图片,将覆盖有页面图片的目标页面展示在终端上,其中,所述目标页面是指用于被拾取颜色的网络页面;The screenshot covering module is used to obtain the target page and construct the page picture of the target page, and display the target page covered with the page picture on the terminal, wherein the target page refers to a network page for being picked up;
颜色拾取模块,用于当监听到所述终端的指针在所述页面图片上移动或点击时,识别所述指针在所述页面图片上的指针位置,获取所述页面图片上与所述指针位置对应的指定像素的指定颜色值,将所述指定颜色值显示在所述终端上。The color picking module is used to identify the pointer position of the pointer on the page picture when the pointer of the terminal is monitored to move or click on the page picture, and obtain the position of the pointer on the page picture and the position of the pointer and displaying the specified color value on the terminal corresponding to the specified color value of the specified pixel.
上述方案中,所述截图覆盖模块包括:In the above solution, the screenshot coverage module includes:
目标确定单元,用于接收终端发送的拾取指令,将当前在所述终端的浏览器中展示的网络页面设为目标页面;The target determination unit is configured to receive the picking instruction sent by the terminal, and set the web page currently displayed in the browser of the terminal as the target page;
标签确定单元,用于获取所述目标页面的渲染树,将所述渲染树中与预定义的拾取标签一致的渲染标签设为目标标签;a tag determining unit, configured to obtain a rendering tree of the target page, and set a rendering tag in the rendering tree consistent with a predefined picked tag as a target tag;
类别识别单元,用于识别所述目标标签的中元素对象的类别,其中,所述类别反应了所述元素对象的来源;a category identification unit, configured to identify the category of the element object in the target tag, wherein the category reflects the source of the element object;
DOM图片单元,用于获取与所述渲染标签对应的DOM信息,根据所述DOM信息生成相应于所述目标标签的DOM图片,其中,所述类别为HTML表征了所述元素对象的来源为超文本标记语言;A DOM image unit, configured to acquire DOM information corresponding to the rendering tag, and generate a DOM image corresponding to the target tag according to the DOM information, wherein the category being HTML indicates that the source of the element object is a hypertext text markup language;
CSS图片单元,用于访问与所述目标标签中元素对象对应的源地址,将所述源地址中当前展示的图片设为CSS图片,其中,所述类别为CSS表征了所述元素对象的来源为层叠样式表。A CSS picture unit, used to access the source address corresponding to the element object in the target tag, and set the picture currently displayed in the source address as a CSS picture, wherein the category is CSS to represent the source of the element object for Cascading Style Sheets.
上述方案中,所述截图覆盖模块还包括:In the above solution, the screenshot coverage module also includes:
渲染树构建单元,用于在所述渲染树中构建与所述目标标签关联的画布标签,将与所述目标标签对应的DOM图片或CSS图片插入所述画布标签;当所述渲染树中所有目标标签均已关联插入有DOM图片或CSS图片的画布标签时,将所述渲染树设为截图渲染树;其中,所述画布标签的渲染层级高于所述目标标签的渲染层级;a rendering tree construction unit, configured to construct a canvas tag associated with the target tag in the rendering tree, and insert a DOM image or a CSS image corresponding to the target tag into the canvas tag; when all When the target tags have been associated with the canvas tags inserted with DOM pictures or CSS pictures, the rendering tree is set as a screenshot rendering tree; wherein, the rendering level of the canvas tag is higher than the rendering level of the target tag;
截图覆盖单元,用于将所述截图渲染树发送至所述终端并对所述截图渲染树进行渲染处理,用以将覆盖有所述DOM图片和/或所述CSS图片覆盖的目标页面展示在所述终端上。A screenshot covering unit, configured to send the screenshot rendering tree to the terminal and perform rendering processing on the screenshot rendering tree, so as to display the target page covered with the DOM image and/or the CSS image on the on the terminal.
上述方案中,所述页面颜色拾取装置还包括:In the above scheme, the page color picking device also includes:
页面主色模块,用于计算反映所述页面图片中所有像素的颜色均值的页面主色值,将所述页面主色值显示在所述终端上。The page dominant color module is configured to calculate a page dominant color value reflecting the color mean value of all pixels in the page picture, and display the page dominant color value on the terminal.
上述方案中,所述页面颜色拾取装置还包括:In the above scheme, the page color picking device also includes:
框选主色模块,用于在监听到所述终端上的指针在所述页面图片上拉取拉选框时,计算反映所述拉选框中所有像素的颜色均值的框选主色值,将所述框选主色值显示在所述终端上。The frame selection main color module is used to calculate the frame selection main color value reflecting the color mean value of all pixels in the pull box when the pointer on the terminal is monitored to pull the box on the page picture, and displaying the frame-selected primary color values on the terminal.
上述方案中,所述页面颜色拾取装置还包括:In the above scheme, the page color picking device also includes:
放大显示模块,用于放大所述指定像素的尺寸得到指定放大像素,及放大所述页面图片上位于所述指定像素周边的邻接像素的尺寸得到邻接放大像素,将所述指定放大像素和邻接放大像素载入到预置在所述终端的放大框内,用以放大所述指定像素和所述邻接像素。Enlarging and displaying module, for enlarging the size of the specified pixel to obtain the specified enlarged pixel, and enlarging the size of adjacent pixels located around the specified pixel on the page picture to obtain the adjacent enlarged pixel, and the specified enlarged pixel and the adjacent enlarged pixel The pixels are loaded into a magnification frame preset in the terminal to magnify the specified pixel and the adjacent pixels.
上述方案中,所述页面颜色拾取装置还包括:In the above scheme, the page color picking device also includes:
放大计算模块,用于计算反映所述指定像素和所述邻接像素的颜色均值的放大颜色值,将所述放大颜色值显示在所述终端上。An enlargement calculation module, configured to calculate an enlarged color value reflecting the color average value of the specified pixel and the adjacent pixels, and display the enlarged color value on the terminal.
第三方面,本申请提供一种计算机设备,包括:处理器以及与所述处理器通信连接的存储器;In a third aspect, the present application provides a computer device, including: a processor and a memory communicatively connected to the processor;
所述存储器存储计算机执行指令;the memory stores computer-executable instructions;
所述处理器执行所述存储器存储的计算机执行指令,以实现上述的页面颜色拾取方法。The processor executes the computer-executable instructions stored in the memory, so as to realize the above-mentioned page color picking method.
第四方面,本申请提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,所述计算机执行指令被处理器执行时用于实现上述的页面颜色拾取方法。In a fourth aspect, the present application provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and when executed by a processor, the computer-readable instructions are used to implement the above page color picking method.
第五方面,本申请提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现上述的页面颜色拾取方法。In a fifth aspect, the present application provides a computer program product, including a computer program, and when the computer program is executed by a processor, the above-mentioned page color picking method is implemented.
本申请提供的页面颜色拾取方法、装置、计算机设备、存储介质及产品,通过获取目标页面并构建所述目标页面的页面图片,将覆盖有页面图片的目标页面展示在终端上的方式,以便于后续终端能够从页面图片上获取像素中的颜色值,同时,将页面图片覆盖在目标页面上的方式,使得终端上展示的目标页面的内容和样式与原未覆盖有页面图片的目标页面是一致的,以便于终端进行颜色拾取的操作。The page color picking method, device, computer equipment, storage medium and product provided in this application, by acquiring the target page and constructing the page picture of the target page, display the target page covered with the page picture on the terminal, so as to facilitate Subsequent terminals can obtain the color value in the pixel from the page picture, and at the same time, the way of overlaying the page picture on the target page makes the content and style of the target page displayed on the terminal consistent with the original target page that is not covered with a page picture , so that the terminal can perform color picking operations.
通过识别所述指针在所述页面图片上的指针位置,获取所述页面图片上与所述指针位置对应的指定像素的指定颜色值的方式,使终端用户仅需通过移动或点击指针即可拾取目标页面上各组成部分所使用的颜色,提高了页面颜色的拾取效率,避免了终端因在不同网页上拾取多种颜色而导致的运行缓慢的问题出现,并且有利益终端用户后续根据拾取到的颜色进行进一步的设计,确保了后续设计中颜色的统一性。By identifying the pointer position of the pointer on the page picture, the specified color value of the specified pixel corresponding to the pointer position on the page picture is obtained, so that the terminal user can pick up the color value only by moving or clicking the pointer. The colors used by each component on the target page improve the page color picking efficiency, avoid the problem of slow operation caused by the terminal picking up multiple colors on different web pages, and benefit the end user to follow up based on the picked up colors. The color is further designed to ensure the unity of color in subsequent designs.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description serve to explain the principles of the application.
图1为本申请实施例提供的一种应用场景示意图;FIG. 1 is a schematic diagram of an application scenario provided by an embodiment of the present application;
图2为本申请实施例提供的一种页面颜色拾取方法的流程示意图;FIG. 2 is a schematic flowchart of a page color picking method provided in an embodiment of the present application;
图3为本申请实施例提供的一种页面颜色拾取方法的实施例2的流程图;Fig. 3 is a flow chart of
图4为本申请实施例提供的一种页面颜色拾取方法的实施例3的流程图;FIG. 4 is a flow chart of
图5为本申请实施例提供的一种页面颜色拾取方法的实施例4的流程图;FIG. 5 is a flow chart of Embodiment 4 of a page color picking method provided by the embodiment of the present application;
图6为本发明提供的一种页面颜色拾取装置的程序模块示意图;Fig. 6 is a schematic diagram of program modules of a page color picking device provided by the present invention;
图7为本发明计算机设备中计算机设备的硬件结构示意图。FIG. 7 is a schematic diagram of the hardware structure of the computer device in the computer device of the present invention.
通过上述附图,已示出本申请明确的实施例,后文中将有更详细的描述。这些附图和文字描述并不是为了通过任何方式限制本申请构思的范围,而是通过参考特定实施例为本领域技术人员说明本申请的概念。By means of the above drawings, specific embodiments of the present application have been shown, which will be described in more detail hereinafter. These drawings and text descriptions are not intended to limit the scope of the concept of the application in any way, but to illustrate the concept of the application for those skilled in the art by referring to specific embodiments.
具体实施方式detailed description
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present application as recited in the appended claims.
请参阅图1,本申请具体的应用场景为:运行有页面颜色拾取方法的服务器2与终端3通信连接,终端3在浏览器中浏览网络页面时,通过向服务器2发送拾取指令,服务器2根据拾取指令将终端3当前浏览的网络页面确定为需要被拾取颜色的网络页面,并将其设为目标页面,服务器2还构建目标页面的页面图片,将覆盖有页面图片的目标页面展示在终端3上;当服务器2识别到终端3的指针在页面图片上移动或点击时,服务器2识别指针在页面图片上的指针位置,并获取页面图片上与指针位置对应的指定像素的指定颜色值,将指定颜色值显示在终端3上。Please refer to Fig. 1, the specific application scenario of the present application is: the
本申请提供的数据传输的方法,旨在解决现有技术的如上技术问题。The data transmission method provided in this application aims to solve the above technical problems in the prior art.
下面以具体地实施例对本申请的技术方案以及本申请的技术方案如何解决上述技术问题进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。下面将结合附图,对本申请的实施例进行描述。The technical solution of the present application and how the technical solution of the present application solves the above technical problems will be described in detail below with specific embodiments. The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below in conjunction with the accompanying drawings.
实施例1:Example 1:
请参阅图2,本申请提供一种页面颜色拾取方法,包括:Please refer to Figure 2, this application provides a page color picking method, including:
S201:获取目标页面并构建所述目标页面的页面图片,将覆盖有页面图片的目标页面展示在终端上,其中,所述目标页面是指用于被拾取颜色的网络页面。S201: Obtain a target page and construct a page picture of the target page, and display the target page covered with the page picture on the terminal, wherein the target page refers to a network page for the picked color.
本步骤中,通过获取目标页面并构建所述目标页面的页面图片,将覆盖有页面图片的目标页面展示在终端上的方式,以便于后续终端能够从页面图片上获取像素中的颜色值,同时,将页面图片覆盖在目标页面上的方式,使得终端上展示的目标页面的内容和样式与原未覆盖有页面图片的目标页面是一致的,以便于终端进行颜色拾取的操作。In this step, by obtaining the target page and constructing the page picture of the target page, the target page covered with the page picture is displayed on the terminal, so that the subsequent terminal can obtain the color value in the pixel from the page picture, and at the same time The method of overlaying the page picture on the target page makes the content and style of the target page displayed on the terminal consistent with the original target page not covered with the page picture, so that the terminal can perform color picking operations.
在一个优选的实施例中,所述页面图片包括DOM图片和/或CSS图片,所述获取目标页面并构建所述目标页面的页面图片,包括:In a preferred embodiment, the page picture includes a DOM picture and/or a CSS picture, and the acquiring the target page and constructing the page picture of the target page includes:
S11:接收终端发送的拾取指令,将当前在所述终端的浏览器中展示的网络页面设为目标页面;S11: receiving the picking instruction sent by the terminal, and setting the web page currently displayed in the browser of the terminal as the target page;
本步骤中,所述拾取指令是由终端生成的点击事件所触发的,例如:终端通过点击显示其上的“拾取”按钮所生成的点击事件,或终端通过连续点击屏幕两次或三次所触发的触摸事件,将终端生成拾取指令时,所述终端上展示的网络页面设为目标页面。In this step, the picking instruction is triggered by a click event generated by the terminal, for example: a click event generated by the terminal by clicking the "pick up" button displayed on it, or triggered by the terminal clicking the screen twice or three times When the terminal generates a picking instruction, the web page displayed on the terminal is set as the target page.
S12:获取所述目标页面的渲染树,将所述渲染树中与预定义的拾取标签一致的渲染标签设为目标标签;S12: Obtain the rendering tree of the target page, and set the rendering tag in the rendering tree that is consistent with the predefined picking tag as the target tag;
本步骤中,所述渲染树是基于DOM树和CSS树所构建的,用于表征各元素之间依赖关系的数据结构,渲染组件通过渲染树在终端上渲染得到目标页面,因此,本步骤基于所述目标页面反向获得所述目标页面的渲染树,以得到渲染获得目标页面的源数据,通过将渲染树中与所述拾取标签一致的渲染标签设为目标标签,使得目标页面中与目标标签对应的部分的颜色方可被拾取,而与目标标签不对应的部分的颜色则不会被拾取,进而实现了控制终端用户对颜色的拾取范围,确保了页面颜色管理的可控性。In this step, the rendering tree is constructed based on the DOM tree and the CSS tree, and is used to represent the data structure of dependencies between elements. The rendering component renders the target page on the terminal through the rendering tree. Therefore, this step is based on The target page reversely obtains the rendering tree of the target page to obtain the source data of the target page by rendering, and sets the rendering tag consistent with the picked tag in the rendering tree as the target tag, so that the target page is consistent with the target The color of the part corresponding to the label can be picked, while the color of the part not corresponding to the target label will not be picked, thereby realizing the control of the color picking range of the end user and ensuring the controllability of page color management.
于本实施例中,所述渲染树的渲染标签为html标签,所述html标签包括:In this embodiment, the rendering tags of the rendering tree are html tags, and the html tags include:
1)描述标题及页面概要信息的标签:如〈title〉、〈meta〉等。1) Labels describing the title and summary information of the page: such as <title>, <meta>, etc.
2)规划网页布局的标签:如〈table〉、〈tr〉、〈td〉、〈p〉、〈div〉等,其作用是描述网页内容的布局结构。2) Labels for planning webpage layout: such as <table>, <tr>, <td>, <p>, <div>, etc., whose function is to describe the layout structure of webpage content.
3)描述显示特点的标签:如〈b〉、〈I〉、〈strong〉、〈h1〉-〈h6〉等,其作用是强调重点内容,引起人们注意。3) Labels describing the display features: such as <b>, <I>, <strong>, <h1>-<h6>, etc., whose function is to emphasize the key content and attract people's attention.
4)超链接相关的标签,表示网页间的内容相关性信息。4) A hyperlink-related label indicates content correlation information between web pages.
5)其他标签,如设置图像的标签〈img〉,在文本提取时将忽略这类标签。5) Other tags, such as setting the tag <img> of the image, will be ignored during text extraction.
S13:识别所述目标标签的中元素对象的类别,其中,所述类别反应了所述元素对象的来源;S13: Identify the category of the element object in the target tag, wherein the category reflects the source of the element object;
本步骤中,通过识别所述目标标签中元素对象的类别,以确定该元素对象的来源,其中一个来源是HTML,其全称为超文本标记语言,另一个来源是CSS,其为层叠样式表(英文全称:Cascading Style Sheets)。目标标签中的元素对象记载了所述目标标签在目标页面上预先规划的位置上所展示的内容。In this step, the source of the element object is determined by identifying the category of the element object in the target tag, wherein one source is HTML, which is called Hypertext Markup Language, and the other source is CSS, which is a cascading style sheet ( English full name: Cascading Style Sheets). The element object in the target tag records the content displayed by the target tag at a pre-planned position on the target page.
具体地,HTML是一种标记语言。它包括一系列标签.通过这些标签可以将网络上的文档格式统一,使分散的Internet资源连接为一个逻辑整体。HTML文本是由HTML命令组成的描述性文本,HTML命令可以说明文字,图形、动画、声音、表格、链接等。渲染组件通过对HTML信息进行渲染得到DOM树,所述DOM树中的元素对象表征了的HTML信息中的各信息单元,故将所述元素对象对应的目标标签的类别设为HTML。Specifically, HTML is a markup language. It includes a series of tags. Through these tags, the document format on the network can be unified, and the scattered Internet resources can be connected into a logical whole. HTML text is a descriptive text composed of HTML commands, which can explain text, graphics, animations, sounds, tables, links, etc. The rendering component renders the HTML information to obtain a DOM tree, and the element objects in the DOM tree represent each information unit in the HTML information, so the category of the target tag corresponding to the element objects is set as HTML.
CSS是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。CSS不仅可以静态地修饰网页,还可以配合各种脚本语言动态地对网页各元素进行格式化,CSS能够对网页中元素位置的排版进行像素级精确控制,支持几乎所有的字体字号样式,拥有对网页对象和模型样式编辑的能力。渲染组件通过对CSS信息进行渲染得到CSS树,所述CSS树中的元素对象表征了CSS信息中的各信息单元,故将所述元素对象对应的目标标签的类别设为CSS。CSS is a computer language used to express the style of documents such as HTML (an application of Standard Generalized Markup Language) or XML (a subset of Standardized Generalized Markup Language). CSS can not only modify web pages statically, but also dynamically format web page elements with various scripting languages. CSS can precisely control the layout of element positions in web pages at the pixel level, supports almost all font sizes, and has the ability to Web page object and model style editing capabilities. The rendering component renders the CSS information to obtain a CSS tree, and the element objects in the CSS tree represent each information unit in the CSS information, so the category of the target tag corresponding to the element objects is set as CSS.
S14:若所述类别为HTML,则获取与所述渲染标签对应的DOM信息,根据所述DOM信息生成相应于所述目标标签的DOM图片,其中,所述类别为HTML表征了所述元素对象的来源为超文本标记语言;S14: If the category is HTML, obtain DOM information corresponding to the rendering tag, and generate a DOM image corresponding to the target tag according to the DOM information, wherein the category is HTML to represent the element object The source of is Hypertext Markup Language;
本步骤中,对于类别为HTML的目标标签,通过html2canvas组件根据相应于目标标签的DOM信息进行截图操作,用得到目标页面中相应于目标标签的部分的截图。In this step, for the target tag whose category is HTML, the screenshot operation is performed according to the DOM information corresponding to the target tag through the html2canvas component, and a screenshot of the part corresponding to the target tag in the target page is obtained.
S15:若所述类别为CSS,则访问与所述目标标签中元素对象对应的源地址,将所述源地址中当前展示的图片设为CSS图片,其中,所述类别为CSS表征了所述元素对象的来源为层叠样式表。S15: If the category is CSS, access the source address corresponding to the element object in the target tag, and set the picture currently displayed in the source address as a CSS picture, wherein the category being CSS represents the The source of the element object is the Cascading Style Sheet.
本步骤中,获取所述目标标签中元素对象对应的源地址,所述源地址保存了所述元素对象展示的图片;以网页轮播图为例,以接收到所述拾取指令的时间作为拾取时间访问源地址,确定所述源地址在所述拾取时间时播放的图片,并以该图片作为当前展示的图片,因此,本步骤通过访问源地址并提取当前展示的图片的方式,避免直接使用html2canvas组件对目标页面进行截图,导致截图中网页轮播图的截屏像素低,图像模糊或混乱等情况发生。In this step, the source address corresponding to the element object in the target tag is obtained, and the source address stores the picture displayed by the element object; taking the web page carousel image as an example, the time when the picking instruction is received is taken as the picking Access the source address at time, determine the picture played by the source address at the pick-up time, and use this picture as the currently displayed picture. Therefore, this step avoids direct use by accessing the source address and extracting the currently displayed picture. The html2canvas component takes a screenshot of the target page, resulting in low pixels in the screenshot of the webpage carousel in the screenshot, and blurred or confusing images.
在一个优选的实施例中,所述将覆盖有页面图片的目标页面展示在终端上,包括:In a preferred embodiment, displaying the target page covered with the page picture on the terminal includes:
S16:在所述渲染树中构建与所述目标标签关联的画布标签(canvas标签),将与所述目标标签对应的DOM图片或CSS图片插入所述画布标签;当所述渲染树中所有目标标签均已关联插入有DOM图片或CSS图片的画布标签时,将所述渲染树设为截图渲染树;其中,所述画布标签的渲染层级高于所述目标标签的渲染层级;S16: Construct a canvas tag (canvas tag) associated with the target tag in the rendering tree, and insert the DOM image or CSS image corresponding to the target tag into the canvas tag; when all targets in the rendering tree When the tags have been associated with a canvas tag inserted with a DOM image or a CSS image, the rendering tree is set as a screenshot rendering tree; wherein, the rendering level of the canvas tag is higher than the rendering level of the target tag;
具体地,所述在所述渲染树中构建与所述目标标签关联的画布标签,将与所述目标标签对应的DOM图片或CSS图片插入所述画布标签,包括:Specifically, the constructing the canvas tag associated with the target tag in the rendering tree, and inserting the DOM image or CSS image corresponding to the target tag into the canvas tag includes:
获取目标标签在目标页面规划的目标位置,所述目标位置表征了所述目标标签的元素对象在目标页面上展示的位置;Acquiring the planned target position of the target tag on the target page, the target position characterizing the position displayed on the target page of the element object of the target tag;
在所述渲染树中创建画布标签,将所述目标位置作为所述画布标签的位置属性,使所述目标标签与所述画布标签之间的关联,用于使所述画布标签对应的内容能够展示在所述目标位置上;Create a canvas tag in the rendering tree, use the target position as the position attribute of the canvas tag, and make an association between the target tag and the canvas tag to enable the content corresponding to the canvas tag to be able to displayed on said target location;
将与所述目标标签对应的DOM图片或CSS图片插入所述画布标签,使所述DOM图片或所述CSS图片能够展示在目标页面的目标位置上;Inserting the DOM picture or the CSS picture corresponding to the target tag into the canvas tag, so that the DOM picture or the CSS picture can be displayed on the target position of the target page;
调整所述画布标签的渲染层级,使所述画布标签的渲染层级高于所述目标标签的渲染层级,用于使所述画布标签对应的DOM图片或CSS图片能够覆盖所述目标标签对应的元素对象。Adjust the rendering level of the canvas tag so that the rendering level of the canvas tag is higher than that of the target tag, so that the DOM image or CSS image corresponding to the canvas tag can cover the element corresponding to the target tag object.
进一步地,按照上述方法,当所述渲染树中的所有目标标签均具有画布标签,且该画布标签中均插入有相应的DOM图片或CSS图片时,则将所述渲染树转为截图渲染树。Further, according to the above method, when all target tags in the rendering tree have canvas tags, and corresponding DOM pictures or CSS pictures are inserted into the canvas tags, the rendering tree is converted into a screenshot rendering tree .
S17:将所述截图渲染树发送至所述终端并对所述截图渲染树进行渲染处理,用以将覆盖有所述DOM图片和/或所述CSS图片覆盖的目标页面展示在所述终端上。S17: Send the screenshot rendering tree to the terminal and perform rendering processing on the screenshot rendering tree, so as to display the target page covered by the DOM image and/or the CSS image on the terminal .
本步骤中,通过将截图渲染树发送至终端,再通过渲染组件对截图渲染树进行渲染处理,将得到内容与原目标页面一致但是覆盖有DOM图片和/或所述CSS图片的目标页面,以便于终端能够拾取该页面上图片中的像素的颜色。In this step, by sending the screenshot rendering tree to the terminal, and then rendering the screenshot rendering tree through the rendering component, a target page with content consistent with the original target page but covered with DOM pictures and/or the CSS pictures will be obtained, so that Because the terminal is able to pick up the color of the pixels in the picture on the page.
S202:当监听到所述终端的指针在所述页面图片上移动或点击时,识别所述指针在所述页面图片上的指针位置,获取所述页面图片上与所述指针位置对应的指定像素的指定颜色值,将所述指定颜色值显示在所述终端上。S202: When it is detected that the pointer of the terminal moves or clicks on the page picture, identify the pointer position of the pointer on the page picture, and obtain a specified pixel corresponding to the pointer position on the page picture The specified color value of , and display the specified color value on the terminal.
本步骤通过识别所述指针在所述页面图片上的指针位置,获取所述页面图片上与所述指针位置对应的指定像素的指定颜色值的方式,使终端用户仅需通过移动或点击指针即可拾取目标页面上各组成部分所使用的颜色,提高了页面颜色拾取的拾取效率,并且避免了终端因在不同网页上拾取多种颜色而导致的运行缓慢的问题出现,有利于终端用户后续根据拾取到的颜色进行进一步的设计,确保了后续设计中颜色的统一性。In this step, by identifying the pointer position of the pointer on the page picture, the specified color value of the specified pixel corresponding to the pointer position on the page picture is obtained, so that the terminal user only needs to move or click the pointer to It can pick up the colors used by each component on the target page, which improves the picking efficiency of page color picking, and avoids the problem of slow running of the terminal caused by picking up multiple colors on different web pages, which is beneficial for end users to follow-up The picked colors are further designed to ensure the unity of colors in subsequent designs.
于本实施例中,所述终端可为台式计算机、或笔记本电脑、或智能手机、或平板电脑。In this embodiment, the terminal can be a desktop computer, or a notebook computer, or a smart phone, or a tablet computer.
当所述终端为台式计算机或笔记本电脑时,则通过监听台式计算机或笔记本的鼠标指针在页面图片上移动,识别终端的指针是否在所述页面图片上移动,和/或通过监听所述鼠标指针在页面图片上生成的点击事件的方式,识别终端的指针是否在所述页面图片上点击。When the terminal is a desktop computer or a notebook computer, by monitoring the mouse pointer of the desktop computer or notebook to move on the page picture, identify whether the pointer of the terminal moves on the page picture, and/or by monitoring the mouse pointer The method of generating the click event on the page picture identifies whether the pointer of the terminal clicks on the page picture.
当终端为智能手机或平板电脑时,则通过监听用户是否在智能手机或平板电脑上滑动并生成滑动(swipe)事件的方式,识别终端的指针是否在页面上移动,和/或监听用户是否在智能手机或平板电脑上触摸或敲击并生成触摸(touch)事件的方式,识别终端的指针是否在页面图片上点击;其中,所述指针为用户与智能手机或平板电脑上接触的位置。When the terminal is a smartphone or a tablet computer, by monitoring whether the user slides on the smartphone or tablet computer and generating a swipe (swipe) event, identify whether the pointer of the terminal is moving on the page, and/or monitor whether the user is in the The method of touching or tapping on the smart phone or tablet computer and generating a touch event is to identify whether the pointer of the terminal clicks on the page picture; wherein, the pointer is the position where the user contacts with the smart phone or tablet computer.
具体地,所述获取所述页面图片上与所述指针位置对应的指定像素的指定颜色值,包括:Specifically, the acquiring the specified color value of the specified pixel corresponding to the pointer position on the page picture includes:
调用get Image Data方法获取所述指定像素的指定颜色值,其中,get ImageData方法是预置在html2canvas组件中用于拾取像素颜色的方法。html2canvas组件是一个JavaScript类库,它使用了html5和css3的一些新功能特性,实现了在客户端对网页进行截图的功能。html2canvas通过获取页面的DOM和元素的样式信息,并将其渲染成canvas图片,从而实现给页面截图的功能。Calling the get Image Data method to obtain the specified color value of the specified pixel, wherein the get ImageData method is a method preset in the html2canvas component for picking up the pixel color. The html2canvas component is a JavaScript class library that uses some new features of html5 and css3 to realize the function of taking screenshots of web pages on the client side. html2canvas obtains the DOM of the page and the style information of the elements, and renders it into a canvas image, so as to realize the function of screenshotting the page.
具体地,所述将所述指定颜色值显示在所述终端上,包括:Specifically, the displaying the specified color value on the terminal includes:
将所述指定颜色值显示在预置在终端上的对话框中;或display said specified color value in a dialog box preset on the terminal; or
将所述指定颜色值载入预置的提示框中,并将所述提示框在所述终端上弹出,用以显示所述指定颜色值;或loading the specified color value into a preset prompt box, and popping up the prompt box on the terminal to display the specified color value; or
将所述指定颜色值显示在所述终端中的指针上,例如:将所述指定颜色值显示在预置在指针周边的数据显示框中。Displaying the specified color value on the pointer in the terminal, for example: displaying the specified color value in a data display box preset around the pointer.
于本实施例中,所述指定颜色值为RGB值,RGB值是通过对红(R)、绿(G)、蓝(B)三个颜色通道的变化以及它们相互之间的叠加来表征各种颜色的颜色标准。In this embodiment, the specified color value is an RGB value, and the RGB value is to represent each color through the change of the three color channels of red (R), green (G), and blue (B) and their mutual superposition. color standard.
实施例2:Example 2:
请参阅图3,本申请提供一种页面颜色拾取方法,包括:Please refer to Figure 3, this application provides a page color picking method, including:
S301:获取目标页面并构建所述目标页面的页面图片,将覆盖有页面图片的目标页面展示在终端上,其中,所述目标页面是指用于被拾取颜色的网络页面。S301: Obtain a target page and construct a page picture of the target page, and display the target page covered with the page picture on the terminal, wherein the target page refers to a network page for the picked color.
本步骤与实施例1中的S201一致。This step is consistent with S201 in Embodiment 1.
S302:计算反映所述页面图片中所有像素的颜色均值的页面主色值,将所述页面主色值显示在所述终端上;S302: Calculating a page dominant color value reflecting an average color value of all pixels in the page picture, and displaying the page dominant color value on the terminal;
本步骤通过计算反映所述页面图片中所有像素的颜色均值的页面主色值,用于向终端反馈页面图片中各种颜色的综合情况,为终端的后续设计提供颜色使用比例的参考。In this step, by calculating the main color value of the page reflecting the average color value of all pixels in the page picture, it is used to feed back the comprehensive situation of various colors in the page picture to the terminal, and provide a reference for the color usage ratio for the subsequent design of the terminal.
优选的,所述计算反映所述页面图片中所有像素的颜色均值的页面主色值,包括:Preferably, the calculation of the main color value of the page reflecting the color mean value of all pixels in the page picture includes:
S31:按照预置的选取规则从页面图片中识别至少一个像素,并将识别到的像素设为主色像素;S31: Identify at least one pixel from the page image according to a preset selection rule, and set the identified pixel as a main color pixel;
S32:获取所述主色像素的颜色值,计算至少一个所述主色像素的颜色值的平均值,将所述平均值设为所述页面主色值。S32: Acquire the color value of the primary color pixel, calculate an average value of the color value of at least one primary color pixel, and set the average value as the page primary color value.
具体地,通过canvas的API识别所述页面图片在所述网络页面中的坐标范围,通过所述选取规则在所述坐标范围内提取至少一个像素,计算所述至少一个像素的色值的均值,将所述均值设为所述页面主色值。Specifically, identify the coordinate range of the page picture in the network page through the API of canvas, extract at least one pixel within the coordinate range through the selection rule, and calculate the mean value of the color value of the at least one pixel, The mean value is set as the main color value of the page.
其中,所述选取规则包括:规律规则和/或随机规则;Wherein, the selection rules include: regular rules and/or random rules;
所述规律规则中定义有间隔行数和间隔列数,以所述页面图片中位于首行及首列的像素为起始像素,从所述起始像素开始,按照所述间隔行数和间隔列数依次识别所述页面图片中的像素,并将识别到的像素设为主色像素。The number of interval rows and the number of interval columns are defined in the rule, and the pixel located in the first row and first column in the page picture is used as the starting pixel, starting from the start pixel, according to the interval row number and interval The number of columns sequentially identifies pixels in the page picture, and sets the identified pixels as primary color pixels.
所述随机规则是指,通过预置的随机坐标生成器随机生成数量为n的像素坐标,将所述页面图片中相应于所述像素坐标的像素设为主色像素。The random rule means that a number n of pixel coordinates are randomly generated by a preset random coordinate generator, and the pixels corresponding to the pixel coordinates in the page picture are set as the main color pixels.
于本实施例中,采用所述get Image Data方法获取从页面图片对应的画布标签中获取主色像素的颜色值,主色像素的颜色值为RGB值In this embodiment, the get Image Data method is used to obtain the color value of the main color pixel from the canvas tag corresponding to the page picture, and the color value of the main color pixel is an RGB value
S303:当监听到所述终端的指针在所述页面图片上移动或点击时,识别所述指针在所述页面图片上的指针位置,获取所述页面图片上与所述指针位置对应的指定像素的指定颜色值,将所述指定颜色值显示在所述终端上。S303: When it is detected that the pointer of the terminal moves or clicks on the page picture, identify the pointer position of the pointer on the page picture, and obtain a specified pixel corresponding to the pointer position on the page picture The specified color value of , and display the specified color value on the terminal.
本步骤与实施例1中的S202一致。This step is consistent with S202 in Embodiment 1.
实施例3:Example 3:
请参阅图4,本申请提供一种页面颜色拾取方法,包括:Please refer to Figure 4, this application provides a page color picking method, including:
S401:获取目标页面并构建所述目标页面的页面图片,将覆盖有页面图片的目标页面展示在终端上,其中,所述目标页面是指用于被拾取颜色的网络页面。S401: Obtain a target page and construct a page picture of the target page, and display the target page covered with the page picture on the terminal, wherein the target page refers to a web page for the picked color.
本步骤与实施例1中的S201一致。This step is consistent with S201 in Embodiment 1.
S402:当监听到所述终端上的指针在所述页面图片上拉取拉选框时,计算反映所述拉选框中所有像素的颜色均值的框选主色值,将所述框选主色值显示在所述终端上;S402: When it is detected that the pointer on the terminal pulls a selection box on the page picture, calculate the main color value of the selection reflecting the average color value of all pixels in the selection box, and set the main color value of the selection box the color value is displayed on said terminal;
本步骤中,通过计算反映所述拉选框中像素的综合情况的框选主色值,用于向终端反馈拉选框中各种颜色的综合情况,为终端的后续设计提供颜色使用比例的参考。In this step, by calculating the frame selection main color value reflecting the comprehensive situation of the pixels in the selection box, it is used to feed back the comprehensive situation of various colors in the selection box to the terminal, and provide the color usage ratio for the subsequent design of the terminal refer to.
优选的,计算反映所述拉选框中所有像素的颜色均值的框选主色值,包括:Preferably, the calculation reflects the selected main color value of the color mean value of all pixels in the selected box, including:
S41:将所述页面图片中与所述拉选框对应的范围设为目标范围,按照预置的选取规则从所述目标范围中获取至少一个像素,并将获取到的像素设为框选像素;S41: Set the range corresponding to the pull-down box in the page picture as a target range, acquire at least one pixel from the target range according to preset selection rules, and set the acquired pixel as a frame selection pixel ;
S42:获取所述框选像素的颜色值,计算至少一个所述框选像素的颜色值的平均值,将所述平均值设为所述框选主色值。S42: Acquire the color value of the frame-selected pixel, calculate an average value of the color values of at least one frame-selected pixel, and set the average value as the frame-selected main color value.
具体地,通过canvas的API识别所述页面图片在所述网络页面中的坐标范围,通过所述选取规则在所述坐标范围内提取至少一个像素,计算所述至少一个像素的色值的均值,将所述均值设为所述框选主色值。Specifically, identify the coordinate range of the page picture in the network page through the API of canvas, extract at least one pixel within the coordinate range through the selection rule, and calculate the mean value of the color value of the at least one pixel, Set the mean value as the main color value of the frame selection.
其中,所述选取规则包括:规律规则和/或随机规则;Wherein, the selection rules include: regular rules and/or random rules;
所述规律规则中定义有间隔行数和间隔列数,以所述页面图片中位于首行及首列的像素为起始像素,从所述起始像素开始,按照所述间隔行数和间隔列数依次识别所述页面图片中的像素,并将识别到的像素设为主色像素。The number of interval rows and the number of interval columns are defined in the rule, and the pixel located in the first row and first column in the page picture is used as the starting pixel, starting from the start pixel, according to the interval row number and interval The number of columns sequentially identifies pixels in the page picture, and sets the identified pixels as primary color pixels.
所述随机规则是指,通过预置的随机坐标生成器随机生成数量为n的像素坐标,将所述页面图片中相应于所述像素坐标的像素设为主色像素。The random rule means that a number n of pixel coordinates are randomly generated by a preset random coordinate generator, and the pixels corresponding to the pixel coordinates in the page picture are set as the main color pixels.
于本实施例中,采用所述get Image Data方法获取从页面图片对应的画布标签中获取主色像素的颜色值,框选像素的颜色值为RGB值。In this embodiment, the get Image Data method is used to obtain the color value of the main color pixel from the canvas tag corresponding to the page image, and the color value of the framed pixel is an RGB value.
S403:当监听到所述终端的指针在所述页面图片上移动或点击时,识别所述指针在所述页面图片上的指针位置,获取所述页面图片上与所述指针位置对应的指定像素的指定颜色值,将所述指定颜色值显示在所述终端上。S403: When it is detected that the pointer of the terminal moves or clicks on the page picture, identify the pointer position of the pointer on the page picture, and obtain a specified pixel corresponding to the pointer position on the page picture The specified color value of , and display the specified color value on the terminal.
本步骤与实施例1中的S202一致。This step is consistent with S202 in Embodiment 1.
实施例4:Example 4:
请参阅图5,本申请提供一种页面颜色拾取方法,包括:Please refer to Figure 5, this application provides a page color picking method, including:
S501:获取目标页面并构建所述目标页面的页面图片,将覆盖有页面图片的目标页面展示在终端上,其中,所述目标页面是指用于被拾取颜色的网络页面。S501: Obtain a target page and construct a page picture of the target page, and display the target page covered with the page picture on the terminal, wherein the target page refers to a network page for the picked color.
本步骤与实施例1中的S201一致。This step is consistent with S201 in Embodiment 1.
S502:当监听到所述终端的指针在所述页面图片上移动或点击时,识别所述指针在所述页面图片上的指针位置,获取所述页面图片上与所述指针位置对应的指定像素的指定颜色值,将所述指定颜色值显示在所述终端上。S502: When it is detected that the pointer of the terminal moves or clicks on the page picture, identify the pointer position of the pointer on the page picture, and obtain a specified pixel corresponding to the pointer position on the page picture The specified color value of , and display the specified color value on the terminal.
本步骤与实施例1中的S202一致。This step is consistent with S202 in Embodiment 1.
S503:放大所述指定像素的尺寸得到指定放大像素,及放大所述页面图片上位于所述指定像素周边的邻接像素的尺寸得到邻接放大像素,将所述指定放大像素和邻接放大像素载入到预置在所述终端的放大框内,用以放大所述指定像素和所述邻接像素。S503: enlarge the size of the designated pixel to obtain the designated enlarged pixel, and enlarge the size of the adjacent pixels located around the designated pixel on the page picture to obtain the adjacent enlarged pixel, and load the designated enlarged pixel and the adjacent enlarged pixel into It is preset in the enlargement frame of the terminal, and is used to enlarge the designated pixel and the adjacent pixels.
本步骤通过放大指定像素和邻接像素的尺寸得到指定放大像素和邻接放大像素,再将其载入到预置在终端的放大框内,以便于终端用户能够通过放大框观察与指针对应的指定像素,以及位于指定像素周边的像素,进而为用户识别其所需的像素提供便利。In this step, the specified enlarged pixel and adjacent enlarged pixels are obtained by enlarging the size of the specified pixel and adjacent pixels, and then loaded into the magnifying frame preset in the terminal, so that the end user can observe the specified pixel corresponding to the pointer through the magnifying frame , as well as the pixels located around the specified pixel, so as to facilitate the user to identify the pixel he needs.
优选的,放大所述指定像素的尺寸得到指定放大像素,及放大所述页面图片上位于所述指定像素周边的邻接像素的尺寸得到邻接放大像素,包括:Preferably, enlarging the size of the specified pixel to obtain the specified enlarged pixel, and enlarging the size of adjacent pixels located around the specified pixel on the page picture to obtain the adjacent enlarged pixel include:
S51:以所述指定像素所在的指针位置为中心,并以预置的邻接尺寸为半径构建邻接范围,将位于所述邻接范围内的像素设为所述邻接像素;S51: Construct an adjacency range with the pointer position where the specified pixel is located as the center and a preset adjacency size as the radius, and set pixels within the adjacency range as the adjoining pixels;
S52:根据预置的放大比例放大所述指定像素的尺寸得到指定放大像素,及根据所述放大比例放大所述邻接像素的尺寸得到邻接放大像素,其中,所述放大比例定义了所述指定像素及所述邻接像素的边长的放大比例。S52: Enlarging the size of the specified pixel according to a preset magnification ratio to obtain a specified magnified pixel, and magnifying the size of the adjacent pixel according to the magnification ratio to obtain an adjacent magnified pixel, wherein the magnification ratio defines the specified pixel and the magnification ratio of the side lengths of the adjacent pixels.
于本实施例中,邻接尺寸了定义指定像素周边属于邻接像素的范围,其可根据需要进行调整;放大比例定义了指定像素和邻接像素的放大尺寸,其可根据需要进行调整。In this embodiment, the adjacent size defines the range of the adjacent pixels around the specified pixel, which can be adjusted as needed; the magnification ratio defines the enlarged size of the specified pixel and adjacent pixels, which can be adjusted as needed.
S504:计算反映所述指定像素和所述邻接像素的颜色均值的放大颜色值,将所述放大颜色值显示在所述终端上。S504: Calculate an enlarged color value reflecting the color average value of the specified pixel and the adjacent pixels, and display the enlarged color value on the terminal.
本步骤通过计算反映指定像素和邻接像素的颜色均值的放大颜色值的方式,以便于终端用户能够得到放大框中所有像素的综合情况,为终端的后续设计提供颜色使用比例的参考。This step calculates the magnified color value that reflects the color average of the specified pixel and adjacent pixels, so that the end user can obtain the comprehensive information of all pixels in the magnified frame, and provide a reference for the color usage ratio for the subsequent design of the terminal.
本申请的技术方案中,所涉及的金融数据或用户数据等信息的收集、存储、使用、加工、传输、提供和公开等处理,均符合相关法律法规的规定,且不违背公序良俗。In the technical solution of this application, the collection, storage, use, processing, transmission, provision, and disclosure of financial data or user data and other information involved are in compliance with relevant laws and regulations, and do not violate public order and good customs.
实施例5:Example 5:
请参阅图6,本申请提供一种页面颜色拾取装置1,包括:Please refer to FIG. 6, the present application provides a page color picking device 1, including:
截图覆盖模块11,用于获取目标页面并构建所述目标页面的页面图片,将覆盖有页面图片的目标页面展示在终端上,其中,所述目标页面是指用于被拾取颜色的网络页面;The screenshot covering module 11 is used to obtain the target page and construct the page picture of the target page, and display the target page covered with the page picture on the terminal, wherein the target page refers to a network page for being picked up;
颜色拾取模块12,用于当监听到所述终端的指针在所述页面图片上移动或点击时,识别所述指针在所述页面图片上的指针位置,获取所述页面图片上与所述指针位置对应的指定像素的指定颜色值,将所述指定颜色值显示在所述终端上。The color pick-up module 12 is used to identify the pointer position of the pointer on the page picture when the pointer of the terminal is monitored to move or click on the page picture, and obtain the position of the pointer on the page picture relative to the pointer. the specified color value of the specified pixel corresponding to the position, and display the specified color value on the terminal.
可选的,所述截图覆盖模块11包括:Optionally, the screenshot covering module 11 includes:
目标确定单元111,用于接收终端发送的拾取指令,将当前在所述终端的浏览器中展示的网络页面设为目标页面;The target determination unit 111 is configured to receive the picking instruction sent by the terminal, and set the web page currently displayed in the browser of the terminal as the target page;
标签确定单元112,用于获取所述目标页面的渲染树,将所述渲染树中与预定义的拾取标签一致的渲染标签设为目标标签;a label determining unit 112, configured to acquire the rendering tree of the target page, and set the rendering label in the rendering tree consistent with the predefined picking label as the target label;
类别识别单元113,用于识别所述目标标签的中元素对象的类别,其中,所述类别反应了所述元素对象的来源;A category identification unit 113, configured to identify the category of the element object in the target tag, wherein the category reflects the source of the element object;
DOM图片单元114,用于获取与所述渲染标签对应的DOM信息,根据所述DOM信息生成相应于所述目标标签的DOM图片,其中,所述类别为HTML表征了所述元素对象的来源为超文本标记语言;The DOM image unit 114 is configured to acquire DOM information corresponding to the rendering tag, and generate a DOM image corresponding to the target tag according to the DOM information, wherein the category being HTML represents that the source of the element object is Hypertext Markup Language;
CSS图片单元115,用于访问与所述目标标签中元素对象对应的源地址,将所述源地址中当前展示的图片设为CSS图片,其中,所述类别为CSS表征了所述元素对象的来源为层叠样式表。The CSS picture unit 115 is used to access the source address corresponding to the element object in the target tag, and set the picture currently displayed in the source address as a CSS picture, wherein the category is that CSS characterizes the element object The source is Cascading Style Sheets.
可选的,所述截图覆盖模块11还包括:Optionally, the screenshot covering module 11 also includes:
渲染树构建单元116,用于在所述渲染树中构建与所述目标标签关联的画布标签,将与所述目标标签对应的DOM图片或CSS图片插入所述画布标签;当所述渲染树中所有目标标签均已关联插入有DOM图片或CSS图片的画布标签时,将所述渲染树设为截图渲染树;其中,所述画布标签的渲染层级高于所述目标标签的渲染层级;The rendering tree construction unit 116 is configured to construct a canvas tag associated with the target tag in the rendering tree, and insert a DOM image or a CSS image corresponding to the target tag into the canvas tag; When all target tags have been associated with the canvas tags inserted with DOM pictures or CSS pictures, the rendering tree is set as a screenshot rendering tree; wherein, the rendering level of the canvas tag is higher than the rendering level of the target tag;
截图覆盖单元117,用于将所述截图渲染树发送至所述终端并对所述截图渲染树进行渲染处理,用以将覆盖有所述DOM图片和/或所述CSS图片覆盖的目标页面展示在所述终端上。A screenshot overlay unit 117, configured to send the screenshot rendering tree to the terminal and perform rendering processing on the screenshot rendering tree, so as to display the target page covered with the DOM image and/or the CSS image on said terminal.
可选的,所述页面颜色拾取装置1还包括:Optionally, the page color picking device 1 also includes:
页面主色模块13,用于计算反映所述页面图片中所有像素的颜色均值的页面主色值,将所述页面主色值显示在所述终端上。The page dominant color module 13 is configured to calculate a page dominant color value reflecting the average color value of all pixels in the page picture, and display the page dominant color value on the terminal.
可选的,所述页面颜色拾取装置还包括:Optionally, the page color picking device also includes:
框选主色模块14,用于在监听到所述终端上的指针在所述页面图片上拉取拉选框时,计算反映所述拉选框中所有像素的颜色均值的框选主色值,将所述框选主色值显示在所述终端上。The frame selection main color module 14 is used to calculate the frame selection main color value reflecting the color mean value of all pixels in the pull box when the pointer on the terminal is monitored to pull the box on the page picture , displaying the frame-selected dominant color value on the terminal.
可选的,所述页面颜色拾取装置1还包括:Optionally, the page color picking device 1 also includes:
放大显示模块15,用于放大所述指定像素的尺寸得到指定放大像素,及放大所述页面图片上位于所述指定像素周边的邻接像素的尺寸得到邻接放大像素,将所述指定放大像素和邻接放大像素载入到预置在所述终端的放大框内,用以放大所述指定像素和所述邻接像素。The enlarged display module 15 is used to enlarge the size of the designated pixel to obtain the designated enlarged pixel, and to enlarge the size of the adjacent pixel located on the periphery of the designated pixel on the page picture to obtain the adjacent enlarged pixel, and the designated enlarged pixel and the adjacent The enlarged pixels are loaded into the enlarged frame preset in the terminal, so as to enlarge the specified pixel and the adjacent pixels.
可选的,所述页面颜色拾取装置1还包括:Optionally, the page color picking device 1 also includes:
放大计算模块16,用于计算反映所述指定像素和所述邻接像素的颜色均值的放大颜色值,将所述放大颜色值显示在所述终端上。The magnification calculation module 16 is configured to calculate an magnification color value reflecting the color mean value of the designated pixel and the adjacent pixels, and display the magnification color value on the terminal.
实施例6:Embodiment 6:
为实现上述目的,本申请还提供一种计算机设备4,包括:处理器以及与所述处理器通信连接的存储器;所述存储器存储计算机执行指令;所述处理器执行所述存储器存储的计算机执行指令,以实现上述的页面颜色拾取方法。其中,页面颜色拾取装置1的组成部分可分散于不同的计算机设备中,计算机设备4可以是执行程序的智能手机、平板电脑、笔记本电脑、台式计算机、机架式服务器、刀片式服务器、塔式服务器或机柜式服务器(包括独立的服务器,或者多个应用服务器所组成的服务器集群)等。本实施例的计算机设备至少包括但不限于:可通过系统总线相互通信连接的存储器41、处理器42,如图7所示。需要指出的是,图7仅示出了具有组件-的计算机设备,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。本实施例中,存储器41(即可读存储介质)包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘等。在一些实施例中,存储器41可以是计算机设备的内部存储单元,例如该计算机设备的硬盘或内存。在另一些实施例中,存储器41也可以是计算机设备的外部存储设备,例如该计算机设备上配备的插接式硬盘,智能存储卡(SmartMedia Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。当然,存储器41还可以既包括计算机设备的内部存储单元也包括其外部存储设备。本实施例中,存储器41通常用于存储安装于计算机设备的操作系统和各类应用软件,例如实施例三的页面颜色拾取装置的程序代码等。此外,存储器41还可以用于暂时地存储已经输出或者将要输出的各类数据。处理器42在一些实施例中可以是中央处理器(Central Processing Unit,CPU)、控制器、微控制器、微处理器、或其他数据处理芯片。该处理器42通常用于控制计算机设备的总体操作。本实施例中,处理器42用于运行存储器41中存储的程序代码或者处理数据,例如运行页面颜色拾取装置,以实现实施例一和实施例二的页面颜色拾取方法。To achieve the above object, the present application also provides a computer device 4, including: a processor and a memory connected in communication with the processor; the memory stores computer-executed instructions; the processor executes the computer-executed instructions stored in the memory. instruction to implement the page color picking method described above. Among them, the components of the page color picking device 1 can be dispersed in different computer equipment, and the computer equipment 4 can be a smart phone, a tablet computer, a notebook computer, a desktop computer, a rack server, a blade server, a tower computer, etc. server or cabinet server (including an independent server, or a server cluster composed of multiple application servers), etc. The computer device in this embodiment at least includes but is not limited to: a memory 41 and a processor 42 that can be communicatively connected to each other through a system bus, as shown in FIG. 7 . It should be noted that FIG. 7 only shows a computer device with components - but it should be understood that it is not required to implement all the components shown and more or fewer components may be implemented instead. In this embodiment, the memory 41 (that is, a readable storage medium) includes a flash memory, a hard disk, a multimedia card, a card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), Programmable Read Only Memory (PROM), Magnetic Memory, Magnetic Disk, Optical Disk, etc. In some embodiments, the memory 41 may be an internal storage unit of a computer device, such as a hard disk or internal memory of the computer device. In some other embodiments, the memory 41 can also be an external storage device of the computer device, such as a plug-in hard disk equipped on the computer device, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card , Flash Card (Flash Card) and so on. Of course, the memory 41 may also include both the internal storage unit of the computer device and its external storage device. In this embodiment, the memory 41 is usually used to store the operating system and various application software installed in the computer equipment, such as the program code of the page color picking device in the third embodiment. In addition, the memory 41 can also be used to temporarily store various types of data that have been output or will be output. The processor 42 may be a central processing unit (Central Processing Unit, CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 42 is generally used to control the overall operation of the computer device. In this embodiment, the processor 42 is used to run the program codes stored in the memory 41 or process data, for example, to run the page color picking device, so as to realize the page color picking methods in the first and second embodiments.
上述以软件功能模块的形式实现的集成的模块,可以存储在一个计算机可读取存储介质中。上述软件功能模块存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器执行本申请各个实施例所述方法的部分步骤。应理解,上述处理器可以是中央处理单元(Central Processing Unit,简称CPU),还可以是其它通用处理器、数字信号处理器(Digital Signal Processor,简称DSP)、专用集成电路(Application Specific Integrated Circuit,简称ASIC)等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合申请所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。存储器可能包含高速RAM存储器,也可能还包括非易失性存储NVM,例如至少一个磁盘存储器,还可以为U盘、移动硬盘、只读存储器、磁盘或光盘等。The above-mentioned integrated modules implemented in the form of software function modules may be stored in a computer-readable storage medium. The above-mentioned software function modules are stored in a storage medium, and include several instructions to make a computer device (which may be a personal computer, server, or network device, etc.) or a processor execute some steps of the methods described in various embodiments of the present application. It should be understood that the above-mentioned processor may be a central processing unit (Central Processing Unit, referred to as CPU), and may also be other general-purpose processors, a digital signal processor (Digital Signal Processor, referred to as DSP), an application specific integrated circuit (Application Specific Integrated Circuit, referred to as ASIC) and so on. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, and the like. The steps of the method disclosed in conjunction with the application can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor. The storage may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk storage, and may also be a U disk, a mobile hard disk, a read-only memory, a magnetic disk, or an optical disk.
为实现上述目的,本申请还提供一种计算机可读存储介质,如闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘、服务器、App应用商城等等,其上存储有计算机执行指令,程序被处理器42执行时实现相应功能。本实施例的计算机可读存储介质用于存储实现所述页面颜色拾取方法的计算机执行指令,被处理器42执行时实现实施例一和实施例二的页面颜色拾取方法。To achieve the above object, the present application also provides a computer-readable storage medium, such as flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory ( SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, server, App application store, etc., on which storage The computer executes instructions, and the program realizes corresponding functions when executed by the processor 42 . The computer-readable storage medium of this embodiment is used to store computer-executed instructions for implementing the page color picking method, and when executed by the processor 42, the page color picking methods of Embodiment 1 and
上述存储介质可以是由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。存储介质可以是通用或专用计算机能够存取的任何可用介质。The above-mentioned storage medium can be realized by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable In addition to programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于专用集成电路(Application Specific Integrated Circuits,简称ASIC)中。当然,处理器和存储介质也可以作为分立组件存在于计算机设备或主控设备中。An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be a component of the processor. The processor and the storage medium may be located in application specific integrated circuits (Application Specific Integrated Circuits, ASIC for short). Of course, the processor and the storage medium can also exist in the computer device or the main control device as discrete components.
本申请提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现上述的页面颜色拾取方法。The present application provides a computer program product, including a computer program, and when the computer program is executed by a processor, the above-mentioned page color picking method is realized.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本申请的其它实施方案。本申请旨在涵盖本申请的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本申请的一般性原理并包括本申请未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本申请的真正范围和精神由下面的权利要求书指出。Other embodiments of the present application will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the application, these modifications, uses or adaptations follow the general principles of the application and include common knowledge or conventional technical means in the technical field not disclosed in the application . The specification and examples are to be considered exemplary only, with a true scope and spirit of the application indicated by the following claims.
应当理解的是,本申请并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本申请的范围仅由所附的权利要求书来限制。It should be understood that the present application is not limited to the precise constructions which have been described above and shown in the accompanying drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.
Claims (17)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211102786.9A CN115601567A (en) | 2022-09-09 | 2022-09-09 | Page color pickup method, device, computer equipment, storage medium and product |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211102786.9A CN115601567A (en) | 2022-09-09 | 2022-09-09 | Page color pickup method, device, computer equipment, storage medium and product |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN115601567A true CN115601567A (en) | 2023-01-13 |
Family
ID=84842298
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211102786.9A Pending CN115601567A (en) | 2022-09-09 | 2022-09-09 | Page color pickup method, device, computer equipment, storage medium and product |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115601567A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116974671A (en) * | 2023-07-20 | 2023-10-31 | 北京爱特拉斯信息科技有限公司 | A vector surface picking method, device, electronic equipment and storage medium |
| CN118967925A (en) * | 2024-07-26 | 2024-11-15 | 北京轻松怡康信息技术有限公司 | Method, device, electronic device and storage medium for extracting theme color of picture |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108052262A (en) * | 2017-12-12 | 2018-05-18 | 平安科技(深圳)有限公司 | Edit page content color amending method, device, terminal and storage medium |
| CN111596848A (en) * | 2020-05-09 | 2020-08-28 | 远光软件股份有限公司 | Interface color taking method, device, equipment and storage medium |
-
2022
- 2022-09-09 CN CN202211102786.9A patent/CN115601567A/en active Pending
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108052262A (en) * | 2017-12-12 | 2018-05-18 | 平安科技(深圳)有限公司 | Edit page content color amending method, device, terminal and storage medium |
| CN111596848A (en) * | 2020-05-09 | 2020-08-28 | 远光软件股份有限公司 | Interface color taking method, device, equipment and storage medium |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116974671A (en) * | 2023-07-20 | 2023-10-31 | 北京爱特拉斯信息科技有限公司 | A vector surface picking method, device, electronic equipment and storage medium |
| CN116974671B (en) * | 2023-07-20 | 2024-02-23 | 北京爱特拉斯信息科技有限公司 | A vector surface picking method, device, electronic equipment and storage medium |
| CN118967925A (en) * | 2024-07-26 | 2024-11-15 | 北京轻松怡康信息技术有限公司 | Method, device, electronic device and storage medium for extracting theme color of picture |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20220261129A1 (en) | Display controlling method, terminal, information processing apparatus, and storage medium | |
| US9111007B2 (en) | Adaptive rendering of a webpage on an electronic display device | |
| US8812988B2 (en) | Dynamic icons associated with remote content | |
| US10353721B2 (en) | Systems and methods for guided live help | |
| JP5727684B1 (en) | Browsing device, display control method, recording medium, and program | |
| CN107818143A (en) | A kind of page configuration, generation method and device | |
| JP6975339B2 (en) | Backdrop rendering of digital components | |
| WO2016054549A1 (en) | Application prototyping tool | |
| US7434174B2 (en) | Method and system for zooming in and out of paginated content | |
| CN113779307A (en) | An information display method, device, computer equipment and storage medium | |
| US8671389B1 (en) | Web application resource manager on the web and localizable components | |
| CN113918194B (en) | A method, device, electronic device and storage medium for displaying page components | |
| CN114357345A (en) | Image processing method, apparatus, electronic device, and computer-readable storage medium | |
| WO2015078159A1 (en) | Webpage display method and device | |
| CN108319683A (en) | Webpage display process, device and terminal | |
| CN115601567A (en) | Page color pickup method, device, computer equipment, storage medium and product | |
| CN110223044A (en) | A kind of mail push method, system and electronic equipment and storage medium | |
| CN111294395A (en) | Terminal page transmission method, device, medium and electronic equipment | |
| US20140006936A1 (en) | Responsive document breakpoints systems and methods | |
| CN115469870A (en) | Method, device, electronic equipment and medium for online file processing | |
| CA2983248C (en) | Rendering graphical assets natively on multiple screens of electronic devices | |
| CN117093386B (en) | Page screenshot method, device, computer equipment and storage medium | |
| CN111428452B (en) | An annotation data storage method and device | |
| US20110055258A1 (en) | Method and apparatus for the page-by-page provision of an electronic document as a computer graphic | |
| CN106155455B (en) | Method and device for controlling objects in interface |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |