A method and device for setting a background transition color
A background and color technology, applied in the Internet field, can solve the problems of large color difference and discontinuous background, and achieve the effect of ensuring the background and reducing the color difference.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0030] see figure 2 , the embodiment of the present invention provides a method for setting the background transition color, including:
[0031] Step 101: Compress the cover image of the music to be played to obtain a preset number of pixel grids, and each pixel grid in the preset number of pixel grids corresponds to a color of the cover image.
[0032] Step 102: Determine the main color of the cover image according to the preset number of pixel grids.
[0033] Step 103: Set the background transition color of the music to be played according to the main color.
[0034] In the embodiment of the present invention, the main color of the cover image of the music to be played is determined by the compressed preset number of pixels, and the background transition color is set according to the main color, which reduces the set background transition color and the tone of the music cover image Difference, to ensure that the displayed background is continuous.
Embodiment 2
[0036] see image 3 , the embodiment of the present invention provides a method for setting the background transition color, including:
[0037] Step 201: Compress the cover image of the music to be played to obtain a preset number of pixel grids.
[0038] Wherein, the audio file of each piece of music includes the cover image of the music, so the cover image of the music to be played can be obtained from the audio file of the music to be played when the music to be played is played. Each pixel grid in the preset number of pixel grids corresponds to a color of the cover image. There may be some pixel grids in the preset number of pixel grids that correspond to the same color, and the color corresponding to each pixel grid is the color of the cover image. The most dominant colors in the image.
[0039] Optionally, in this embodiment, the cover image is compressed into a 4px*4px image to obtain 16 pixel grids, that is, the preset number can be 16, and the color corresponding t...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


