CN111857699A - Fillet image display method and device, electronic equipment and readable storage medium - Google Patents

Fillet image display method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN111857699A
CN111857699A CN202010697273.1A CN202010697273A CN111857699A CN 111857699 A CN111857699 A CN 111857699A CN 202010697273 A CN202010697273 A CN 202010697273A CN 111857699 A CN111857699 A CN 111857699A
Authority
CN
China
Prior art keywords
terminal
fillet
image
screen
fillet image
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
Application number
CN202010697273.1A
Other languages
Chinese (zh)
Inventor
谢润斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010697273.1A priority Critical patent/CN111857699A/en
Publication of CN111857699A publication Critical patent/CN111857699A/en
Priority to PCT/CN2021/092118 priority patent/WO2022016956A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The application relates to a fillet image display method, a fillet image display device, an electronic device and a computer-readable storage medium, wherein the method comprises the following steps: when a system interface application of a terminal is started, acquiring an application code corresponding to the system interface application; acquiring a fillet image identifier from the application code; acquiring a fillet image corresponding to the fillet image identifier from a preset resource set, wherein the fillet image is matched with the screen type of the terminal; and displaying the fillet image in an edge area on a screen of the terminal. By adopting the method, different screen types can be adapted through the application codes applied by the same system interface.

Description

