CN112052065A - Display method, display system, electronic equipment and storage medium for identification picture - Google Patents
Display method, display system, electronic equipment and storage medium for identification picture Download PDFInfo
- Publication number
- CN112052065A CN112052065A CN202011085478.0A CN202011085478A CN112052065A CN 112052065 A CN112052065 A CN 112052065A CN 202011085478 A CN202011085478 A CN 202011085478A CN 112052065 A CN112052065 A CN 112052065A
- Authority
- CN
- China
- Prior art keywords
- picture
- identification picture
- displayed
- identification
- canvas
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
The invention discloses a display method, a display system, electronic equipment and a storage medium for identifying pictures, wherein the method comprises the following steps: cutting an original identification picture to obtain an identification picture to be displayed; storing the identification picture to be displayed into a reserved storage space of the terminal; applying for the cache of the terminal when the terminal starts a target process, wherein the cache comprises a canvas; extracting an identification picture to be displayed from the reserved storage space; forming a target display picture according to the marker picture to be displayed and the canvas, and displaying the target display picture; and releasing the cache after the target process is completed. Under the condition of not influencing the display effect of the picture corresponding to the target process, the invention can reduce the storage space occupied by the corresponding picture in the image file of the system and the reserved storage space set for the picture in the system, can also reduce the speed of copying the corresponding picture, can improve the running speed of the related process, and greatly improve the experience of a user in using the terminal.
Description
Technical Field
The present invention relates to the field of display of identification pictures of terminal devices, and in particular, to a display method, a display system, an electronic device, and a storage medium for an identification picture.
Background
Generally, a terminal using an Android operating system (Android operating system) platform stores a booted logo in a mirror image file of the system, wherein the size of the stored logo image is the same as the size of a screen of the terminal, so that the logo image can be displayed in a manner of adapting to the size of the image in the booting process.
When the terminal is started, the Uboot (boot loader) takes out the identification picture stored in the mirror image file at a proper time, stores the picture into a pre-storage space matched with the size of the identification picture, and then displays the identification picture. In order to meet market demands, the screen resolution of the terminal device is larger and larger, and therefore, the memory space occupied by the identification picture is also increased as the resolution of the screen is larger and larger. In addition, with the increase of the identification picture, the time occupied for copying the identification picture from the image file to the pre-storage space of the system is also increased, and the display speed of the identification picture is further reduced.
Disclosure of Invention
The invention aims to overcome the defects that an identification picture occupies a large memory and has a low display speed in the prior art, and provides a display method, a display system, an electronic device and a storage medium for the identification picture, which are used for reducing the memory occupied by the identification picture and improving the display speed of the identification picture.
The invention solves the technical problems through the following technical scheme:
the invention provides a display method of an identification picture, which is applied to a terminal and comprises the following steps:
cutting an original identification picture to obtain an identification picture to be displayed;
storing the identification picture to be displayed into a reserved storage space of the terminal, wherein the reserved storage space is adaptive to the size of a memory occupied by the identification picture to be displayed;
when the terminal starts a target process, applying for the cache of the terminal, wherein the cache comprises a canvas, and the canvas is adaptive to the pixel size of the original identification picture;
extracting the identification picture to be displayed from the reserved storage space;
forming a target display picture according to the identification picture to be displayed and the canvas, and displaying the target display picture;
and releasing the cache after the target process is completed.
Preferably, the original identification picture includes a target display area, and the step of cutting the original identification picture to obtain the identification picture to be displayed includes:
and cutting a target display area of the original identification picture to be used as the identification picture to be displayed.
Preferably, the original identification picture further includes a background region other than the target display region, and before the step of applying for the cache of the terminal when the terminal starts the target process, the method further includes:
and setting the bottom color of the canvas in the cache to be the same as that of the background area.
Preferably, the pixel size of the original identification picture is consistent with the pixel size of a display area of a screen of the terminal, and the target display area is located at a first position on the original identification picture;
and in the step of forming the target display picture according to the identification picture to be displayed and the canvas, placing the identification picture to be displayed on the canvas at a position corresponding to the first position.
Preferably, the target process includes at least one of power-on, power-off and charging.
The invention also provides a display system of the identification picture, which is applied to a terminal and comprises: the system comprises a picture cutting module, a picture storage module, a cache application module, a picture extraction module, a picture display module and a cache release module;
the picture cutting module is used for cutting an original identification picture to obtain an identification picture to be displayed;
the picture storage module is used for storing the identification picture to be displayed into a reserved storage space of the terminal, and the reserved storage space is adaptive to the size of a memory occupied by the identification picture to be displayed;
the cache application module applies for the cache of the terminal when the terminal starts a target process, wherein the cache comprises a canvas, and the canvas is adaptive to the pixel size of the original identification picture;
the picture extraction module is used for extracting the identification picture to be displayed from the reserved storage space;
the picture display module is used for forming a target display picture according to the identification picture to be displayed and the canvas and displaying the target display picture;
and the cache releasing module is used for releasing the cache after the target process is completed.
Preferably, the original identification picture includes a target display area, and the picture cropping module is configured to crop the target display area of the original identification picture as the identification picture to be displayed.
Preferably, the original identification picture further includes a background region other than the target display region, and the display system further includes a ground color setting module configured to set a ground color of the canvas in the cache to be the same as the ground color of the background region.
Preferably, the pixel size of the original identification picture is consistent with the pixel size of a display area of a screen of the terminal, and the target display area is located at a first position on the original identification picture;
the picture display module is used for placing the identification picture to be displayed on the canvas at a position corresponding to the first position.
Preferably, the target process includes at least one of power-on, power-off and charging.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the computer program to realize the display method of the identification picture.
The invention also provides a computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method for displaying an identification picture as described above.
The positive progress effects of the invention are as follows: under the condition of not influencing the display effect of the picture corresponding to the target process, the invention can reduce the storage space occupied by the corresponding picture in the image file of the system and the reserved storage space set for the picture in the system, and can also reduce the speed of copying the corresponding picture from the image file and the speed of copying the corresponding picture from the reserved storage space, thereby ensuring the display effect of the corresponding picture, improving the running speed of the related process and greatly improving the experience of a user using the terminal.
Drawings
Fig. 1 is a flowchart of a method for displaying an identification picture according to embodiment 1 of the present invention.
Fig. 2 is a schematic diagram of an original identification picture in embodiment 1.
Fig. 3 is a schematic diagram of a canvas under the first scenario of embodiment 1.
Fig. 4 is a diagram illustrating a canvas in a second scenario of embodiment 1.
Fig. 5 is a schematic diagram of the to-be-displayed identification picture cropped in embodiment 1.
Fig. 6 is a schematic block diagram of a display system for identification pictures according to embodiment 2 of the present invention.
Fig. 7 is a block diagram of an electronic device according to embodiment 3 of the present invention.
Detailed Description
The invention is further illustrated by the following examples, which are not intended to limit the scope of the invention.
Example 1
The embodiment provides a display method of an identification picture, which is applied to a terminal, and as shown in fig. 1, the display method includes:
In this embodiment, the original identification picture is an identification picture indicating a target process, where the original identification picture includes multiple types of target processes, such as power-on, power-off, charging, and the like, and the identification picture to be displayed may be set for different processes, and for example, when the target processes are powered on and powered off, the identification picture to be displayed may be a terminal brand identifier, a system identifier, a manufacturer identifier, and the like; during charging, the identification picture to be displayed can be a charging reminding identification and the like.
The cut picture is stored in an image file of a terminal system, and when the terminal is started, the picture to be displayed is obtained from the image file.
Because the larger the terminal screen is, the higher the resolution thereof is, in order to make the target process of the terminal run, the size of the corresponding picture to be displayed is adapted to the screen size, and the larger the pixel of the corresponding picture is required to be adapted to the resolution of the screen, which results in that the storage space occupied by the corresponding picture is also larger and larger, therefore, the storage space occupied by the image file including the original identification picture is correspondingly increased, on one hand, the resources of the system are wasted, on the other hand, the time spent by copying the original identification picture from the image file to the reserved storage space is also increased, which undoubtedly reduces the starting speed of the terminal and reduces the experience of the user when using the terminal.
Generally, not every part of the original identification picture is a key area that needs to be displayed, for example, the original identification picture generally includes a target display area containing the key area and a background area other than the target display area. Fig. 2 shows a schematic diagram of an original LOGO picture in a specific scene, wherein a key portion to be displayed is a LOGO of a LOGO in the picture, and therefore, in one embodiment, a minimum rectangle 21 containing the LOGO of the LOGO may be cut out to serve as a LOGO picture to be displayed, and in another embodiment, a specific LOGO portion 21a may also be directly cut out to serve as a LOGO picture to be displayed.
Taking a display area of a screen with 32-bit pixels and a resolution of 1088x1920 as an example, the size of a reserved storage area of a system occupied by an original identification picture generally used as a boot LOGO is as follows: 1088x1920x4/1024/1024 ═ 7.96875M (mega). After cutting, the width and height of the to-be-displayed identification picture only retaining the key content are 300x500, and the storage space occupied by the cut picture is as follows: the 300x500x4/1024/1024 is 0.057198M, so the storage space occupied by the cut identification picture to be displayed is much smaller than that occupied by the original identification picture before cutting.
In this embodiment, the identification picture to be displayed can be obtained by cutting the original identification picture, so that the storage space in the terminal occupied by the identification picture to be displayed is reduced.
And 102, storing the identification picture to be displayed in a reserved storage space of the terminal.
The reserved storage space is adapted to the size of the memory occupied by the identification picture to be displayed.
When the terminal executes the target process, in order to prevent the abnormal display of the corresponding picture caused by mistakenly stepping on the memory used by the picture required to be displayed by the target process by other programs, a certain memory is generally reserved for the corresponding picture when the target process is executed. In the embodiment, because the identification picture to be displayed is a picture cut from the original identification picture, the occupied system memory is greatly reduced, and the reserved storage space reserved for the identification picture to be displayed is correspondingly greatly reduced, so that the system resources are saved, and in addition, the time for extracting the identification picture to be displayed from the mirror image file to the reserved storage space is also saved.
And step 1032, applying for caching when the terminal starts the target process.
The cache comprises a canvas, the canvas is initialized when the cache is applied, the pixel size and the background pattern of the canvas can be set according to requirements, and in a preferred embodiment, the pixel size of the canvas is adaptive to the pixel size of the original identification picture.
Figure 3 shows a schematic diagram of a canvas under a specific scenario, wherein the pixel size of the first canvas 32 is the same as the pixel size of the original identification picture 2.
Fig. 4 shows a schematic diagram of a canvas in another specific scenario, wherein the second canvas 42 is adapted to the pixel size of the original identification picture 2, in particular, the second canvas 42 is the same as the pixel size of the background area 22 in the original identification picture 2. Specifically, the part marked as 421 in the drawing is a hollow area, as shown in fig. 2, when the target display area to be cut is the minimum rectangle 21 containing the LOGO, the size of the pixels of the hollow area 421 and the minimum rectangle 21 is the same; when the clipped target display area is the LOGO portion 21a, the size of the pixels of the hollow area 421 and the LOGO portion 21a is the same.
In this embodiment, since the canvas is stored in the cache, the cache does not occupy the storage space of the terminal system due to the characteristic of temporary storage of the cache itself.
In this embodiment, in a specific implementation manner, before step 1032, step 1031 is further included: and setting the bottom color of the canvas in the cache of the terminal to be the same as that of the background area. Specifically, in the first canvas 32 shown in fig. 3, the first canvas 32 is set to be the same as the ground color of the background area 22 of the original identification picture 2, and in the second canvas 42 shown in fig. 4, the second canvas 42 (excluding the hollow area 421) is set to be the same as the ground color of the background area 22 of the original identification picture 2. It should be understood that the ground color here can be a pure color or a ground color including a pattern, and how to set the ground color of a specific canvas needs to be set according to the background area of the original identification picture.
And 104, extracting the identification picture to be displayed from the reserved storage space.
In this embodiment, since the storage space occupied by the identification picture to be displayed is greatly smaller than the storage space occupied by the original identification picture, the speed of extracting the identification picture to be displayed from the reserved storage space is also greatly increased, so that the speed of executing the target process by the terminal, such as the starting speed, is further increased, and the experience of the user when using the terminal is improved.
And 105, forming a target display picture according to the identifier picture to be displayed and the canvas, and displaying the target display picture.
In this embodiment, the to-be-displayed identification picture 21 and the canvas may be spliced to form a target display picture, specifically, in the first canvas 32 shown in fig. 3, the to-be-displayed identification picture 21 cut out in fig. 5 may be pasted on the first canvas 32, in a preferred embodiment, the to-be-displayed identification picture 21 is located at a first position on the original identification picture 2, and also in the spliced target display picture, the to-be-displayed identification picture 21 is located at a position corresponding to the first position, that is, when the original identification picture 2 is overlapped with the target display picture, positions of the to-be-displayed identification picture 21 in the two pictures may be completely overlapped.
In the second canvas 42 shown in fig. 4, the identification picture 21 to be displayed may be placed in the hollow area 421 to form a target display picture.
In this embodiment, the target display picture can be formed by the marker map to be displayed and the canvas, and the target display picture is displayed, so that the occupied system memory can be reduced, and the display effect of the picture corresponding to the target process can be ensured.
And step 106, releasing the cache after the target process is completed.
In this embodiment, after the target process is finished, the cache occupied by the target process can be released, so that the speed of using the terminal by the user can be increased and the experience of the user can be improved on the basis of reducing the memory occupied by the system.
In this embodiment, under the condition that the display effect of the picture corresponding to the target process is not affected, the storage space occupied by the corresponding picture in the image file of the system and the reserved storage space set for the picture in the system can be reduced, the speed of copying the corresponding picture from the image file can also be reduced, and the speed of copying the corresponding picture from the reserved storage space can be reduced, so that the display effect of the corresponding picture is ensured, the running speed of the relevant process can be increased, and the experience of the user in using the terminal is greatly improved.
Example 2
The embodiment provides a display system for identifying a picture, which is applied in a terminal, and as shown in fig. 6, the display system includes: the system comprises a picture cropping module 301, a picture storage module 302, a cache application module 303, a picture extraction module 304, a picture display module 305 and a cache release module 306.
The picture cropping module 301 is configured to crop an original identification picture to obtain an identification picture to be displayed.
In this embodiment, the original identification picture is an identification picture indicating a target process, where the original identification picture includes multiple types of target processes, such as power-on, power-off, charging, and the like, and the identification picture to be displayed may be set for different processes, and for example, when the target processes are powered on and powered off, the identification picture to be displayed may be a terminal brand identifier, a system identifier, a manufacturer identifier, and the like; during charging, the identification picture to be displayed can be a charging reminding identification and the like.
Because the larger the terminal screen is, the higher the resolution thereof is, in order to make the target process of the terminal run, the size of the corresponding picture to be displayed is adapted to the screen size, and the larger the pixel of the corresponding picture is required to be adapted to the resolution of the screen, which results in that the storage space occupied by the corresponding picture is also larger and larger, therefore, the storage space occupied by the image file including the original identification picture is correspondingly increased, on one hand, the resources of the system are wasted, on the other hand, the time spent by copying the original identification picture from the image file to the reserved storage space is also increased, which undoubtedly reduces the starting speed of the terminal and reduces the experience of the user when using the terminal.
Generally, not every part of the original identification picture is a key area that needs to be displayed, for example, the original identification picture generally includes a target display area containing the key area and a background area other than the target display area. Fig. 2 shows a schematic diagram of an original identification picture in a specific scene, where a key portion to be displayed is a LOGO of a LOGO in the picture, and therefore, in an embodiment, the picture cropping module 301 may crop the minimum rectangle 21 containing the LOGO of the LOGO as an identification picture to be displayed, and in another embodiment, the picture cropping module 301 may also directly crop the specific LOGO portion 21a of the LOGO as an identification picture to be displayed.
Taking a display area of a screen with 32-bit pixels and a resolution of 1088x1920 as an example, the size of a reserved storage area of a system occupied by an original identification picture generally used as a boot LOGO is as follows: 1088x1920x4/1024/1024 ═ 7.96875M (mega). The width and height of the to-be-displayed identification picture which is cut by the picture cutting module 301 and only retains the key content is 300x500, and the storage space occupied by the cut picture is as follows: since 0.057198M is equal to 300 × 500 × 4/1024/1024, the storage space occupied by the identification picture to be displayed cut by the picture cutting module 301 is much smaller than the storage space occupied by the original identification picture before cutting.
In this embodiment, the to-be-displayed identification picture can be obtained by cutting the original identification picture through the picture cutting module 301, so that the storage space in the terminal occupied by the to-be-displayed identification picture is reduced.
The image storage module 302 is configured to store the identification image to be displayed in a reserved storage space of the terminal, where the reserved storage space is adapted to a size of a memory occupied by the identification image to be displayed.
The reserved storage space is adapted to the size of the memory occupied by the identification picture to be displayed.
When the terminal executes the target process, in order to prevent the abnormal display of the corresponding picture caused by mistakenly stepping on the memory used by the picture required to be displayed by the target process by other programs, a certain memory is generally reserved for the corresponding picture when the target process is executed. However, in this embodiment, since the identification picture to be displayed is a picture obtained by cutting out the original identification picture, the occupied system memory is greatly reduced, and the reserved storage space reserved for the identification picture to be displayed is correspondingly greatly reduced, so that system resources are saved, and in addition, the time from the extraction of the identification picture to be displayed from the image file to the reserved storage space by the picture storage module 302 is also saved.
The cache application module 303 applies for a cache of the terminal when the terminal starts the target process, where the cache includes a canvas, and the canvas is adapted to the pixel size of the original identification picture.
The cache comprises a canvas, the cache application module 303 initializes the canvas when applying for the cache, the pixel size and the background pattern of the canvas can be set according to requirements, and in a preferred embodiment, the pixel size of the canvas is adapted to the pixel size of the original identification picture.
Figure 3 shows a schematic diagram of a canvas under a specific scenario, wherein the pixel size of the first canvas 32 is the same as the pixel size of the original identification picture 2.
Fig. 4 shows a schematic diagram of a canvas in another specific scenario, wherein the second canvas 42 is adapted to the pixel size of the original identification picture 2, in particular, the second canvas 42 is the same as the pixel size of the background area 22 in the original identification picture 2. Specifically, in the drawing, the part marked as 421 is a hollow area, as shown in fig. 2, when the clipped target display area is the minimum rectangle 21 containing the LOGO, the size of the pixels of the hollow area 421 and the minimum rectangle 21 is the same; when the clipped target display area is the LOGO portion 21a, the size of the pixels of the hollow area 421 and the LOGO portion 21a is the same.
In this embodiment, since the canvas is stored in the cache, the cache applied by the cache application module 303 does not occupy the storage space of the terminal system due to the characteristic of temporary storage of the cache.
In this embodiment, in a specific implementation manner, the display system further includes a bottom color setting module 307, configured to set the bottom color of the canvas in the cache to be the same as the bottom color of the background area. Specifically, in the first canvas 32 shown in fig. 3, the ground color setting module is configured to set the first canvas 32 to be the same as the ground color of the background area 22 of the original identification picture 2, and in the second canvas 42 shown in fig. 4, the ground color setting module is configured to set the second canvas 42 (excluding the hollow area 421) to be the same as the ground color of the background area 22 of the original identification picture 2. It should be understood that the ground color here can be a pure color or a ground color including a pattern, and how to set the ground color of a specific canvas needs to be set according to the background area of the original identification picture.
The picture extracting module 304 is configured to extract the identification picture to be displayed from the reserved storage space. In this embodiment, since the storage space occupied by the identification picture to be displayed is greatly smaller than the storage space occupied by the original identification picture, the speed of extracting the identification picture to be displayed from the reserved storage space by the picture extracting module 304 is also greatly increased, so that the terminal starting speed is further increased, and the user experience when using the terminal is improved.
The picture display module 305 is configured to form a target display picture according to the identifier and the canvas to be displayed, and display the target display picture.
In this embodiment, the image display module 305 may splice the identification picture 21 to be displayed and the canvas to form a target display picture, specifically, in the first canvas 32 shown in fig. 3, the cut identification picture 21 to be displayed in fig. 5 may be pasted on the first canvas 32, in a preferred embodiment, the identification picture 21 to be displayed is located at a first position on the original identification picture 2, and also in the spliced target display picture, the identification picture 21 to be displayed is located at a position corresponding to the first position, that is, when the original identification picture 2 is overlapped with the target display picture, positions of the identification picture 21 to be displayed in the two pictures may be completely overlapped.
While in the second canvas 42 shown in fig. 4, the picture display module 305 may place the identification picture 21 to be displayed in the hollow area 421 to form the target display picture.
In this embodiment, the picture display module 305 may form a target display picture through the to-be-displayed marker map and the canvas, and display the target display picture, so as to reduce occupied system memory and ensure a display effect of a picture corresponding to a target process.
The cache release module 306 is configured to release the cache after the target process is completed.
In this embodiment, after the target process is finished, the cache release module 306 may release the cache occupied by the target process, so that the speed of the user using the terminal is increased and the experience of the user is improved on the basis of reducing the memory occupied by the system.
In this embodiment, under the condition that the display effect of the picture corresponding to the target process is not affected, the storage space occupied by the corresponding picture in the image file of the system and the reserved storage space set for the picture in the system can be reduced, the speed of copying the corresponding picture from the image file can also be reduced, and the speed of copying the corresponding picture from the reserved storage space can be reduced, so that the display effect of the corresponding picture is ensured, the running speed of the relevant process can be increased, and the experience of the user in using the terminal is greatly improved.
Example 3
The embodiment of the present invention further provides an electronic device, which may be represented in a form of a computing device (for example, may be a server device), and includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor may implement the method for displaying the identification picture in embodiment 1 of the present invention when executing the computer program.
Fig. 7 shows a schematic diagram of a hardware structure of the present embodiment, and as shown in fig. 7, the electronic device 9 specifically includes:
at least one processor 91, at least one memory 92, and a bus 93 for connecting the various system components (including the processor 91 and the memory 92), wherein:
the bus 93 includes a data bus, an address bus, and a control bus.
The processor 91 executes various functional applications and data processing, such as a display method of an identification picture in embodiment 1 of the present invention, by running the computer program stored in the memory 92.
The electronic device 9 may further communicate with one or more external devices 94 (e.g., a keyboard, a pointing device, etc.). Such communication may be through an input/output (I/O) interface 95. Also, the electronic device 9 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 96. The network adapter 96 communicates with the other modules of the electronic device 9 via the bus 93. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 9, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems, etc.
It should be noted that although in the above detailed description several units/modules or sub-units/modules of the electronic device are mentioned, such a division is merely exemplary and not mandatory. Indeed, the features and functionality of two or more of the units/modules described above may be embodied in one unit/module, according to embodiments of the application. Conversely, the features and functions of one unit/module described above may be further divided into embodiments by a plurality of units/modules.
Example 4
The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the method for displaying an identification picture in embodiment 1 of the present invention.
More specific examples, among others, that the readable storage medium may employ may include, but are not limited to: a portable disk, a hard disk, random access memory, read only memory, erasable programmable read only memory, optical storage device, magnetic storage device, or any suitable combination of the foregoing.
In a possible implementation manner, the present invention can also be implemented in a form of a program product, which includes program code, and when the program product runs on a terminal device, the program code is configured to enable the terminal device to execute a step of implementing the display method for an identification picture in embodiment 1 of the present invention.
Where program code for carrying out the invention is written in any combination of one or more programming languages, the program code may be executed entirely on the user device, partly on the user device, as a stand-alone software package, partly on the user device and partly on a remote device or entirely on the remote device.
While specific embodiments of the invention have been described above, it will be appreciated by those skilled in the art that this is by way of example only, and that the scope of the invention is defined by the appended claims. Various changes and modifications to these embodiments may be made by those skilled in the art without departing from the spirit and scope of the invention, and these changes and modifications are within the scope of the invention.
Claims (12)
1. A display method of an identification picture is applied to a terminal, and the display method comprises the following steps:
cutting an original identification picture to obtain an identification picture to be displayed;
storing the identification picture to be displayed into a reserved storage space of the terminal, wherein the reserved storage space is adaptive to the size of a memory occupied by the identification picture to be displayed;
when the terminal starts a target process, applying for the cache of the terminal, wherein the cache comprises a canvas, and the canvas is adaptive to the pixel size of the original identification picture;
extracting the identification picture to be displayed from the reserved storage space;
forming a target display picture according to the identification picture to be displayed and the canvas, and displaying the target display picture;
and releasing the cache after the target process is completed.
2. The method for displaying an identification picture as claimed in claim 1, wherein the original identification picture includes a target display area, and the step of cropping the original identification picture to obtain the identification picture to be displayed includes:
and cutting a target display area of the original identification picture to be used as the identification picture to be displayed.
3. The method for displaying identification pictures according to claim 2, wherein the original identification picture further includes a background region other than the target display region, and the step of applying for the cache of the terminal when the terminal starts a target process further includes:
and setting the bottom color of the canvas in the cache to be the same as that of the background area.
4. The method for displaying an identification picture according to claim 1, wherein the pixel size of the original identification picture is identical to the pixel size of the display area of the screen of the terminal, and the target display area is located at a first position on the original identification picture;
and in the step of forming the target display picture according to the identification picture to be displayed and the canvas, placing the identification picture to be displayed on the canvas at a position corresponding to the first position.
5. The method for displaying identification pictures as claimed in claim 1, wherein the target process comprises at least one of power-on, power-off and charging.
6. The display system for identifying the pictures is applied to a terminal and comprises: the system comprises a picture cutting module, a picture storage module, a cache application module, a picture extraction module, a picture display module and a cache release module;
the picture cutting module is used for cutting an original identification picture to obtain an identification picture to be displayed;
the picture storage module is used for storing the identification picture to be displayed into a reserved storage space of the terminal, and the reserved storage space is adaptive to the size of a memory occupied by the identification picture to be displayed;
the cache application module applies for the cache of the terminal when the terminal starts a target process, wherein the cache comprises a canvas, and the canvas is adaptive to the pixel size of the original identification picture;
the picture extraction module is used for extracting the identification picture to be displayed from the reserved storage space;
the picture display module is used for forming a target display picture according to the identification picture to be displayed and the canvas and displaying the target display picture;
and the cache releasing module is used for releasing the cache after the target process is completed.
7. The identification picture display system of claim 6, wherein the original identification picture includes a target display area, and the picture cropping module is configured to crop the target display area of the original identification picture as the identification picture to be displayed.
8. The identification picture display system of claim 7 wherein said original identification picture further comprises a background region other than said target display region, said display system further comprising a background color setting module for setting a background color of said canvas in said cache to be the same as a background color of said background region.
9. The identification picture display system of claim 6, wherein the original identification picture has a pixel size identical to a pixel size of a display area of a screen of the terminal, and the target display area is located at a first position on the original identification picture;
the picture display module is used for placing the identification picture to be displayed on the canvas at a position corresponding to the first position.
10. The picture-identifying display system of claim 6, wherein the target process comprises at least one of power on, power off, and charging.
11. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of displaying an identification picture according to any one of claims 1 to 5 when executing the computer program.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of displaying an identification picture according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011085478.0A CN112052065B (en) | 2020-10-12 | 2020-10-12 | Display method, display system, electronic device and storage medium for identification picture |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011085478.0A CN112052065B (en) | 2020-10-12 | 2020-10-12 | Display method, display system, electronic device and storage medium for identification picture |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112052065A true CN112052065A (en) | 2020-12-08 |
CN112052065B CN112052065B (en) | 2023-05-02 |
Family
ID=73606101
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011085478.0A Active CN112052065B (en) | 2020-10-12 | 2020-10-12 | Display method, display system, electronic device and storage medium for identification picture |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112052065B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006295749A (en) * | 2005-04-14 | 2006-10-26 | Fuji Photo Film Co Ltd | Reduced image list displaying system, method, and program controlling the system |
CN101807390A (en) * | 2010-03-25 | 2010-08-18 | 深圳市炬力北方微电子有限公司 | Electronic device and method and system for displaying image data |
CN103544048A (en) * | 2013-10-31 | 2014-01-29 | Tcl集团股份有限公司 | Boot animation display method of Android system and system comprising same |
CN104133649A (en) * | 2014-07-24 | 2014-11-05 | 可牛网络技术(北京)有限公司 | Picture display method, device and terminal |
CN104881261A (en) * | 2015-05-20 | 2015-09-02 | 福州瑞芯微电子有限公司 | Method and system for reasonably using memory of display buffer |
CN105847907A (en) * | 2016-03-24 | 2016-08-10 | 广州视源电子科技股份有限公司 | Method and device for replacing television boot animation |
CN106681745A (en) * | 2015-11-09 | 2017-05-17 | 五八同城信息技术有限公司 | Picture loading method and terminal |
-
2020
- 2020-10-12 CN CN202011085478.0A patent/CN112052065B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006295749A (en) * | 2005-04-14 | 2006-10-26 | Fuji Photo Film Co Ltd | Reduced image list displaying system, method, and program controlling the system |
CN101807390A (en) * | 2010-03-25 | 2010-08-18 | 深圳市炬力北方微电子有限公司 | Electronic device and method and system for displaying image data |
CN103544048A (en) * | 2013-10-31 | 2014-01-29 | Tcl集团股份有限公司 | Boot animation display method of Android system and system comprising same |
CN104133649A (en) * | 2014-07-24 | 2014-11-05 | 可牛网络技术(北京)有限公司 | Picture display method, device and terminal |
CN104881261A (en) * | 2015-05-20 | 2015-09-02 | 福州瑞芯微电子有限公司 | Method and system for reasonably using memory of display buffer |
CN106681745A (en) * | 2015-11-09 | 2017-05-17 | 五八同城信息技术有限公司 | Picture loading method and terminal |
CN105847907A (en) * | 2016-03-24 | 2016-08-10 | 广州视源电子科技股份有限公司 | Method and device for replacing television boot animation |
Also Published As
Publication number | Publication date |
---|---|
CN112052065B (en) | 2023-05-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109634645B (en) | Firmware upgrading method and terminal | |
US10949226B2 (en) | Display method of multi-application based on Android system, and terminal device | |
CN110737479A (en) | method for starting operating system without disk, server and readable storage medium | |
CN108989680B (en) | Camera shooting process starting method, computer device and computer readable storage medium | |
CN111367518B (en) | Page layout method, page layout device, computing equipment and computer storage medium | |
CN109569214B (en) | Application display method and device in split screen mode and display equipment | |
CN112579187A (en) | Optimization method and device for cold start of application program | |
US20060288299A1 (en) | System and method for performing an interface save/restore procedure | |
CN113126862A (en) | Screen capture method and device, electronic equipment and readable storage medium | |
EP4231243A1 (en) | Data storage management method, object rendering method, and device | |
CN113645369A (en) | Display method and device of multiple screens, computer readable storage medium and terminal | |
CN112052065B (en) | Display method, display system, electronic device and storage medium for identification picture | |
CN113342365A (en) | Operating system deployment method, device, equipment and computer-readable storage medium | |
JP7053979B2 (en) | Information processing equipment, information processing methods, and programs | |
CN114327733B (en) | Dynamic updating method, device, equipment and medium for starting-up interactive interface | |
CN112181868B (en) | Display method, display system, electronic device and storage medium for identification picture | |
CN112988357B (en) | Panoramic image display method, computer storage medium and electronic device | |
CN114253752A (en) | Application crash processing method, device, equipment and medium | |
CN115510508A (en) | Page information protection method and device and electronic equipment | |
CN113687750B (en) | Screenshot processing method and device | |
CN115599451A (en) | Boot method and device for multiple operating systems | |
CN112100409A (en) | Multimedia information display method and device, storage medium and terminal | |
CN111741348B (en) | Method, system, equipment and storage medium for controlling webpage video playing | |
CN111414211A (en) | Method, device, equipment and storage medium for displaying image in system starting phase | |
CN107333180B (en) | Information source switching method of television, television and computer readable storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |