Method and electronic device for processing subject resources
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0074] This embodiment provides a method for processing subject resources, which is applied to electronic equipment, wherein the electronic equipment can be a computer (for example: tablet computer, desktop computer, notebook computer, palmtop computer, vehicle-mounted computer, etc.), or Mobile phones (such as feature phones, smart phones, etc.), smart TVs, digital cameras, game consoles, etc., the embodiment of the present application does not specifically limit what kind of electronic device the electronic device is.
[0075] Specifically, as figure 1 shown, including:
[0076] Step S101: When the current skin resource or the current theme resource of the application is changed, extract the theme picture from the current theme resource of the application.
[0077] For example, the application program may be: browser application program, game application program, music application program, video application program, shopping application program, system optimization applicat...
Embodiment approach
[0083] The first one, the step S102, includes:
[0084] Read the RGB (Red-Green-Blue, red-green-blue) value of each pixel in the subject picture; convert the RGB value of each pixel into the each pixel according to the color space conversion formula the gray value; count the first pixel number Ca whose gray value is greater than the preset gray value in the subject picture, and the second pixel number Cb whose gray value is less than or equal to the preset gray value; if If Ca>Cb, it is determined that the color system of the theme picture is a light color system; otherwise, it is determined that the color system of the theme picture is a dark color system. Wherein, the value range of the preset grayscale value is: 120-130, for example: 120, 125, 130. The embodiment of the present application does not specifically limit the specific value of the grayscale value.
[0085] The second type, the step S102, includes:
[0086] Read the RGB value of each pixel in the theme picture;...
Embodiment 2
[0106] The embodiment of the present application provides an electronic device, such as figure 2 shown, including:
[0107] The first extracting unit 201 is used to extract theme pictures from current theme resources of the application;
[0108] The first determination unit 202 is configured to determine the color system of the theme picture;
[0109] The second determination unit 203 is configured to determine that the color of the text information is the first color based on the color system of the theme picture, wherein the text information is text information on an interface element of the application program, and the text information is the first color. The contrast between the first color and the color system of the theme picture is greater than a preset contrast;
[0110] The second extracting unit 204 is configured to extract a first sub-skin resource corresponding to the first color from the current skin resource of the application program based on the first color,...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com