Fillet image display method and device, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a rounded corner image display method and apparatus, an electronic device, and a computer-readable storage medium.
Background
With the development of computer technology, the types of screens of terminals are increasing, such as a full screen, a bang screen, a water drop screen, a hole digging screen, and the like. And four angles of terminal screen are the right angle, and in order to make the terminal screen more pleasing to the eye, often can overlap the fillet image at four right angles of terminal screen for four angles of terminal screen demonstrate the effect at fillet.
However, the rounded images in the conventional method are often directly configured in the application code of the system, and the same application code can only be installed on a terminal of a specified screen type, and cannot be adapted to different types of screens.
Disclosure of Invention
The embodiment of the application provides a fillet image display method and device, electronic equipment and a computer readable storage medium, which can adapt to different screen types through the same set of application codes.
A rounded corner image display method includes:
when a system interface application of a terminal is started, acquiring an application code corresponding to the system interface application;
acquiring a fillet image identifier from the application code;
acquiring a fillet image corresponding to the fillet image identifier from a preset resource set, wherein the fillet image is matched with the screen type of the terminal;
and displaying the fillet image in an edge area on a screen of the terminal.
A rounded image display device, comprising:
the application code module is used for acquiring an application code corresponding to a system interface application when the system interface application of the terminal is started;
the identification acquisition module is used for acquiring a fillet image identification from the application code;
The fillet image acquisition module is used for acquiring a fillet image corresponding to the fillet image identifier from a preset resource set, and the fillet image is matched with the screen type of the terminal;
and the display module is used for displaying the fillet image in the edge area on the screen of the terminal.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
when a system interface application of a terminal is started, acquiring an application code corresponding to the system interface application;
acquiring a fillet image identifier from the application code;
acquiring a fillet image corresponding to the fillet image identifier from a preset resource set, wherein the fillet image is matched with the screen type of the terminal;
and displaying the fillet image in an edge area on a screen of the terminal.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
when a system interface application of a terminal is started, acquiring an application code corresponding to the system interface application;
acquiring a fillet image identifier from the application code;
Acquiring a fillet image corresponding to the fillet image identifier from a preset resource set, wherein the fillet image is matched with the screen type of the terminal;
and displaying the fillet image in an edge area on a screen of the terminal.
In the embodiment of the fillet image display method, the fillet image display device, the electronic device and the computer-readable storage medium, the fillet image matched with the screen type of the terminal is stored in the terminal in advance. When the system interface application of the terminal is started, the application code corresponding to the system interface application is obtained, and the fillet image corresponding to the fillet image identifier is obtained from the preset resource set, so that the coupling degree of the fillet image and the system interface application is reduced, and the performance and the stability of the system are improved. By the round-corner image display method, terminals with different screen types can use the same application code, and maintenance cost is reduced. The fillet image identifier in the application code can call the fillet image prestored in the terminal, so that the screen type of the terminal does not need to be judged, and the starting efficiency of a system interface is improved. The fillet image is displayed in the edge area on the screen of the terminal, and the edge right-angle area of the screen and the edge area with burrs can be set to be a fillet effect, so that the system interface is more attractive.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a diagram illustrating an exemplary embodiment of a rounded corner image display method;
FIG. 2 is a flow diagram of a rounded corner image display method in one embodiment;
FIG. 3 is a schematic illustration of a fillet image in one embodiment;
FIG. 4 is a schematic diagram of an interface in which a rounded image is displayed in an edge area of a screen in one embodiment;
FIG. 5 is a schematic diagram of a rounded corner image display method in one embodiment;
FIG. 6 is a block diagram of a rounded corner image display device in one embodiment;
FIG. 7 is a diagram illustrating an internal structure of an electronic device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Fig. 1 is a schematic diagram of an application environment of a rounded corner image display method in an embodiment. As shown in fig. 1, the application environment includes a terminal 110 and a server 120. When the system interface application of the terminal 110 is started, the terminal 110 may obtain an application code corresponding to the system interface application from the server 120. The terminal 110 obtains the rounded corner image identifier from the application code. Then, the terminal 110 obtains a fillet image corresponding to the fillet image identifier from the preset resource set, where the fillet image matches with the screen type of the terminal. Then, the terminal 110 displays a rounded image in an edge area on a screen of the terminal. Wherein the terminal 110 communicates with the server 120 through a network. The terminal 110 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the server 120 may be implemented by an independent server or a server cluster formed by a plurality of servers.
FIG. 2 is a flowchart of a rounded corner image display method in one embodiment. The rounded corner image display method in the present embodiment is described by taking the example of the method performed in the terminal in fig. 1. As shown in fig. 2, the rounded corner image display method includes steps 202 to 208.
Step 202, when the system interface application of the terminal is started, acquiring an application code corresponding to the system interface application.
The system interface application is a systemin application, and the systemin application provides system-level information for a user and is displayed as a system interface interacting with the user. The system interface displays information such as lock screen, status bar, bottom navigation bar, list of recently used applications, etc.
Specifically, when the terminal is powered on, the system interface application of the terminal is started to display the system interface. When the terminal receives an instruction of starting the system interface application, the terminal can acquire an application code corresponding to the system interface application. And starting the system interface application by running the application code so as to display the system interface of the terminal.
And step 204, acquiring a fillet image identifier from the application code.
The fillet image is an image with radian, and the fillet image can be superposed on the terminal screen, so that the terminal screen presents a pattern with a fillet effect. The fillet image identifier is used for marking different fillet images, and the fillet image identifier can be the name of the fillet image, the characteristic of the fillet image and the like.
As shown in fig. 3, the screen type is a rounded corner image of a dug screen, and is a rounded corner image of the dug screen in the upper left corner. The size and the shape of the fillet image and the size of the round hole are matched with the edge area of the upper left corner of the hole digging screen.
Specifically, if the application code corresponding to the system interface application has the fillet image identifier, the terminal may obtain the fillet image identifier from the application code. Further, a plurality of different fillet image identifications can exist in the application code, and the terminal can acquire the plurality of different fillet image identifications from the application code. The plurality is at least two, e.g., there are 5 different rounded corner image identifications in the application code.
And step 206, acquiring a fillet image corresponding to the fillet image identifier from the preset resource set, wherein the fillet image is matched with the screen type of the terminal.
The screen types of the terminal include, but are not limited to, a full screen, a bang screen, a water drop screen, a hole digging screen, and the like. The preset resources store images matched with the screen types of the terminals in a centralized mode. For example, the screen type is the terminal of bang screen, and the preset resource of this terminal is concentrated and is deposited the fillet image with bang screen assorted to set up the marginal area of bang screen into the fillet. And if the screen type is a terminal of a water drop screen, the preset resources of the terminal are used for intensively storing the fillet images matched with the water drop screen.
Specifically, the terminal may detect whether a preset resource set exists in the terminal. And when a preset resource set exists in the terminal, acquiring the fillet image with the same identifier as the fillet image identifier from the preset resource set.
In this embodiment, a plurality of fillet images may exist in the preset resource set, and each fillet image has a unique identifier, that is, a fillet image identifier. When the terminal obtains the plurality of different fillet image identifications from the application code, the terminal can obtain the fillet images with the same fillet image identification from the preset resource set.
And step 208, displaying a fillet image in the edge area on the screen of the terminal.
Wherein, the edge area on the screen refers to four right angles of the edge of the screen and the area with holes on the screen. For example, if a hole is provided at a position in the middle of the upper edge of the drip screen, a rounded image in which holes having the same shape and size are also provided is required to be displayed in the hole-provided region. If the upper left area of the screen edge of the hole digging screen has holes, a rounded corner image is required to be displayed in the upper left area, and the rounded corner image also has holes with the same shape and size.
Specifically, the terminal may display a rounded-corner image acquired from a preset resource set in an edge area on a terminal screen. Further, when the terminal acquires a plurality of fillet images from the preset resource set, the corresponding relation between each fillet image and each edge area on the screen is determined. Then, the terminal may display each rounded image at the corresponding edge area.
In a traditional round-corner image display mode, a round-corner image is directly configured into an application code of a system interface. Once the installation package of the application code is compiled and generated, the fillet image in the installation package of the application code cannot be changed, so that the installation package of the application code can only be installed on a terminal with a specified screen type and cannot be adapted to different types of screens.
In this embodiment, a fillet image matched with the screen type of the terminal is stored in the terminal in advance. When the system interface application of the terminal is started, the application code corresponding to the system interface application is obtained, and the fillet image corresponding to the fillet image identifier is obtained from the preset resource set, so that the coupling degree of the fillet image and the system interface application is reduced, and the performance and the stability of the system are improved. By the round-corner image display method, terminals with different screen types can use the same application code, and maintenance cost is reduced. The fillet image identifier in the application code can call the fillet image prestored in the terminal, so that the screen type of the terminal does not need to be judged, and the starting efficiency of a system interface is improved. The fillet image is displayed in the edge area on the screen of the terminal, and the edge right-angle area of the screen and the edge area with burrs can be set to be a fillet effect, so that the system interface is more attractive.
In one embodiment, at least one preset set of resources may exist in the terminal system. The terminal can determine the type of the current screen and determine the corresponding preset resource set according to the type of the screen. Then, the terminal can obtain the fillet image corresponding to the fillet image identifier from the preset resource set corresponding to the screen type.
In one embodiment, obtaining a fillet image corresponding to the fillet image identifier from a preset resource set includes:
acquiring a fillet image corresponding to the fillet image identifier from a preset resource set of a preset path; the predetermined path is different from a storage path of the system interface application.
Specifically, when a terminal receives a starting instruction of a system interface application, an application code is obtained from a storage path of the system interface application. Then, the terminal acquires the fillet image identification from the application code.
Then, the terminal can detect whether a preset path exists in the system, and determine whether a preset resource set exists in the preset path. When a preset path exists in the terminal system and a preset resource set exists in the preset path, acquiring a fillet image with the same identifier as the fillet image identifier from the preset resource set. The preset path is different from a storage path of the system interface application of the terminal. The preset path is different from a storage path of an application code of a system interface application of the terminal.
In this embodiment, the fillet image is stored in the preset path of the terminal system different from the storage path of the system interface application, so that the fillet image and the system interface application can be decoupled, the coupling degree of the fillet image and the system interface application is reduced, and terminals of different screen types can use the same set of application codes of the system interface application.
In one embodiment, displaying a rounded corner image in an edge area on a screen of a terminal includes: determining the mapping relation between each acquired fillet image and each edge area on the screen of the terminal; and displaying the rounded corner image with the mapping relation in each edge area of the screen.
Specifically, the terminal obtains each rounded corner image identifier from the application code, and obtains the rounded corner image corresponding to each rounded corner image identifier from the preset resource set. Then, the terminal can determine the orientation of each edge area on the terminal screen on the screen, and determine the mapping relation between the image identifier and each orientation of each rounded corner image. Then, the terminal may display the fillet image in an edge area corresponding to the orientation having the mapping relationship with the fillet image identifier, so that each fillet image is displayed in the corresponding edge area.
In this embodiment, through the mapping relationship between each rounded image and each edge area on the screen of the terminal, which edge area each rounded image is displayed in is determined quickly and accurately, so that each edge area of the screen of the terminal is set to have a rounded effect quickly and accurately.
In one embodiment, the rounded corner image is identified as the azimuth name of the rounded corner image; determining a mapping relation between each acquired fillet image and each edge area on a screen of the terminal, wherein the mapping relation comprises the following steps:
determining the position of each edge area on the screen of the terminal on the screen; and determining the mapping relation between each rounded corner image and each edge area according to the obtained azimuth name of each rounded corner image and the azimuth of each edge area.
The azimuth name of the rounded image is a name in which the azimuth is used as the rounded image, and for example, the azimuth names of the rounded images are "upper left", "upper right", and the like. The azimuth name may be referenced to the vertical or horizontal screen of the screen.
Specifically, the fillet image is identified as the azimuth name of the fillet image. The terminal acquires the azimuth name of each fillet image from the application code and acquires the fillet image with the same name as the azimuth name of each fillet image from the preset resource set. Then, the terminal can determine the orientation of each edge area on the screen of the terminal on the basis of the vertical screen of the terminal, and compare the orientation name of each rounded image with the orientation of each edge area on the screen. And if the azimuth name is the same as the azimuth on the screen, the fillet image corresponding to the azimuth name has a mapping relation with the edge area corresponding to the azimuth. In the same way, the edge area on the terminal screen having a mapping relation with each rounded corner image can be determined.
In this embodiment, names of the fillet images are named by the azimuth, and which edge area of the screen the corresponding fillet image should be displayed in can be directly determined by the azimuth name, so that the fillet effect is rapidly and accurately set for each edge area of the screen of the terminal.
As shown in fig. 4, which is an interface diagram of an embodiment, each rounded corner image is displayed in each edge area of the screen. The terminal screen is based on the vertical screen to determine the orientation of each edge area. The terminal obtains the azimuth names of the fillet images from the application codes, such as azimuth names of 'upper left', 'upper middle', 'upper right', 'lower left', 'lower right', and the like shown in the figure. And the terminal acquires the fillet image with the azimuth name from the preset resource set according to the azimuth name. And then, the terminal moves the fillet image to each edge area of the screen according to each azimuth name, so that each fillet image is matched with the edge area of the corresponding azimuth, and the fillet effect is displayed on the system interface.
In one embodiment, the method further comprises: when a screen of the terminal rotates, determining a rotation angle and a rotation direction; and rotating the fillet images displayed in the edge areas of the terminal according to the rotation angle and the rotation direction, and displaying the corresponding rotated fillet images in the edge areas of the rotated screen.
Specifically, when the screen of the terminal is rotated, the terminal determines the rotation angle and the rotation direction of the screen. Then, the terminal can rotate each rounded image displayed on the terminal screen by the same angle according to the rotation direction to obtain each rotated rounded image. Then, the terminal displays each rotated fillet image in an edge area of each rotated screen. For example, when the terminal rotates 90 degrees counterclockwise, the physical hardware hole digging position of the screen also rotates to the lower left corner, and the angle also rotates 90 degrees counterclockwise, and then each rounded image needs to be rotated 90 degrees counterclockwise, so that the rounded image is attached to the edge area of the screen.
In this embodiment, when the screen of the terminal is rotated, the rotation angle and the rotation direction are determined. And rotating the fillet images displayed in the edge areas of the terminal according to the rotating angle and the rotating direction, so that the fillet images can rotate along with the screen, and the rotated fillet images can be matched with the edge areas.
In one embodiment, before acquiring an application code corresponding to a system interface application when the system interface application of the terminal is started, the method further includes: determining the screen type of the terminal, and acquiring a fillet image matched with the screen type; and adding a preset resource set in the terminal, and storing the fillet image to the preset resource set.
Specifically, the terminal determines the type of screen used and acquires a rounded-corner image matching the screen type. Further, the terminal can obtain a preset number of matched fillet images according to the screen type. For example, when the screen type of the terminal is a drip screen, 5 rounded images matched with the drip screen are acquired. And if the screen type of the terminal is a full screen, acquiring 4 rounded corner images matched with the full screen.
And then, adding a preset resource set in the system by the terminal, and storing the obtained fillet image into the preset resource set. The storage path of the preset resource set is different from the storage path of the application code applied to the system interface of the terminal.
In this embodiment, the terminal may add a preset path in the system, add a preset resource set in the preset path, and store the obtained fillet image in the preset resource set of the preset path of the system. The preset path is different from a storage path of the system interface application of the terminal. The preset path is different from a storage path of an application code of a system interface application of the terminal.
In this embodiment, the rounded corner image matched with the screen type is acquired by determining the screen type of the terminal, so that the rounded corner image matched with the screen type can be acquired in advance. And adding a preset resource set in the terminal, and storing the fillet image to the preset resource set, so that the acquired fillet image can be stored in a specific position of a terminal system for being called by system interface application. Moreover, storage in a particular location of the system can prevent the rounded image from being removed by other applications. If the storage path of the preset resource set is different from the storage path of the application code of the system interface application of the terminal, the resource decoupling of the fillet image and the system interface application is realized, so that the fillet image in the terminal can be directly called by one set of application code of the system interface application in different terminals without judging the screen type.
In one embodiment, the method further comprises: when a preset resource set does not exist in the terminal, acquiring a default resource set; acquiring a default fillet image corresponding to the fillet image identifier from a default resource set; displaying a rounded corner image in an edge area on a screen of a terminal, including: displaying a default fillet image in an edge area on a screen of the terminal.
Specifically, the terminal detects whether a preset resource set exists in the system. And when a preset resource set exists in the terminal system, acquiring the fillet image corresponding to the fillet image identifier from the preset resource set. And when the preset resource set does not exist in the terminal system, determining a default resource set, and acquiring the fillet image corresponding to the fillet image identifier from the default resource set.
Then, the terminal may display the rounded-corner image acquired from the default resource set on an edge area on the terminal screen. Further, when the terminal acquires a plurality of fillet images from the default resource set, the corresponding relation between each fillet image and each edge area on the screen is determined. Then, the terminal may display each default fillet image in the corresponding edge area.
In this embodiment, the terminal may detect whether a preset path exists in the system, and when the preset path exists in the terminal system, obtain the fillet image corresponding to the fillet image identifier from the preset resource set of the preset path. And when the preset path does not exist in the terminal system, acquiring a default path, and acquiring a default fillet image corresponding to the fillet image identifier from a default resource set of the default path.
In this embodiment, when a preset resource set does not exist in the terminal, the default fillet image corresponding to the fillet image identifier is acquired from the default resource set, so that the condition that the calling of the system interface application to the fillet image is mistaken is avoided. The default fillet image is displayed in the edge area of the screen of the terminal, and the edge right-angle area of the screen and the edge area with burrs can be set to be a fillet effect, so that the system interface is more attractive.
In one embodiment, the number of the fillet images in the preset resource set is less than or equal to the default number of the fillet images in the default resource set.
Specifically, the rounded-corner image in the preset resource set is an image that matches the screen type of the terminal. The number of the rounded corner images matched by different screen types is different, for example, a hole digging screen with a hole at the upper left of the screen, that is, the hole is positioned at the upper left of the edge of the screen, and four right-angle areas at the edge of the screen are respectively configured with one rounded corner image, and the four right-angle areas are respectively the upper left area, the upper right area, the lower left area and the lower right area. Four fillet images are concentrated in the preset resource of the hollowed screen, and the fillet image displayed on the upper left side needs to be perforated. The terminal screen of bang screen, the trompil is in the centre of the screen top, then need set up a fillet image in the centre, and four right angle regions at screen edge respectively need dispose a fillet image, then the preset resource of this bang screen is concentrated and is deposited 5 screen type assorted fillet images at this terminal.
There are a preset number of default rounded corner images in the default resource set, for example 5. The number of the fillet images in the preset resource set is less than or equal to the default number of the fillet images in the default resource set. The default resources of the terminals in different screen types are centralized, the stored default fillet images are the same, and the number of the stored default fillet images is the same.
In this embodiment, when the number of the fillet images in the preset resource set is equal to the default number of the fillet images in the default resource set. The name of each fillet image in the preset resource set of the terminal system is the same as the name of the fillet image in the default resource set. For example, the rounded corner image in the preset resource set is: image a, image B, image C, image D, and image E, then the name of the rounded corner image in the default resource set is: image a, image B, image C, image D, and image E.
And when the number of the fillet images in the preset resource set is less than the default number of the fillet images in the default resource set. The rounded corner images in the preset resource set correspond to a rounded corner resource image with the same name in the default resource set. For example, the rounded corner image in the preset resource set is: top left, top right, bottom left, and bottom right, then the rounded corner image name in the default resource set is: the upper left, the right middle, the upper right, the lower left and the lower right.
Fig. 5 is a schematic diagram of a rounded corner image display method in one embodiment. And setting corresponding fillet images according to various types of screens in advance. And adding a preset resource set in each terminal system, wherein a fillet image corresponding to the screen type of the terminal exists in the preset resource set. For example, overlap is added in a terminal system, and the overlap of each terminal is stored in a rounded image with a matched screen type. And the round corner image identifiers in the overlay of each terminal are the same, and the application codes of the system interface applications used by each terminal are the same. For any terminal, when the system interface application of the terminal is started, the rounded corner image identification is obtained from the application code. Then, the terminal detects whether a preset resource set exists in the system. And when a preset resource set exists in the terminal system, acquiring the fillet image corresponding to the fillet image identifier from the preset resource set. And when the preset resource set does not exist in the terminal system, determining a default resource set, and acquiring the fillet image corresponding to the fillet image identifier from the default resource set. Next, each rounded corner image may be displayed in each edge area of the terminal screen through a runtime Resource Replacement (RRO) technology, so as to achieve a rounded corner effect in each edge area.
In one embodiment, there is provided a rounded corner image display method including:
the terminal determines the screen type of the terminal and acquires a fillet image matched with the screen type.
And then, adding a preset resource set in the system by the terminal, and storing the fillet image to the preset resource set.
When the system interface application of the terminal is started, the terminal acquires the storage path of the system interface application and acquires the corresponding application code.
Then, the terminal acquires the azimuth name of the fillet image from the application code.
Further, the fillet image corresponding to the azimuth name of the fillet image is obtained from the preset resource set of the preset path.
And then, the terminal determines the mapping relation between each rounded corner image and each edge area on the screen of the terminal according to the azimuth name of each rounded corner image.
Then, the terminal displays the rounded-corner image having the mapping relation in each edge area of the screen.
Further, when the screen of the terminal is rotated, the rotation angle and the rotation direction are determined.
And then, the terminal rotates the fillet images displayed in the edge areas of the terminal according to the rotation angle and the rotation direction, and displays the corresponding rotated fillet images in the edge areas of the rotated screen.
Optionally, when the preset resource set does not exist in the terminal, the terminal acquires the default resource set.
And then, the terminal acquires the default fillet image corresponding to the azimuth name of the fillet image from the default resource set.
Then, the terminal displays a corresponding default fillet image in each edge area on the screen of the terminal.
In this embodiment, the fillet image matched with the screen type of the terminal is stored in the terminal in advance, and the azimuth is used as the name of the fillet image, so that the terminal can specify the edge area displayed by the fillet image according to the name of the fillet image.
When the system interface application of the terminal is started, the application code corresponding to the system interface application is obtained, and the fillet image corresponding to the azimuth name of the fillet image is obtained from the preset resource set, so that the coupling degree of the fillet image and the system interface application is reduced, and the performance and the stability of the system are improved. By the round-corner image display method, terminals with different screen types can use the same application code, and maintenance cost is reduced. The image fillets pre-stored in the terminal can be called through the azimuth names of the fillet images in the application codes, the screen type of the terminal does not need to be judged, and the starting efficiency of a system interface is improved.
When the preset resource set does not exist in the terminal, the default fillet image corresponding to the azimuth name of the fillet image is obtained from the default resource set, and the condition that calling of the system interface application to the fillet image is wrong is avoided. The fillet image is displayed in the edge area on the screen of the terminal, and the edge right-angle area of the screen and the edge area with burrs can be set to be a fillet effect, so that the system interface is more attractive.
It should be understood that, although the steps in the flowcharts of fig. 2 and 5 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2 and 5 may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least some of the sub-steps or stages of other steps.
Fig. 6 is a block diagram of a rounded image display device according to an embodiment. As shown in fig. 6, the apparatus includes: an application code module 602, an identification acquisition module 604, a rounded corner image acquisition module 606, and a display module 608. Wherein the content of the first and second substances,
the application code module 602 is configured to obtain an application code corresponding to a system interface application when the system interface application of the terminal is started.
And an identifier obtaining module 604, configured to obtain the rounded corner image identifier from the application code.
And the fillet image acquisition module 606 is configured to acquire a fillet image corresponding to the fillet image identifier from the preset resource set, where the fillet image is matched with the screen type of the terminal.
And a display module 608 for displaying the rounded corner image in an edge area on a screen of the terminal.
In this embodiment, a fillet image matched with the screen type of the terminal is stored in the terminal in advance. When the system interface application of the terminal is started, the application code corresponding to the system interface application is obtained, and the fillet image corresponding to the fillet image identifier is obtained from the preset resource set, so that the coupling degree of the fillet image and the system interface application is reduced, and the performance and the stability of the system are improved. Through the round-corner image display device of the embodiment, terminals with different screen types can use the same application code, and the maintenance cost is reduced. The fillet image identifier in the application code can call the fillet image prestored in the terminal, so that the screen type of the terminal does not need to be judged, and the starting efficiency of a system interface is improved. The fillet image is displayed in the edge area on the screen of the terminal, and the edge right-angle area of the screen and the edge area with burrs can be set to be a fillet effect, so that the system interface is more attractive.
In one embodiment, the rounded corner image acquisition module 606 is further configured to: acquiring a fillet image corresponding to the fillet image identifier from a preset resource set of a preset path; the predetermined path is different from a storage path of the system interface application.
In this embodiment, the fillet image is stored in the preset path of the terminal system different from the storage path of the system interface application, so that the fillet image and the system interface application can be decoupled, the coupling degree of the fillet image and the system interface application is reduced, and terminals of different screen types can use the same set of application codes of the system interface application.
In one embodiment, the display module 608 is further configured to: determining the mapping relation between each acquired fillet image and each edge area on the screen of the terminal; and displaying the rounded corner image with the mapping relation in each edge area of the screen.
In this embodiment, through the mapping relationship between each rounded image and each edge area on the screen of the terminal, which edge area each rounded image is displayed in is determined quickly and accurately, so that each edge area of the screen of the terminal is set to have a rounded effect quickly and accurately.
In one embodiment, the rounded corner image is identified as the azimuth name of the rounded corner image; the display module 608 is further configured to: determining the position of each edge area on the screen of the terminal on the screen; and determining the mapping relation between each rounded corner image and each edge area according to the obtained azimuth name of each rounded corner image and the azimuth of each edge area.
In this embodiment, names of the fillet images are named by the azimuth, and which edge area of the screen the corresponding fillet image should be displayed in can be directly determined by the azimuth name, so that the fillet effect is rapidly and accurately set for each edge area of the screen of the terminal.
In one embodiment, the display module 608 is further configured to: when a screen of the terminal rotates, determining a rotation angle and a rotation direction; and rotating the fillet images displayed in the edge areas of the terminal according to the rotation angle and the rotation direction, and displaying the corresponding rotated fillet images in the edge areas of the rotated screen.
In this embodiment, when the screen of the terminal is rotated, the rotation angle and the rotation direction are determined. And rotating the fillet images displayed in the edge areas of the terminal according to the rotating angle and the rotating direction, so that the fillet images can rotate along with the screen, and the rotated fillet images can be matched with the edge areas.
In one embodiment, the apparatus further comprises: and adding a module. The adding module is used for: determining the screen type of the terminal, and acquiring a fillet image matched with the screen type; and adding a preset resource set in the terminal, and storing the fillet image to the preset resource set.
In this embodiment, the rounded corner image matched with the screen type is acquired by determining the screen type of the terminal, so that the rounded corner image matched with the screen type can be acquired in advance. And adding a preset resource set in the terminal, and storing the fillet image to the preset resource set, so that the acquired fillet image can be stored in a specific position of a terminal system for being called by system interface application. Moreover, storage in a particular location of the system can prevent the rounded image from being removed by other applications. If the storage path of the preset resource set is different from the storage path of the application code of the system interface application of the terminal, the resource decoupling of the fillet image and the system interface application is realized, so that the fillet image in the terminal can be directly called by one set of application code of the system interface application in different terminals without judging the screen type.
In one embodiment, the rounded corner image acquisition module 606 is further configured to: when a preset resource set does not exist in the terminal, acquiring a default resource set; acquiring a default fillet image corresponding to the fillet image identifier from a default resource set;
the display module 608 is further configured to: displaying a default fillet image in an edge area on a screen of the terminal.
In this embodiment, when a preset resource set does not exist in the terminal, the default fillet image corresponding to the fillet image identifier is acquired from the default resource set, so that the condition that the calling of the system interface application to the fillet image is mistaken is avoided. The default fillet image is displayed in the edge area of the screen of the terminal, and the edge right-angle area of the screen and the edge area with burrs can be set to be a fillet effect, so that the system interface is more attractive.
The division of each module in the circular image display device is only used for illustration, and in other embodiments, the circular image display device may be divided into different modules as needed to complete all or part of the functions of the circular image display device.
For specific definition of the rounded image display device, reference may be made to the above definition of the rounded image display method, which is not described herein again. The respective modules in the rounded image display device described above may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
Fig. 7 is a schematic diagram of the internal structure of the terminal in one embodiment. As shown in fig. 7, the terminal includes a processor and a memory connected by a system bus. Wherein, the processor is used for providing calculation and control capability and supporting the operation of the whole electronic equipment. When the system interface application of the terminal is started, the terminal can acquire an application code corresponding to the system interface application through the processor, and acquire the fillet image identifier from the application code. The processor acquires a fillet image corresponding to the fillet image identifier from a preset resource set, wherein the fillet image is matched with the screen type of the terminal; the processor displays the rounded corner image on an edge area on a screen of the terminal. The memory may include a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The memory stores application codes corresponding to system interface applications and fillet images. The computer program can be executed by a processor to implement a rounded corner image display method provided in the following embodiments. The internal memory provides a cached execution environment for the operating system computer programs in the non-volatile storage medium. The electronic device may be any terminal device such as a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a Point of Sales (POS), a vehicle-mounted computer, and a wearable device.
The implementation of each module in the rounded image display device provided in the embodiment of the present application may be in the form of a computer program. The computer program may be run on a terminal or a server. Program modules constituted by such computer programs may be stored on the memory of the electronic device. Which when executed by a processor, performs the steps of the method described in the embodiments of the present application.
The embodiment of the application also provides a computer readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the steps of the rounded corner image display method.
A computer program product containing instructions which, when run on a computer, cause the computer to perform a rounded corner image display method.
Any reference to memory, storage, database, or other medium used herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A rounded corner image display method, comprising:
when a system interface application of a terminal is started, acquiring an application code corresponding to the system interface application;
acquiring a fillet image identifier from the application code;
acquiring a fillet image corresponding to the fillet image identifier from a preset resource set, wherein the fillet image is matched with the screen type of the terminal;
and displaying the fillet image in an edge area on a screen of the terminal.
2. The method according to claim 1, wherein the obtaining the fillet image corresponding to the fillet image identifier from a preset resource set includes:
acquiring a fillet image corresponding to the fillet image identifier from a preset resource set of a preset path; the preset path is different from the storage path of the system interface application.
3. The method of claim 1, wherein displaying the rounded corner image in an edge area on a screen of the terminal comprises:
determining a mapping relation between each acquired fillet image and each edge area on a screen of the terminal;
and displaying the rounded corner image with the mapping relation in each edge area of the screen.
4. The method of claim 3, wherein the fillet image is identified as an azimuth name of the fillet image; the determining a mapping relationship between each obtained fillet image and each edge area on the screen of the terminal includes:
determining the position of each edge area on the screen of the terminal on the screen;
and determining the mapping relation between each fillet image and each edge area according to the obtained azimuth name of each fillet image and the azimuth of each edge area.
5. The method of claim 1, further comprising:
when the screen of the terminal rotates, determining a rotation angle and a rotation direction;
and rotating the fillet images displayed in the edge areas of the terminal according to the rotation angle and the rotation direction, and displaying the corresponding rotated fillet images in the edge areas of the rotated screen.
6. The method according to any one of claims 1 to 5, wherein before the obtaining of the application code corresponding to the system interface application when the system interface application of the terminal is started, the method further comprises:
determining the screen type of a terminal, and acquiring a fillet image matched with the screen type;
and adding a preset resource set in the terminal, and storing the fillet image to the preset resource set.
7. The method of claim 1, further comprising:
when the preset resource set does not exist in the terminal, acquiring a default resource set;
acquiring a default fillet image corresponding to the fillet image identifier from the default resource set;
the displaying the fillet image in an edge area on a screen of the terminal includes:
and displaying the default fillet image in an edge area on a screen of the terminal.
8. A rounded image display device, comprising:
the application code module is used for acquiring an application code corresponding to a system interface application when the system interface application of the terminal is started;
the identification acquisition module is used for acquiring a fillet image identification from the application code;
The fillet image acquisition module is used for acquiring a fillet image corresponding to the fillet image identifier from a preset resource set, and the fillet image is matched with the screen type of the terminal;
and the display module is used for displaying the fillet image in the edge area on the screen of the terminal.
9. An electronic device comprising a memory and a processor, the memory having stored therein a computer program that, when executed by the processor, causes the processor to perform the steps of the method according to any one of claims 1 to 7.
10. 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 according to any one of claims 1 to 7.
CN202010697273.1A 2020-07-20 2020-07-20 Fillet image display method and device, electronic equipment and readable storage medium Pending CN111857699A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010697273.1A CN111857699A (en) 2020-07-20 2020-07-20 Fillet image display method and device, electronic equipment and readable storage medium
PCT/CN2021/092118 WO2022016956A1 (en) 2020-07-20 2021-05-07 Fillet image display method and apparatus, electronic device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010697273.1A CN111857699A (en) 2020-07-20 2020-07-20 Fillet image display method and device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN111857699A true CN111857699A (en) 2020-10-30

Family

ID=73001010

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010697273.1A Pending CN111857699A (en) 2020-07-20 2020-07-20 Fillet image display method and device, electronic equipment and readable storage medium

Country Status (2)

Country Link
CN (1) CN111857699A (en)
WO (1) WO2022016956A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113888657A (en) * 2021-12-08 2022-01-04 珠海视熙科技有限公司 Screen color acquisition method and device, camera equipment and storage medium
WO2022016956A1 (en) * 2020-07-20 2022-01-27 Oppo广东移动通信有限公司 Fillet image display method and apparatus, electronic device and readable storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114168031B (en) * 2022-02-11 2023-03-31 荣耀终端有限公司 Display optimization method and device for hole digging screen and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106875328A (en) * 2015-12-11 2017-06-20 北京新媒传信科技有限公司 Image processing method and device
CN107643885A (en) * 2017-10-13 2018-01-30 北京小米移动软件有限公司 Display screen, method for displaying image and terminal and storage medium
CN109375978A (en) * 2018-10-17 2019-02-22 奇酷互联网络科技(深圳)有限公司 Display methods, computer equipment and the storage medium of fillet screen
CN110262859A (en) * 2018-03-12 2019-09-20 上海擎感智能科技有限公司 The adaptive screen method of UI control layout, system, storage medium and electric terminal

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106708531A (en) * 2016-12-30 2017-05-24 上海亿账通互联网科技有限公司 Updating method of mobile end procedure interface and device thereof
CN107391073B (en) * 2017-07-26 2020-07-10 北京小米移动软件有限公司 Display module and electronic equipment
CN108335259B (en) * 2018-01-17 2022-02-25 维沃移动通信有限公司 Image processing method, image processing equipment and mobile terminal
CN109542572A (en) * 2018-11-27 2019-03-29 维沃移动通信有限公司 A kind of interface display method and mobile terminal
CN111857699A (en) * 2020-07-20 2020-10-30 Oppo广东移动通信有限公司 Fillet image display method and device, electronic equipment and readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106875328A (en) * 2015-12-11 2017-06-20 北京新媒传信科技有限公司 Image processing method and device
CN107643885A (en) * 2017-10-13 2018-01-30 北京小米移动软件有限公司 Display screen, method for displaying image and terminal and storage medium
CN110262859A (en) * 2018-03-12 2019-09-20 上海擎感智能科技有限公司 The adaptive screen method of UI control layout, system, storage medium and electric terminal
CN109375978A (en) * 2018-10-17 2019-02-22 奇酷互联网络科技(深圳)有限公司 Display methods, computer equipment and the storage medium of fillet screen
WO2020078290A1 (en) * 2018-10-17 2020-04-23 奇酷互联网络科技(深圳)有限公司 Displaying method for round-corner screen, computer device, and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022016956A1 (en) * 2020-07-20 2022-01-27 Oppo广东移动通信有限公司 Fillet image display method and apparatus, electronic device and readable storage medium
CN113888657A (en) * 2021-12-08 2022-01-04 珠海视熙科技有限公司 Screen color acquisition method and device, camera equipment and storage medium

Also Published As

Publication number Publication date
WO2022016956A1 (en) 2022-01-27

Similar Documents

Publication Publication Date Title
CN111857699A (en) Fillet image display method and device, electronic equipment and readable storage medium
CN108388599B (en) Electronic device, data migration and calling method and storage medium
CN106600259B (en) Mobile payment method and device and mobile terminal
CN108848142B (en) Message pushing method and device, computer equipment and storage medium
CN109542529B (en) Function name-based point burying method and device, computer equipment and storage medium
CN109086079B (en) Mounting management method and device for storage equipment
CN106648685B (en) Intelligent terminal system application processing method and device and intelligent terminal
CN111506386A (en) Virtual machine online migration method, device, equipment and computer readable storage medium
CN108959384B (en) Webpage data acquisition method and device, computer equipment and storage medium
CN110472967B (en) Verification method, identification end and user end
CN111552535A (en) Interface picture replacing method and device, computer equipment and storage medium
CN105871960B (en) Method, device and equipment for calling data sharing
CN107710211A (en) Intelligent terminal system starts method, apparatus and intelligent terminal
CN111176671B (en) Method for automatically and continuously updating system, mobile terminal and storage medium
CN110597815A (en) Service processing method, device, computer equipment and storage medium
CN110134475B (en) Method and device for displaying interface parameter configuration, computer equipment and storage medium
CN113992784B (en) Audio and video call method, device, computer equipment and storage medium
CN113296799A (en) Application program installation method and device, electronic equipment and storage medium
CN109711809B (en) Merchant attribute setting method and device, computer equipment and storage medium
CN109299600B (en) Application locking and unlocking method and device, terminal and readable storage medium
CN112783578A (en) Method, device and equipment for starting task flow and storage medium
CN110737718A (en) Data backup method and device
CN112165406B (en) Interface message testing method and device, computer equipment and storage medium
CN113126848B (en) Method and system for adding friends
CN112118474B (en) Video barrage display method and system, computer equipment and 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