WO2022016956A1 - Fillet image display method and apparatus, electronic device and readable storage medium - Google Patents

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

Info

Publication number
WO2022016956A1
WO2022016956A1 PCT/CN2021/092118 CN2021092118W WO2022016956A1 WO 2022016956 A1 WO2022016956 A1 WO 2022016956A1 CN 2021092118 W CN2021092118 W CN 2021092118W WO 2022016956 A1 WO2022016956 A1 WO 2022016956A1
Authority
WO
WIPO (PCT)
Prior art keywords
rounded
terminal
image
screen
rounded image
Prior art date
Application number
PCT/CN2021/092118
Other languages
French (fr)
Chinese (zh)
Inventor
谢润斌
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2022016956A1 publication Critical patent/WO2022016956A1/en

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

Definitions

  • the present application relates to the field of computer technology, and in particular, to a method, apparatus, electronic device, and computer-readable storage medium for displaying images with rounded corners.
  • the rounded image in the traditional method is often directly configured in the application code of the system, and the same application code can only be installed on a terminal with a specified screen type, and cannot be adapted to different types of screens.
  • Embodiments of the present application provide a method, apparatus, electronic device, and computer-readable storage medium for displaying a rounded-corner image, which can adapt to different screen types through the same set of application codes.
  • a method for displaying images with rounded corners comprising:
  • the rounded image is displayed in an edge area on the screen of the terminal.
  • a rounded image display device comprising:
  • an application code module configured to acquire an application code corresponding to the system interface application when the system interface application of the terminal is started
  • an identification acquisition module used for acquiring a rounded image identification from the application code
  • a rounded image obtaining module configured to obtain a rounded image corresponding to the rounded image identifier from a preset resource set, where the rounded image matches the screen type of the terminal;
  • a display module configured to display the rounded image in the edge area on the screen of the terminal.
  • a computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following operations when executing the computer program:
  • the rounded image is displayed in an edge area on the screen of the terminal.
  • the rounded image is displayed in an edge area on the screen of the terminal.
  • a rounded image matching the screen type of the terminal is pre-stored in the terminal.
  • the application code corresponding to the system interface application is obtained, and the rounded image corresponding to the rounded image identifier is obtained from the preset resource set, thereby reducing the coupling between the rounded image and the system interface application and improving the system. performance and stability.
  • the pre-stored and image rounded corners in the terminal can be called, so there is no need to judge the screen type of the terminal, and the startup efficiency of the system interface is improved.
  • a rounded image is displayed on the edge area of the screen of the terminal, and the right-angle area on the edge of the screen and the edge area with burr can be set as the rounded corner effect, which makes the system interface more beautiful.
  • FIG. 1 is an application environment diagram of a method for displaying images with rounded corners in one embodiment.
  • FIG. 2 is a flowchart of a method for displaying a rounded image in one embodiment.
  • FIG. 3 is a schematic diagram of an image with rounded corners 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 an embodiment.
  • FIG. 5 is a schematic diagram of a method for displaying images with rounded corners in one embodiment.
  • FIG. 6 is a structural block diagram of an image display device with rounded corners in one embodiment.
  • FIG. 7 is an internal structure diagram of an electronic device in one embodiment.
  • FIG. 1 is a schematic diagram of an application environment of a method for displaying images with rounded corners in one embodiment.
  • the application environment includes a terminal 110 and a server 120 .
  • the terminal 110 may obtain the application code corresponding to the system interface application from the server 120 .
  • the terminal 110 obtains the rounded image identifier from the application code.
  • the terminal 110 acquires a rounded image corresponding to the rounded image identifier from the preset resource set, where the rounded image matches the screen type of the terminal.
  • the terminal 110 displays a rounded image in an edge area on the screen of the terminal.
  • the terminal 110 communicates with the server 120 through the network.
  • the terminal 110 can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers and portable wearable devices, and the server 120 can be implemented by an independent server or a server cluster composed of multiple servers.
  • FIG. 2 is a flowchart of a method for displaying a rounded image in one embodiment.
  • the method for displaying images with rounded corners in this embodiment is described by taking running on the terminal in FIG. 1 as an example.
  • the method for displaying images with rounded corners includes operations 202 to 208 .
  • the system interface application is the SystemUI application, and the SystemUI application provides system-level information for the user and is displayed as a system interface that interacts with the user.
  • the system interface displays information such as the lock screen, the status bar, the bottom navigation bar, and the list of recently used applications.
  • a system interface application of the terminal is started to display the system interface.
  • the terminal receives the instruction for starting the system interface application, the terminal can obtain the application code corresponding to the system interface application.
  • the system interface application is started by running the application code to display the system interface of the terminal.
  • the rounded-corner image identifier is obtained from the application code.
  • the rounded image refers to an image with radians, and the rounded image can be superimposed on the terminal screen, so that the terminal screen presents a pattern with a rounded effect.
  • the rounded image identifier is used to mark different rounded images, and the rounded image identifier can be the name of the rounded image, the characteristics of the rounded image, and the like.
  • FIG. 3 it is a rounded image with a screen type of a hole-digging screen, and is a rounded image of the hole-digging screen in the upper left corner.
  • the size and shape of the rounded image and the size of the round hole match the edge area of the upper left corner of the hole-digging screen.
  • the terminal can obtain the rounded image identifier from the application code. Further, there may be multiple different rounded image identifiers in the application code, and the terminal may acquire the multiple different rounded image identifiers from the application code. The multiple is at least two, for example, there are five different rounded image identifiers in the application code.
  • a rounded image corresponding to the rounded image identifier is obtained from a preset resource set, where the rounded image matches the screen type of the terminal.
  • the screen types of the terminal include but are not limited to full screen, notch screen, water drop screen, hole-digging screen, etc.
  • the preset resource centrally stores images that match the screen type of the terminal. For example, for a terminal whose screen type is Liu Haiping, the preset resource of the terminal centrally stores rounded images matching Liu Haiping, so that the edge area of Liu Haiping is set as rounded corners. For a terminal whose screen type is a water drop screen, the preset resources of the terminal collectively store rounded images that match the water drop screen.
  • the terminal may detect whether a preset resource set exists in the terminal.
  • a preset resource set exists in the terminal a rounded image with the same identifier as the rounded image identifier is obtained from the preset resource set.
  • multiple rounded images may exist in the preset resource set, and each rounded image has a unique identifier, that is, a rounded image identifier.
  • the terminal acquires the multiple different rounded image identifiers from the application code, the terminal can acquire from the preset resource set the rounded images with the same rounded image identifier.
  • an image with rounded corners is displayed on the edge area of the screen of the terminal.
  • the edge area on the screen refers to the four right angles of the edge of the screen and the area with holes on the screen. For example, if there is a hole in the middle of the upper edge of the screen of the water drop screen, a rounded image needs to be displayed in the area with the hole, and the rounded image also has holes of the same shape and size. If there is a hole in the upper left area of the screen edge of the hole-digging screen, a rounded image needs to be displayed in the upper left area with the hole, and the rounded image also has holes of the same shape and size.
  • the terminal may display the rounded image obtained from the preset resource set on the edge area of the terminal screen. Further, when the terminal acquires multiple rounded images from the preset resource set, the corresponding relationship between each rounded image and each edge area on the screen is determined. Then, the terminal may display each rounded image in the corresponding edge area.
  • the rounded image is directly configured into the application code of the system interface. Once the installation package of the application code is compiled and generated, the rounded image in it 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.
  • a rounded image matching the screen type of the terminal is pre-stored in the terminal.
  • the application code corresponding to the system interface application is obtained, and the rounded image corresponding to the rounded image identifier is obtained from the preset resource set, thereby reducing the coupling between the rounded image and the system interface application and improving the system. performance and stability.
  • terminals of different screen types can use the same application code, thereby reducing maintenance costs.
  • the pre-stored and image rounded corners in the terminal can be called, so there is no need to judge the screen type of the terminal, and the startup efficiency of the system interface is improved.
  • a rounded image is displayed on the edge area of the screen of the terminal, and the right-angle area on the edge of the screen and the edge area with burr can be set as the rounded corner effect, which makes the system interface more beautiful.
  • At least one preset resource set may exist in the terminal system.
  • the terminal may determine the type of the current screen, and determine the corresponding preset resource set according to the type of the screen. Next, the terminal may acquire the rounded image corresponding to the rounded image identifier from the preset resource set corresponding to the screen type.
  • obtaining a rounded image corresponding to a rounded image identifier from a preset resource set includes:
  • the rounded image corresponding to the rounded image identifier is obtained from the preset resource set of the preset path; the preset path is different from the storage path of the system interface application.
  • the terminal when the terminal receives the startup instruction of the system interface application, the application code is obtained from the storage path of the system interface application. Next, the terminal obtains the rounded image identifier from the application code.
  • the terminal may detect whether a preset path exists in the system, and determine whether a preset resource set exists in the preset path.
  • a preset path exists in the terminal system and a preset resource set exists in the preset path a rounded image with the same identifier as the rounded image identifier is acquired from the preset resource set.
  • the preset path is different from the storage path of the system interface application of the terminal.
  • the preset path is different from the storage path of the application code applied by the system interface of the terminal.
  • the rounded image is stored in a preset path of the terminal system that is different from the storage path of the system interface application, so that the rounded image and the system interface application can be decoupled, and the reduction of the rounded image and the system interface can be achieved.
  • the coupling degree of the application enables terminals of different screen types to use the application code of the same set of system interface applications.
  • displaying a rounded image in an edge area on the screen of the terminal includes: determining a mapping relationship between each acquired rounded image and each edge area on the screen of the terminal; in each edge area of the screen Displays an image with rounded corners mapped.
  • the terminal acquires each rounded image identifier from the application code, and acquires the rounded image corresponding to each rounded image identifier from a preset resource set.
  • the terminal may determine the orientation of each edge area on the screen of the terminal on the screen, and determine the image identification of each rounded image and the mapping relationship of each orientation.
  • the terminal may display the rounded image in the edge area corresponding to the orientation having the mapping relationship with the rounded image identifier, so as to display each rounded image in the corresponding edge area.
  • the mapping relationship between each rounded image and each edge region on the screen of the terminal is used to quickly and accurately determine in which edge region each rounded image is displayed, so as to quickly and accurately map each edge region of the screen of the terminal. Sets the rounded corner effect for the edge area.
  • the rounded corner image is identified as an orientation name of the rounded corner image; determining the mapping relationship between each of the acquired rounded corner images and each edge region on the screen of the terminal includes:
  • the azimuth name of the rounded image refers to using the azimuth as the name of the rounded image, for example, the azimuth name of the rounded image is "upper left", “upper right” and so on.
  • the orientation name can be based on the vertical screen or horizontal screen of the screen.
  • the rounded image is identified as an orientation name of the rounded image.
  • the terminal obtains the azimuth name of each rounded image from the application code, and obtains the rounded image with the same name as the azimuth name of each rounded image from the preset resource set. Then, the terminal can determine the orientation of each edge area on the screen of the terminal based on 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. If the orientation name is the same as the orientation on the screen, it means that the rounded image corresponding to the orientation name has a mapping relationship with the edge area corresponding to the orientation. According to the same processing method, the edge area on the terminal screen that has a mapping relationship with each rounded image can be determined.
  • the name of the rounded image is named with the orientation, and the orientation name can directly determine which edge area of the screen the corresponding rounded image should be displayed on, so as to quickly and accurately set each edge area of the screen of the terminal as a circle corner effect.
  • each rounded image is displayed on 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 orientation name of each rounded image from the application code, such as "upper left”, “upper middle”, “upper right”, “lower left” and “lower right” as shown in the figure.
  • the terminal obtains the rounded image with the orientation name from the preset resource set according to the orientation name. Then, the terminal moves the rounded image to each edge area of the screen according to the name of each position, so that each rounded image fits the edge area of the corresponding position, so that the rounded corner effect is displayed on the system interface.
  • the method further includes: when the screen of the terminal is rotated, determining the rotation angle and the rotation direction; rotating the rounded images displayed in each edge area of the terminal according to the rotation angle and the rotation direction, and Each edge area of the rotated screen displays a corresponding rotated image with rounded corners.
  • the terminal determines the rotation angle and rotation direction of the screen. Then, the terminal may rotate each rounded image displayed on the terminal screen by the same angle according to the rotation direction to obtain each rotated rounded image. Next, the terminal displays each rotated rounded image on the edge area of each rotated screen. For example, when the terminal is rotated 90 degrees counterclockwise, the physical hardware punching position of the screen is also turned to the lower left corner, and the angle is also rotated 90 degrees counterclockwise, so each rounded image needs to be rotated 90 degrees counterclockwise. Makes the image with rounded corners fit to the edge areas of the screen.
  • the rotation angle and the rotation direction are determined. Rotate the rounded image displayed in each edge area of the terminal according to the rotation angle and rotation direction, so that the rounded image can be rotated with the screen, and the rotated rounded image can fit each edge area.
  • the method when the system interface application of the terminal is started, before acquiring the application code corresponding to the system interface application, the method further includes: determining the screen type of the terminal, and acquiring a rounded image matching the screen type; adding in the terminal Preset asset set, and save rounded image to preset asset set.
  • the terminal determines the type of the screen used, and obtains an image with rounded corners that matches the screen type. Further, the terminal may acquire a preset number of matching rounded images according to the screen type. For example, when the screen type of the terminal is a water drop screen, obtain 5 rounded images matching the water drop screen. If the screen type of the terminal is full screen, four rounded images matching the full screen are obtained.
  • the terminal adds a preset resource set to the system, and stores the acquired rounded image in the preset resource set.
  • 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 terminal may add a preset path in the system, and add a preset resource set to the preset path, and store the acquired rounded image in the preset resource set of the preset path of the system.
  • the preset path is different from the storage path of the system interface application of the terminal.
  • the preset path is different from the storage path of the application code applied by the system interface of the terminal.
  • the rounded image matching the screen type can be obtained in advance.
  • a preset resource set is added to the terminal, and the rounded corner image is stored in the preset resource set, so that the obtained rounded corner image can be stored in a specific location of the terminal system for the system interface application to call. Also, storing it in a specific location on the system prevents rounded images from being removed by other applications.
  • 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, so that the resource decoupling of the rounded image and the system interface application is realized, so that the application code of a set of system interface applications can be stored in different terminals. You can directly call the rounded image in the terminal without judging the screen type.
  • the method further includes: when a preset resource set does not exist in the terminal, obtaining a default resource set; obtaining a default rounded image corresponding to a rounded image identifier from the default resource set; an edge on the screen of the terminal The area displays a rounded image, including: displaying a default rounded image in the edge area on the screen of the terminal.
  • the terminal detects whether a preset resource set exists in the system.
  • a preset resource set exists in the terminal system
  • a rounded image corresponding to the rounded image identifier is obtained from the preset resource set.
  • a default resource set is determined, and a rounded image corresponding to the rounded image identifier is obtained from the default resource set.
  • the terminal may display the rounded image obtained from the default resource set on the edge area of the terminal screen. Further, when the terminal acquires multiple rounded corner images from the default resource set, the corresponding relationship between each rounded corner image and each edge region on the screen is determined. Then, the terminal may display each default rounded corner image in the corresponding edge area.
  • the terminal may detect whether a preset path exists in the system, and when a preset path exists in the terminal system, obtain a rounded image corresponding to a rounded image identifier from a preset resource set of the preset path.
  • the preset path does not exist in the terminal system, the default path is obtained, and the default rounded image corresponding to the rounded image identifier is obtained from the default resource set of the default path.
  • the default rounded image corresponding to the rounded image identifier is obtained from the default resource set, so as to avoid an error in calling the rounded image by the system interface application.
  • the default rounded image is displayed on the edge area of the screen of the terminal, and the right-angle area on the edge of the screen and the edge area with burrs can be set as the rounded corner effect, which makes the system interface more beautiful.
  • the number of rounded images in the preset resource set is less than or equal to the default number of rounded images in the default resource set.
  • the rounded image in the preset resource set is an image matching the screen type of the terminal.
  • the number of rounded images matched by different screen types is not the same. For example, a hole-punch screen with a hole at the top left of the screen, that is, the hole is located at the top left of the screen edge, then the four right-angle areas on the screen edge need to be configured for each.
  • An image with rounded corners, the four right-angled areas are the upper left, upper right, lower left and lower right areas. Then there are four rounded images in the preset resource set of the knockout screen, and the rounded image displayed on the upper left needs to be opened.
  • the opening is in the middle of the top of the screen, then a rounded image needs to be set in the middle, and a rounded image needs to be configured in each of the four right-angle areas on the edge of the screen, then the preset resource of Liu Haiping Collect 5 rounded images that match the screen type of the terminal.
  • the default resource sets of terminals in different screen types store the same default rounded images and the same number of stored default rounded images.
  • the number of rounded images in the preset resource set is equal to the default number of rounded images in the default resource set.
  • the name of each rounded image in the preset resource set of the terminal system is the same as the name of the rounded image in the default resource set.
  • the rounded images in the preset resource set are: Image A, Image B, Image C, Image D, and Image E
  • the names of the rounded images in the default resource set are: Image A, Image B, Image C, Image D and image E.
  • the rounded images in the preset resource set all correspond to a rounded resource image with the same name in the default resource set.
  • the rounded images in the preset resource set are: upper left, upper right, lower left and lower right
  • the names of the rounded images in the default resource set are: upper left, upper middle, upper right, lower left and right below.
  • FIG. 5 it is a schematic diagram of a method for displaying images with rounded corners in one embodiment.
  • the corresponding rounded corner images are set in advance according to various types of screens.
  • a preset resource set is added in each terminal system, and a rounded image corresponding to the screen type of the terminal exists in the preset resource set.
  • an overlay is added in the terminal system, and the overlay of each terminal is stored in a rounded image that matches the screen type.
  • the rounded image identifiers in the overlay of each terminal are the same, and the application code of the system interface application used by each terminal is the same. For any terminal, when the system interface application of the terminal is started, the rounded image identifier is obtained from the application code.
  • the terminal detects whether a preset resource set exists in the system.
  • a preset resource set exists in the terminal system
  • a rounded image corresponding to the rounded image identifier is obtained from the preset resource set.
  • a default resource set is determined, and a rounded image corresponding to the rounded image identifier is obtained from the default resource set.
  • each rounded image may be displayed on each edge area of the terminal screen through a runtime resource overlay (RRO for short) technology, so as to realize a rounded corner effect in each edge area.
  • RRO runtime resource overlay
  • a method for displaying images with rounded corners comprising:
  • the terminal determines the screen type of the terminal, and obtains a rounded image matching the screen type.
  • the terminal adds a preset resource set to the system, and stores the rounded image in the preset resource set.
  • the terminal When the system interface application of the terminal is started, the terminal obtains the storage path of the system interface application to obtain the corresponding application code.
  • the terminal obtains the orientation name of the rounded image from the application code.
  • the rounded image corresponding to the orientation name of the rounded image is obtained from the preset resource set of the preset path.
  • the terminal determines the mapping relationship between each rounded image and each edge region on the screen of the terminal according to the orientation name of each rounded image.
  • the terminal displays a rounded image with a mapping relationship on each edge area of the screen.
  • the rotation angle and the rotation direction are determined.
  • the terminal will display the rounded image on each edge area of the terminal, rotate according to the rotation angle and the rotation direction, and display the corresponding rotated rounded image on each edge area of the rotated screen.
  • the terminal obtains the default resource set.
  • the terminal acquires the default rounded image corresponding to the orientation name of the rounded image from the default resource set.
  • the terminal displays a corresponding default rounded corner image in each edge area on the screen of the terminal.
  • a rounded image matching the screen type of the terminal is pre-stored in the terminal, and the orientation is used as the name of the rounded image, so that the terminal can specify the edge displayed by the rounded image according to the name of the rounded image. area.
  • the application code corresponding to the system interface application is obtained, and the rounded image corresponding to the orientation name of the rounded image is obtained from the preset resource set, thereby reducing the coupling between the rounded image and the system interface application.
  • Improve system performance and stability Through the method for displaying images with rounded corners in this embodiment, terminals of different screen types can use the same application code, thereby reducing maintenance costs.
  • the orientation name of the rounded image in the application code the pre-stored and image rounded corners in the terminal can be called, so there is no need to judge the screen type of the terminal, and the startup efficiency of the system interface is improved.
  • the default rounded image corresponding to the orientation name of the rounded image is obtained from the default resource set, so as to avoid errors in calling the rounded image by the system interface application.
  • a rounded image is displayed on the edge area of the screen of the terminal, and the right-angle area on the edge of the screen and the edge area with burr can be set as the rounded corner effect, which makes the system interface more beautiful.
  • FIG. 6 is a structural block diagram of an image display device with rounded corners according to an embodiment.
  • the apparatus includes: an application code module 602 , an identification acquisition module 604 , a rounded image acquisition module 606 and a display module 608 . in,
  • the application code module 602 is configured to acquire the application code corresponding to the system interface application when the system interface application of the terminal is started.
  • the identification obtaining module 604 is configured to obtain the rounded image identification from the application code.
  • a rounded image obtaining module 606 is configured to obtain a rounded image corresponding to a rounded image identifier from a preset resource set, where the rounded image matches the screen type of the terminal.
  • the display module 608 is configured to display a rounded image in the edge area on the screen of the terminal.
  • a rounded image matching the screen type of the terminal is pre-stored in the terminal.
  • the application code corresponding to the system interface application is obtained, and the rounded image corresponding to the rounded image identifier is obtained from the preset resource set, thereby reducing the coupling between the rounded image and the system interface application and improving the system. performance and stability.
  • terminals of different screen types can use the same application code, thereby reducing maintenance costs.
  • the pre-stored and image rounded corners in the terminal can be called, so there is no need to judge the screen type of the terminal, and the startup efficiency of the system interface is improved.
  • a rounded image is displayed on the edge area of the screen of the terminal, and the right-angle area on the edge of the screen and the edge area with burr can be set as the rounded corner effect, which makes the system interface more beautiful.
  • the rounded image obtaining module 606 is further configured to: obtain a rounded image corresponding to a rounded 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.
  • the rounded image is stored in a preset path of the terminal system that is different from the storage path of the system interface application, so that the rounded image and the system interface application can be decoupled, and the reduction of the rounded image and the system interface can be achieved.
  • the coupling degree of the application enables terminals of different screen types to use the application code of the same set of system interface applications.
  • the display module 608 is further configured to: determine the mapping relationship between the acquired rounded corner images and each edge region on the screen of the terminal; display the rounded corners with the mapping relationship on each edge region of the screen image.
  • the mapping relationship between each rounded image and each edge region on the screen of the terminal is used to quickly and accurately determine in which edge region each rounded image is displayed, so as to quickly and accurately map each edge region of the screen of the terminal. Sets the rounded corner effect for the edge area.
  • the rounded image is identified as an orientation name of the rounded image; the display module 608 is further configured to: determine the orientation on the screen of each edge region on the screen of the terminal; according to the acquired rounded images and the orientation of each edge area to determine the mapping relationship between each rounded image and each edge area.
  • the name of the rounded image is named with the orientation, and the orientation name can directly determine which edge area of the screen the corresponding rounded image should be displayed on, so as to quickly and accurately set each edge area of the screen of the terminal as a circle corner effect.
  • the display module 608 is further configured to: determine the rotation angle and the rotation direction when the screen of the terminal is rotated; and rotate the rounded images displayed on each edge area of the terminal according to the rotation angle and the rotation direction , and display the corresponding rotated image with rounded corners on each edge area of the rotated screen.
  • the rotation angle and the rotation direction are determined. Rotate the rounded image displayed in each edge area of the terminal according to the rotation angle and rotation direction, so that the rounded image can be rotated with the screen, and the rotated rounded image can fit each edge area.
  • the apparatus further includes: an addition module.
  • the adding module is used to: determine the screen type of the terminal, and obtain a rounded image matching the screen type; add a preset resource set in the terminal, and store the rounded image into the preset resource set.
  • the rounded image matching the screen type can be obtained in advance.
  • a preset resource set is added to the terminal, and the rounded corner image is stored in the preset resource set, so that the obtained rounded corner image can be stored in a specific location of the terminal system for the system interface application to call. Also, storing it in a specific location on the system prevents rounded images from being removed by other applications.
  • 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, so that the resource decoupling of the rounded image and the system interface application is realized, so that the application code of a set of system interface applications can be stored in different terminals. You can directly call the rounded image in the terminal without judging the screen type.
  • the rounded image obtaining module 606 is further configured to: when the preset resource set does not exist in the terminal, obtain a default resource set; obtain a default rounded image corresponding to the rounded image identifier from the default resource set;
  • the display module 608 is further configured to: display a default rounded image in the edge area of the screen of the terminal.
  • the default rounded image corresponding to the rounded image identifier is obtained from the default resource set, so as to avoid an error in calling the rounded image by the system interface application.
  • the default rounded image is displayed on the edge area of the screen of the terminal, and the right-angle area on the edge of the screen and the edge area with burrs can be set as the rounded corner effect, which makes the system interface more beautiful.
  • each module in the above-mentioned round-corner image display device is only used for illustration. In other embodiments, the round-corner image display device can be divided into different modules as required, so as to complete all or part of the above-mentioned round-corner image display device Features.
  • Each module in the above-mentioned round-corner image display device may be implemented in whole or in part by software, hardware and combinations thereof.
  • the above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
  • FIG. 7 is a schematic diagram of an internal structure of a terminal in an embodiment.
  • the terminal includes a processor and a memory connected through a system bus.
  • the processor is used to provide computing and control capabilities to support the operation of the entire electronic device.
  • the terminal can obtain the application code corresponding to the system interface application through the processor, and obtain the rounded image identifier from the application code.
  • the processor obtains the rounded image corresponding to the rounded image identifier from the preset resource set, and the rounded image matches the screen type of the terminal; the processor displays the rounded image in the edge area of the screen of the terminal.
  • the memory may include non-volatile storage media and internal memory.
  • the nonvolatile storage medium stores an operating system and a computer program.
  • the memory stores the application code corresponding to the system interface application and the image with rounded corners.
  • the computer program can be executed by the processor to implement a method for displaying images with rounded corners provided by the following embodiments.
  • Internal memory provides a cached execution environment for operating system computer programs in non-volatile storage media.
  • the electronic device may be any terminal device such as a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales, a sales terminal), a vehicle-mounted computer, a wearable device, and the like.
  • each module in the round-corner image display device may be in the form of a computer program.
  • the computer program can be run on a terminal or server.
  • the program modules constituted by the computer program can be stored on the memory of the electronic device.
  • the operations of the methods described in the embodiments of the present application are implemented.
  • Embodiments of the present application also provide a computer-readable storage medium.
  • One or more non-volatile computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the operations of the method for displaying rounded corners images .
  • Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory may include random access memory (RAM), which acts as external cache memory.
  • RAM is available in various 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), Memory Bus (Rambus) Direct RAM (RDRAM), Direct Memory Bus Dynamic RAM (DRDRAM), and Memory Bus Dynamic RAM (RDRAM).
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDR SDRAM double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • SLDRAM synchronous Link (Synchlink) DRAM
  • SLDRAM synchronous Link (Synchlink) DRAM
  • Memory Bus Radbus
  • RDRAM Direct RAM
  • DRAM Direct Memory Bus Dynamic RAM
  • RDRAM Memory Bus Dynamic RAM

Abstract

A fillet image display method, comprising: when a system interface application of a terminal is started up, obtaining an application code corresponding to the system interface application (202); obtaining a fillet image identifier from the application code (204); obtaining a fillet image corresponding to the fillet image identifier from a preset resource set, the fillet image matching the screen type of the terminal (206); and displaying the fillet image in an edge area on the screen of the terminal (208).

Description

圆角图像显示方法、装置、电子设备和可读存储介质Rounded-corner image display method, apparatus, electronic device, and readable storage medium
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请要求于2020年07月20日提交中国专利局、申请号为2020106972731、发明名称为“圆角图像显示方法、装置、电子设备和可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 2020106972731 and the invention title "Round-corner image display method, device, electronic device and readable storage medium" filed with the China Patent Office on July 20, 2020, all of which are The contents are incorporated herein by reference.
技术领域technical field
本申请涉及计算机技术领域,特别是涉及一种圆角图像显示方法、装置、电子设备和计算机可读存储介质。The present application relates to the field of computer technology, and in particular, to a method, apparatus, electronic device, and computer-readable storage medium for displaying images with rounded corners.
背景技术Background technique
随着计算机技术的发展,终端的屏幕类型越来越多,例如全面屏、刘海屏、水滴屏、挖孔屏等。而终端屏幕的四个角均为直角,为了使终端屏幕更美观,往往会在终端屏幕的四个直角叠加上圆角图像,使得终端屏幕的四个角呈现出圆角的效果。With the development of computer technology, there are more and more screen types of terminals, such as full screen, notch screen, water drop screen, hole-digging screen, etc. The four corners of the terminal screen are all right angles. In order to make the terminal screen more beautiful, rounded images are often superimposed on the four right corners of the terminal screen to make the four corners of the terminal screen appear rounded.
然而,传统方法中的圆角图像往往是直接配置在系统的应用代码中,同一应用代码只能安装在指定屏幕类型的终端上,无法适配不同类型的屏幕。However, the rounded image in the traditional method is often directly configured in the application code of the system, and the same application code can only be installed on a terminal with a specified screen type, and cannot be adapted to different types of screens.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种圆角图像显示方法、装置、电子设备、计算机可读存储介质,能够通过同一套应用代码适配不同的屏幕类型。Embodiments of the present application provide a method, apparatus, electronic device, and computer-readable storage medium for displaying a rounded-corner image, which can adapt to different screen types through the same set of application codes.
一种圆角图像显示方法,包括:A method for displaying images with rounded corners, comprising:
当终端的系统界面应用启动时,获取所述系统界面应用对应的应用代码;When the system interface application of the terminal is started, obtain the application code corresponding to the system interface application;
从所述应用代码中获取圆角图像标识;Obtain the rounded image identifier from the application code;
从预设资源集中获取所述圆角图像标识对应的圆角图像,所述圆角图像与所述终端的屏幕类型相匹配;及Acquiring a rounded image corresponding to the rounded image identifier from a preset resource set, where the rounded image matches the screen type of the terminal; and
在所述终端的屏幕上的边缘区域显示所述圆角图像。The rounded image is displayed in an edge area on the screen of the terminal.
一种圆角图像显示装置,包括:A rounded image display device, comprising:
应用代码模块,用于当终端的系统界面应用启动时,获取所述系统界面应用对应的应用代码;an application code module, configured to acquire an application code corresponding to the system interface application when the system interface application of the terminal is started;
标识获取模块,用于从所述应用代码中获取圆角图像标识;an identification acquisition module, used for acquiring a rounded image identification from the application code;
圆角图像获取模块,用于从预设资源集中获取所述圆角图像标识对应的圆角图像,所述圆角图像与所述终端的屏幕类型相匹配;及a rounded image obtaining module, configured to obtain a rounded image corresponding to the rounded image identifier from a preset resource set, where the rounded image matches the screen type of the terminal; and
显示模块,用于在所述终端的屏幕上的边缘区域显示所述圆角图像。A display module, configured to display the rounded image in the edge area on the screen of the terminal.
一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现以下操作:A computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following operations when executing the computer program:
当终端的系统界面应用启动时,获取所述系统界面应用对应的应用代码;When the system interface application of the terminal is started, obtain the application code corresponding to the system interface application;
从所述应用代码中获取圆角图像标识;Obtain the rounded image identifier from the application code;
从预设资源集中获取所述圆角图像标识对应的圆角图像,所述圆角图像与所述终端的屏幕类型相匹配;及Acquiring a rounded image corresponding to the rounded image identifier from a preset resource set, where the rounded image matches the screen type of the terminal; and
在所述终端的屏幕上的边缘区域显示所述圆角图像。The rounded image is displayed in an edge area on the screen of the terminal.
一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现以下操作:A computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, realizes the following operations:
当终端的系统界面应用启动时,获取所述系统界面应用对应的应用代码;When the system interface application of the terminal is started, obtain the application code corresponding to the system interface application;
从所述应用代码中获取圆角图像标识;Obtain the rounded image identifier from the application code;
从预设资源集中获取所述圆角图像标识对应的圆角图像,所述圆角图像与所述终端的屏幕类型相匹配;及Acquiring a rounded image corresponding to the rounded image identifier from a preset resource set, where the rounded image matches the screen type of the terminal; and
在所述终端的屏幕上的边缘区域显示所述圆角图像。The rounded image is displayed in an edge area on the screen of the terminal.
上述圆角图像显示方法、装置、电子设备、计算机可读存储介质,本实施例中,在终端中预先存储与终端的屏幕类型相匹配的圆角图像。当终端的系统界面应用启动时,获取系统界面应用对应的应用代码,从预设资源集中获取圆角图像标识对应的圆角图像,从而降低了圆角图像和系统界面应用的耦合度,提升系统的性能和稳定性。通过本实施例的圆角图像显示方法,不 同屏幕类型的终端可以使用相同的应用代码,降低维护成本。通过应用代码中的圆角图像标识就可以调用终端中预先存储的与图像圆角,则无需判断终端的屏幕类型,提高系统界面的启动效率。在终端的屏幕上的边缘区域显示圆角图像,能够将屏幕的边缘直角区域以及存在毛刺的边缘区域设置为圆角效果,使得系统界面更美观。In the foregoing method, apparatus, electronic device, and computer-readable storage medium for displaying a rounded image, in this embodiment, a rounded image matching the screen type of the terminal is pre-stored in the terminal. When the system interface application of the terminal is started, the application code corresponding to the system interface application is obtained, and the rounded image corresponding to the rounded image identifier is obtained from the preset resource set, thereby reducing the coupling between the rounded image and the system interface application and improving the system. performance and stability. Through the method for displaying images with rounded corners in this embodiment, terminals of different screen types can use the same application code, thereby reducing maintenance costs. Through the rounded image identification in the application code, the pre-stored and image rounded corners in the terminal can be called, so there is no need to judge the screen type of the terminal, and the startup efficiency of the system interface is improved. A rounded image is displayed on the edge area of the screen of the terminal, and the right-angle area on the edge of the screen and the edge area with burr can be set as the rounded corner effect, which makes the system interface more beautiful.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他实施例的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present application. For those of ordinary skill in the art, the drawings of other embodiments can also be obtained according to these drawings without creative efforts.
图1为一个实施例中圆角图像显示方法的应用环境图。FIG. 1 is an application environment diagram of a method for displaying images with rounded corners in one embodiment.
图2为一个实施例中圆角图像显示方法的流程图。FIG. 2 is a flowchart of a method for displaying a rounded image in one embodiment.
图3为一个实施例中圆角图像的示意图。FIG. 3 is a schematic diagram of an image with rounded corners in one embodiment.
图4为一个实施例中圆角图像显示在屏幕的边缘区域的界面示意图。FIG. 4 is a schematic diagram of an interface in which a rounded image is displayed in an edge area of a screen in an embodiment.
图5为一个实施例中圆角图像显示方法的原理图。FIG. 5 is a schematic diagram of a method for displaying images with rounded corners in one embodiment.
图6为一个实施例中圆角图像显示装置的结构框图。FIG. 6 is a structural block diagram of an image display device with rounded corners in one embodiment.
图7为一个实施例中电子设备的内部结构图。FIG. 7 is an internal structure diagram of an electronic device in one embodiment.
具体实施方式detailed description
为了便于理解本申请,下面将参照相关附图对本申请进行更全面的描述。附图中给出了本申请的较佳实施例。但是,本申请可以以许多不同的形式来实现,并不限于本文所描述的实施例。相反地,提供这些实施例的目的是使对本申请的公开内容的理解更加透彻全面。In order to facilitate understanding of the present application, the present application will be described more fully below with reference to the related drawings. The preferred embodiments of the present application are shown in the accompanying drawings. However, the application may be implemented in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided so that a thorough and complete understanding of the disclosure of this application is provided.
图1为一个实施例中圆角图像显示方法的应用环境示意图。如图1所示, 该应用环境包括终端110和服务器120。当终端110的系统界面应用启动时,终端110可从服务器120获取系统界面应用对应的应用代码。终端110从应用代码中获取圆角图像标识。接着,终端110从预设资源集中获取圆角图像标识对应的圆角图像,该圆角图像与终端的屏幕类型相匹配。接着,终端110在终端的屏幕上的边缘区域显示圆角图像。其中,终端110通过网络与服务器120进行通信。其中,终端110可以但不限于是各种个人计算机、笔记本电脑、智能手机、平板电脑和便携式可穿戴设备,服务器120可以用独立的服务器或者是多个服务器组成的服务器集群来实现。FIG. 1 is a schematic diagram of an application environment of a method for displaying images with rounded corners in one 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 the application code corresponding to the system interface application from the server 120 . The terminal 110 obtains the rounded image identifier from the application code. Next, the terminal 110 acquires a rounded image corresponding to the rounded image identifier from the preset resource set, where the rounded image matches the screen type of the terminal. Next, the terminal 110 displays a rounded image in an edge area on the screen of the terminal. The terminal 110 communicates with the server 120 through the network. The terminal 110 can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers and portable wearable devices, and the server 120 can be implemented by an independent server or a server cluster composed of multiple servers.
图2为一个实施例中圆角图像显示方法的流程图。本实施例中的圆角图像显示方法,以运行于图1中的终端上为例进行描述。如图2所示,该圆角图像显示方法包括操作202至操作208。FIG. 2 is a flowchart of a method for displaying a rounded image in one embodiment. The method for displaying images with rounded corners in this embodiment is described by taking running on the terminal in FIG. 1 as an example. As shown in FIG. 2 , the method for displaying images with rounded corners includes operations 202 to 208 .
操作202,当终端的系统界面应用启动时,获取系统界面应用对应的应用代码。In operation 202, when the system interface application of the terminal is started, an application code corresponding to the system interface application is acquired.
其中,系统界面应用即SystemUI应用,该SystemUI应用为用户提供系统级别的信息,显示为与用户交互的系统界面。该系统界面上显示比如锁屏、状态栏、底部导航栏、最近使用应用程序列表等信息。The system interface application is the SystemUI application, and the SystemUI application provides system-level information for the user and is displayed as a system interface that interacts with the user. The system interface displays information such as the lock screen, the status bar, the bottom navigation bar, and the list of recently used applications.
具体地,终端开机时,会启动终端的系统界面应用,以显示系统界面。当终端接收到系统界面应用启动的指令时,终端可获取该系统界面应用对应的应用代码。通过运行该应用代码启动系统界面应用,以显示终端的系统界面。Specifically, when the terminal is powered on, a system interface application of the terminal is started to display the system interface. When the terminal receives the instruction for starting the system interface application, the terminal can obtain the application code corresponding to the system interface application. The system interface application is started by running the application code to display the system interface of the terminal.
操作204,从应用代码中获取圆角图像标识。In operation 204, the rounded-corner image identifier is obtained from the application code.
其中,圆角图像是指有弧度的图像,圆角图像可叠加在终端屏幕上,使得终端屏幕呈现出圆角效果的图案。圆角图像标识用于标记不同的圆角图像,该圆角图像标识可以是圆角图像的名称、圆角图像的特征等。The rounded image refers to an image with radians, and the rounded image can be superimposed on the terminal screen, so that the terminal screen presents a pattern with a rounded effect. The rounded image identifier is used to mark different rounded images, and the rounded image identifier can be the name of the rounded image, the characteristics of the rounded image, and the like.
如图3所示,是屏幕类型为挖孔屏幕的一个圆角图像,并且是左上角的挖孔屏的圆角图像。该圆角图像的尺寸、形状,圆孔的尺寸均与挖孔屏左上角的边缘区域相匹配。As shown in FIG. 3 , it is a rounded image with a screen type of a hole-digging screen, and is a rounded image of the hole-digging screen in the upper left corner. The size and shape of the rounded image and the size of the round hole match the edge area of the upper left corner of the hole-digging screen.
具体地,系统界面应用对应的应用代码中存在圆角图像标识,则终端可从该应用代码中获取圆角图像标识。进一步地,该应用代码中可存在多个不同的圆角图像标识,终端可从应用代码中获取该多个不相同的圆角图像标识。该多个为至少两个,例如该应用代码中存在5个不同的圆角图像标识。Specifically, if there is a rounded image identifier in the application code corresponding to the system interface application, the terminal can obtain the rounded image identifier from the application code. Further, there may be multiple different rounded image identifiers in the application code, and the terminal may acquire the multiple different rounded image identifiers from the application code. The multiple is at least two, for example, there are five different rounded image identifiers in the application code.
操作206,从预设资源集中获取圆角图像标识对应的圆角图像,该圆角图像与终端的屏幕类型相匹配。In operation 206, a rounded image corresponding to the rounded image identifier is obtained from a preset resource set, where the rounded image matches the screen type of the terminal.
其中,终端的屏幕类型包括但不限于全面屏、刘海屏、水滴屏、挖孔屏等。预设资源集中存放与终端的屏幕类型相匹配的图像。例如,屏幕类型为刘海屏的终端,该终端的预设资源集中存放与刘海屏相匹配的圆角图像,以将刘海屏的边缘区域设置为圆角。屏幕类型为水滴屏的终端,则该终端的预设资源集中存放与水滴屏相匹配的圆角图像。Among them, the screen types of the terminal include but are not limited to full screen, notch screen, water drop screen, hole-digging screen, etc. The preset resource centrally stores images that match the screen type of the terminal. For example, for a terminal whose screen type is Liu Haiping, the preset resource of the terminal centrally stores rounded images matching Liu Haiping, so that the edge area of Liu Haiping is set as rounded corners. For a terminal whose screen type is a water drop screen, the preset resources of the terminal collectively store rounded images that match the water drop screen.
具体地,终端可检测终端内是否存在预设资源集。当终端内存在预设资源集时,从该预设资源集中获取与圆角图像标识具有相同标识的圆角图像。Specifically, the terminal may detect whether a preset resource set exists in the terminal. When a preset resource set exists in the terminal, a rounded image with the same identifier as the rounded image identifier is obtained from the preset resource set.
在本实施例中,预设资源集中可存在多张圆角图像,每张圆角图像有唯一标识,即圆角图像标识。当终端从应用代码中获取该多个不相同的圆角图像标识时,终端可从该预设资源集中获取具有相同圆角图像标识的圆角图像。In this embodiment, multiple rounded images may exist in the preset resource set, and each rounded image has a unique identifier, that is, a rounded image identifier. When the terminal acquires the multiple different rounded image identifiers from the application code, the terminal can acquire from the preset resource set the rounded images with the same rounded image identifier.
操作208,在终端的屏幕上的边缘区域显示圆角图像。In operation 208, an image with rounded corners is displayed on the edge area of the screen of the terminal.
其中,屏幕上的边缘区域是指屏幕边缘的四个直角,以及屏幕上具有孔的区域。例如,水滴屏屏幕的上方边缘中间的位置具有孔,则需要在该具有孔的区域显示圆角图像,该圆角图像中同样具备形状、尺寸相同的孔。挖孔屏屏幕边缘的左上方的区域具有孔,则需要在该左上方的具有孔的区域显示圆角图像,该圆角图像中同样具备形状、尺寸相同的孔。Among them, the edge area on the screen refers to the four right angles of the edge of the screen and the area with holes on the screen. For example, if there is a hole in the middle of the upper edge of the screen of the water drop screen, a rounded image needs to be displayed in the area with the hole, and the rounded image also has holes of the same shape and size. If there is a hole in the upper left area of the screen edge of the hole-digging screen, a rounded image needs to be displayed in the upper left area with the hole, and the rounded image also has holes of the same shape and size.
具体地,终端可将从预设资源集中获取的圆角图像显示在终端屏幕上的边缘区域。进一步地,当终端从预设资源集中获取多张圆角图像时,确定各圆角图像与屏幕上的各边缘区域之间的对应关系。接着,终端可将各圆角图像显示在对应的边缘区域。Specifically, the terminal may display the rounded image obtained from the preset resource set on the edge area of the terminal screen. Further, when the terminal acquires multiple rounded images from the preset resource set, the corresponding relationship between each rounded image and each edge area on the screen is determined. Then, the terminal may display each rounded image in the corresponding edge area.
传统的圆角图像显示方式中,圆角图像直接配置到系统界面的应用代码 中。而该应用代码的安装包一旦编译生成,无法改变其中的圆角图像,导致该应用代码的安装包只能安装在指定屏幕类型的终端上,无法适配不同类型的屏幕。In the traditional rounded image display method, the rounded image is directly configured into the application code of the system interface. Once the installation package of the application code is compiled and generated, the rounded image in it 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 rounded image matching the screen type of the terminal is pre-stored in the terminal. When the system interface application of the terminal is started, the application code corresponding to the system interface application is obtained, and the rounded image corresponding to the rounded image identifier is obtained from the preset resource set, thereby reducing the coupling between the rounded image and the system interface application and improving the system. performance and stability. Through the method for displaying images with rounded corners in this embodiment, terminals of different screen types can use the same application code, thereby reducing maintenance costs. Through the rounded image identification in the application code, the pre-stored and image rounded corners in the terminal can be called, so there is no need to judge the screen type of the terminal, and the startup efficiency of the system interface is improved. A rounded image is displayed on the edge area of the screen of the terminal, and the right-angle area on the edge of the screen and the edge area with burr can be set as the rounded corner effect, which makes the system interface more beautiful.
在一个实施例中,终端系统中可存在至少一个预设资源集。终端可确定当前屏幕的类型,根据屏幕的类型确定确定对应的预设资源集。接着,终端可从该屏幕类型对应的预设资源集中获取圆角图像标识对应的圆角图像。In one embodiment, at least one preset resource set may exist in the terminal system. The terminal may determine the type of the current screen, and determine the corresponding preset resource set according to the type of the screen. Next, the terminal may acquire the rounded image corresponding to the rounded image identifier from the preset resource set corresponding to the screen type.
在一个实施例中,从预设资源集中获取圆角图像标识对应的圆角图像,包括:In one embodiment, obtaining a rounded image corresponding to a rounded image identifier from a preset resource set includes:
从预设路径的预设资源集中获取圆角图像标识对应的圆角图像;该预设路径与系统界面应用的存储路径不同。The rounded image corresponding to the rounded image identifier is obtained from the preset resource set of the preset path; the preset path is different from the storage path of the system interface application.
具体地,当终端接收到的系统界面应用的启动指令时,获取从该系统界面应用的存储路径获取应用代码。接着,终端从该应用代码中获取圆角图像标识。Specifically, when the terminal receives the startup instruction of the system interface application, the application code is obtained from the storage path of the system interface application. Next, the terminal obtains the rounded image identifier from the application code.
接着,终端可检测系统中是否存在预设路径,并确定该预设路径中是否存在预设资源集。当终端系统中存在预设路径,且该预设路径内存在预设资源集时,从该预设资源集中获取与圆角图像标识具有相同标识的圆角图像。其中,该预设路径和终端的系统界面应用的存储路径不同。该预设路径与终端的系统界面应用的应用代码的存储路径不同。Next, the terminal may 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, a rounded image with the same identifier as the rounded image identifier is acquired from the preset resource set. The preset path is different from the storage path of the system interface application of the terminal. The preset path is different from the storage path of the application code applied by the system interface of the terminal.
本实施例中,将圆角图像存储在与系统界面应用的存储路径不相同的终端系统的预设路径中,从而能够将圆角图像和系统界面应用实现解耦,降低圆角图像和系统界面应用的耦合度,使得不同屏幕类型的终端都可以使用同一套系统界面应用的应用代码。In this embodiment, the rounded image is stored in a preset path of the terminal system that is different from the storage path of the system interface application, so that the rounded image and the system interface application can be decoupled, and the reduction of the rounded image and the system interface can be achieved. The coupling degree of the application enables terminals of different screen types to use the application code of the same set of system interface applications.
在一个实施例中,在终端的屏幕上的边缘区域显示圆角图像,包括:确定所获取的各圆角图像与终端的屏幕上的各边缘区域之间的映射关系;在屏幕的各边缘区域显示具有映射关系的圆角图像。In one embodiment, displaying a rounded image in an edge area on the screen of the terminal includes: determining a mapping relationship between each acquired rounded image and each edge area on the screen of the terminal; in each edge area of the screen Displays an image with rounded corners mapped.
具体地,终端从应用代码中获取各圆角图像标识,并从预设资源集中获取各圆角图像标识对应的圆角图像。接着,终端可确定终端屏幕上的各边缘区域在该屏幕上的方位,并确定各圆角图像的图像标识和各方位的映射关系。接着,终端可将圆角图像显示在与该圆角图像标识具有映射关系的方位所对应的边缘区域,从而将各圆角图像显示在对应的边缘区域。Specifically, the terminal acquires each rounded image identifier from the application code, and acquires the rounded image corresponding to each rounded image identifier from a preset resource set. Next, the terminal may determine the orientation of each edge area on the screen of the terminal on the screen, and determine the image identification of each rounded image and the mapping relationship of each orientation. Then, the terminal may display the rounded image in the edge area corresponding to the orientation having the mapping relationship with the rounded image identifier, so as to display each rounded image in the corresponding edge area.
本实施例中,通过各圆角图像和终端的屏幕上的各边缘区域之间的映射关系,以快速准确确定各圆角图像在哪个边缘区域进行显示,从而快速准确地将终端的屏幕的各边缘区域设置圆角效果。In this embodiment, the mapping relationship between each rounded image and each edge region on the screen of the terminal is used to quickly and accurately determine in which edge region each rounded image is displayed, so as to quickly and accurately map each edge region of the screen of the terminal. Sets the rounded corner effect for the edge area.
在一个实施例中,该圆角图像标识为圆角图像的方位名称;确定所获取的各圆角图像与终端的屏幕上的各边缘区域之间的映射关系,包括:In one embodiment, the rounded corner image is identified as an orientation name of the rounded corner image; determining the mapping relationship between each of the acquired rounded corner images and each edge region on the screen of the terminal includes:
确定终端的屏幕上的各边缘区域在屏幕上的方位;根据所获取的各圆角图像的方位名称和各边缘区域的方位,确定各圆角图像和各边缘区域之间的映射关系。Determine the orientation on the screen of each edge area on the screen of the terminal; determine the mapping relationship between each rounded image and each edge area according to the acquired orientation name of each rounded image and the orientation of each edge area.
其中,圆角图像的方位名称是指用方位作为圆角图像的名称,例如圆角图像的方位名称为“左上”、“右上”等。该方位名称可按照屏幕的竖屏或者横屏为参照。The azimuth name of the rounded image refers to using the azimuth as the name of the rounded image, for example, the azimuth name of the rounded image is "upper left", "upper right" and so on. The orientation name can be based on the vertical screen or horizontal screen of the screen.
具体地,该圆角图像标识为圆角图像的方位名称。终端从应用代码中获取各圆角图像的方位名称,并从预设资源集中获取与各圆角图像的方位名称相同名称的圆角图像。接着,终端以终端的竖屏为基准,可确定终端的屏幕上的各边缘区域在屏幕上的方位,并将各圆角图像的方位名称和各边缘区域 在屏幕上的方位进行比较。方位名称和屏幕上的方位相同,则表示该方位名称对应的圆角图像与该方位所对应的边缘区域具有映射关系。按照相同的处理方式,则可确定终端屏幕上与各圆角图像具有映射关系的边缘区域。Specifically, the rounded image is identified as an orientation name of the rounded image. The terminal obtains the azimuth name of each rounded image from the application code, and obtains the rounded image with the same name as the azimuth name of each rounded image from the preset resource set. Then, the terminal can determine the orientation of each edge area on the screen of the terminal based on 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. If the orientation name is the same as the orientation on the screen, it means that the rounded image corresponding to the orientation name has a mapping relationship with the edge area corresponding to the orientation. According to the same processing method, the edge area on the terminal screen that has a mapping relationship with each rounded image can be determined.
本实施例中,将圆角图像的名称用方位命名,通过方位名称即可直接确定对应的圆角图像应该显示在屏幕的哪个边缘区域,从而快速准确地将终端的屏幕的各边缘区域设置圆角效果。In this embodiment, the name of the rounded image is named with the orientation, and the orientation name can directly determine which edge area of the screen the corresponding rounded image should be displayed on, so as to quickly and accurately set each edge area of the screen of the terminal as a circle corner effect.
如图4所示,为一个实施例中,各圆角图像显示在屏幕各边缘区域的界面图。该终端屏幕以竖屏为基准,以确定各边缘区域的方位。终端从应用代码中获取各圆角图像的方位名称,如图中所示的“左上”“上方中间”“右上”“左下”“右下”等方位名称。终端根据各方位名称从预设资源集中获取与方位名称的圆角图像。接着,终端根据各方位名称将圆角图像移动到屏幕的各边缘区域,使得各圆角图像与对应方位的边缘区域相契合,从而从系统界面上显示出圆角效果。As shown in FIG. 4 , in one embodiment, each rounded image is displayed on 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 orientation name of each rounded image from the application code, such as "upper left", "upper middle", "upper right", "lower left" and "lower right" as shown in the figure. The terminal obtains the rounded image with the orientation name from the preset resource set according to the orientation name. Then, the terminal moves the rounded image to each edge area of the screen according to the name of each position, so that each rounded image fits the edge area of the corresponding position, so that the rounded corner effect is displayed on the system interface.
在一个实施例中,该方法还包括:当终端的屏幕发生旋转时,确定旋转角度和旋转方向;将显示在终端的各边缘区域的圆角图像,按照旋转角度和旋转方向进行旋转,并在旋转后的屏幕的各边缘区域显示对应的旋转后的圆角图像。In one embodiment, the method further includes: when the screen of the terminal is rotated, determining the rotation angle and the rotation direction; rotating the rounded images displayed in each edge area of the terminal according to the rotation angle and the rotation direction, and Each edge area of the rotated screen displays a corresponding rotated image with rounded corners.
具体地,当终端的屏幕发生旋转时,终端确定屏幕的旋转角度和旋转方向。接着,终端可将终端屏幕上显示的各圆角图像按照该旋转方向旋转相同的角度,得到旋转后的各圆角图像。接着,终端将各旋转后的圆角图像显示在各旋转后的屏幕的边缘区域。例如,当终端逆时针旋转90度时,屏幕的物理硬件挖孔位置也转到了左下角,而且角度也发生了逆时针90度的旋转,则需要将各圆角图像按照逆时针旋转90度,使得圆角图像和屏幕的边缘区域贴合。Specifically, when the screen of the terminal is rotated, the terminal determines the rotation angle and rotation direction of the screen. Then, the terminal may rotate each rounded image displayed on the terminal screen by the same angle according to the rotation direction to obtain each rotated rounded image. Next, the terminal displays each rotated rounded image on the edge area of each rotated screen. For example, when the terminal is rotated 90 degrees counterclockwise, the physical hardware punching position of the screen is also turned to the lower left corner, and the angle is also rotated 90 degrees counterclockwise, so each rounded image needs to be rotated 90 degrees counterclockwise. Makes the image with rounded corners fit to the edge areas of the screen.
本实施例中,当终端的屏幕发生旋转时,确定旋转角度和旋转方向。将显示在终端的各边缘区域的圆角图像,按照旋转角度和旋转方向进行旋转,使得圆角图像能够随着屏幕的旋转,并且使得旋转后的圆角图像能够和各边 缘区域相互契合。In this embodiment, when the screen of the terminal is rotated, the rotation angle and the rotation direction are determined. Rotate the rounded image displayed in each edge area of the terminal according to the rotation angle and rotation direction, so that the rounded image can be rotated with the screen, and the rotated rounded image can fit each edge area.
在一个实施例中,在当终端的系统界面应用启动时,获取系统界面应用对应的应用代码之前,还包括:确定终端的屏幕类型,获取与屏幕类型相匹配的圆角图像;在终端中添加预设资源集,并将圆角图像存储至预设资源集。In one embodiment, when the system interface application of the terminal is started, before acquiring the application code corresponding to the system interface application, the method further includes: determining the screen type of the terminal, and acquiring a rounded image matching the screen type; adding in the terminal Preset asset set, and save rounded image to preset asset set.
具体地,终端确定所使用的屏幕的类型,并获取与该屏幕类型相匹配的圆角图像。进一步地,终端可按照该屏幕类型获取预设数量的相匹配的圆角图像。例如,终端的屏幕类型为水滴屏时,获取与水滴屏匹配的5张圆角图像。终端的屏幕类型为全面屏,则获取与全面屏匹配的4张圆角图像。Specifically, the terminal determines the type of the screen used, and obtains an image with rounded corners that matches the screen type. Further, the terminal may acquire a preset number of matching rounded images according to the screen type. For example, when the screen type of the terminal is a water drop screen, obtain 5 rounded images matching the water drop screen. If the screen type of the terminal is full screen, four rounded images matching the full screen are obtained.
接着,终端在系统中添加预设资源集,并将获取的圆角图像存放至该预设资源集中。其中,该预设资源集的存放路径与终端的系统界面应用的应用代码的存储路径不同。Next, the terminal adds a preset resource set to the system, and stores the acquired rounded image in the preset resource set. Wherein, 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.
在本实施例中,终端可在系统中添加预设路径,并在预设路径中添加预设资源集,将该获取的圆角图像存放至系统的预设路径的预设资源集中。其中,该预设路径和终端的系统界面应用的存储路径不同。该预设路径与终端的系统界面应用的应用代码的存储路径不同。In this embodiment, the terminal may add a preset path in the system, and add a preset resource set to the preset path, and store the acquired rounded image in the preset resource set of the preset path of the system. The preset path is different from the storage path of the system interface application of the terminal. The preset path is different from the storage path of the application code applied by the system interface of the terminal.
本实施例中,通过确定终端的屏幕类型,获取与屏幕类型相匹配的圆角图像,从而能够预先获取跟屏幕类型匹配的圆角图像。在终端中添加预设资源集,并将圆角图像存储至预设资源集,从而能够将获取的圆角图像存放在终端系统的特定位置,以供系统界面应用调用。并且,存放在系统的特定位置能够避免圆角图像被其它应用移除。该预设资源集的存放路径与终端的系统界面应用的应用代码的存储路径不同,则实现圆角图像和系统界面应用的资源解耦,使得一套系统界面应用的应用代码在不同的终端中不用判断屏幕类型,就可以直接调用该终端中的圆角图像。In this embodiment, by determining the screen type of the terminal and obtaining a rounded image matching the screen type, the rounded image matching the screen type can be obtained in advance. A preset resource set is added to the terminal, and the rounded corner image is stored in the preset resource set, so that the obtained rounded corner image can be stored in a specific location of the terminal system for the system interface application to call. Also, storing it in a specific location on the system prevents rounded images from being removed by other applications. 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, so that the resource decoupling of the rounded image and the system interface application is realized, so that the application code of a set of system interface applications can be stored in different terminals. You can directly call the rounded image in the terminal without judging the screen type.
在一个实施例中,该方法还包括:当终端中不存在预设资源集时,获取默认资源集;从默认资源集中获取圆角图像标识对应的默认圆角图像;在终端的屏幕上的边缘区域显示圆角图像,包括:在终端的屏幕上的边缘区域显示默认圆角图像。In one embodiment, the method further includes: when a preset resource set does not exist in the terminal, obtaining a default resource set; obtaining a default rounded image corresponding to a rounded image identifier from the default resource set; an edge on the screen of the terminal The area displays a rounded image, including: displaying a default rounded image in the edge area on the screen of the terminal.
具体地,终端检测系统中是否存在预设资源集。当终端系统内存在预设资源集时,从该预设资源集中获取圆角图像标识对应的圆角图像。当终端系统内不存在预设资源集时,确定默认资源集,从该默认资源集中获取圆角图像标识对应的圆角图像。Specifically, the terminal detects whether a preset resource set exists in the system. When a preset resource set exists in the terminal system, a rounded image corresponding to the rounded image identifier is obtained from the preset resource set. When the preset resource set does not exist in the terminal system, a default resource set is determined, and a rounded image corresponding to the rounded image identifier is obtained from the default resource set.
接着,终端可将从默认资源集中获取的圆角图像显示在终端屏幕上的边缘区域。进一步地,当终端从默认资源集中获取多张圆角图像时,确定各圆角图像与屏幕上的各边缘区域之间的对应关系。接着,终端可将各默认圆角图像显示在对应的边缘区域。Then, the terminal may display the rounded image obtained from the default resource set on the edge area of the terminal screen. Further, when the terminal acquires multiple rounded corner images from the default resource set, the corresponding relationship between each rounded corner image and each edge region on the screen is determined. Then, the terminal may display each default rounded corner image in the corresponding edge area.
在本实施例中,终端可检测系统中是否存在预设路径,当终端系统内存在预设路径时,从该预设路径的预设资源集中获取圆角图像标识对应的圆角图像。当终端系统内不存在预设路径时,获取默认路径,从该默认路径的默认资源集中获取圆角图像标识对应的默认圆角图像。In this embodiment, the terminal may detect whether a preset path exists in the system, and when a preset path exists in the terminal system, obtain a rounded image corresponding to a rounded image identifier from a preset resource set of the preset path. When the preset path does not exist in the terminal system, the default path is obtained, and the default rounded image corresponding to the rounded image identifier is obtained from the default resource set of the default path.
在本实施例中,当终端中不存在预设资源集时,从默认资源集中获取圆角图像标识对应的默认圆角图像,避免系统界面应用对圆角图像的调用出错的情况。在终端的屏幕上的边缘区域显示默认圆角图像,能够将屏幕的边缘直角区域以及存在毛刺的边缘区域设置为圆角效果,使得系统界面更美观。In this embodiment, when the preset resource set does not exist in the terminal, the default rounded image corresponding to the rounded image identifier is obtained from the default resource set, so as to avoid an error in calling the rounded image by the system interface application. The default rounded image is displayed on the edge area of the screen of the terminal, and the right-angle area on the edge of the screen and the edge area with burrs can be set as the rounded corner effect, which makes the system interface more beautiful.
在一个实施例中,该预设资源集中的圆角图像的数量小于或等于该默认资源集中的默认圆角图像数量。In one embodiment, the number of rounded images in the preset resource set is less than or equal to the default number of rounded images in the default resource set.
具体地,预设资源集中的圆角图像是与该终端的屏幕类型相匹配的图像。不同屏幕类型所匹配的圆角图像的数量并不相同,例如在屏幕的左上方有个孔的挖孔屏,即该开孔位于屏幕边缘的左上方,则屏幕边缘四个直角区域各需要配置一张圆角图像,四个直角区域分别为左上方、右上方、左下方和右下方区域。则该挖空屏的预设资源集中存在四张圆角图像,且显示在左上方的圆角图像需要开孔。刘海屏的终端屏幕,开孔在屏幕上方的正中间,则正中间需要设置一张圆角图像,而屏幕边缘四个直角区域各需要配置一张圆角图像,则该刘海屏的预设资源集中存放5张该终端的屏幕类型相匹配的圆角图像。Specifically, the rounded image in the preset resource set is an image matching the screen type of the terminal. The number of rounded images matched by different screen types is not the same. For example, a hole-punch screen with a hole at the top left of the screen, that is, the hole is located at the top left of the screen edge, then the four right-angle areas on the screen edge need to be configured for each. An image with rounded corners, the four right-angled areas are the upper left, upper right, lower left and lower right areas. Then there are four rounded images in the preset resource set of the knockout screen, and the rounded image displayed on the upper left needs to be opened. For the terminal screen of Liu Haiping, the opening is in the middle of the top of the screen, then a rounded image needs to be set in the middle, and a rounded image needs to be configured in each of the four right-angle areas on the edge of the screen, then the preset resource of Liu Haiping Collect 5 rounded images that match the screen type of the terminal.
默认资源集中存在预设数量的默认圆角图像,例如5张。则该预设资源集中的圆角图像的数量小于或等于该默认资源集中的默认圆角图像数量。各个不同屏幕类型中终端的默认资源集中,存放的默认圆角图像相同,存放的默认圆角图像的数量相同。There is a preset number of default rounded images in the default resource set, such as 5 images. Then the number of rounded images in the preset resource set is less than or equal to the default number of rounded images in the default resource set. The default resource sets of terminals in different screen types store the same default rounded images and the same number of stored default rounded images.
在本实施例中,当该预设资源集中的圆角图像的数量等于该默认资源集中的默认圆角图像数量。终端系统的预设资源集中的各圆角图像的名称和该默认资源集中的圆角图像的名称相同。例如,预设资源集中的圆角图像为:图像A、图像B、图像C、图像D和图像E,则该默认资源集中的圆角图像名称为:图像A、图像B、图像C、图像D和图像E。In this embodiment, the number of rounded images in the preset resource set is equal to the default number of rounded images in the default resource set. The name of each rounded image in the preset resource set of the terminal system is the same as the name of the rounded image in the default resource set. For example, the rounded images in the preset resource set are: Image A, Image B, Image C, Image D, and Image E, then the names of the rounded images in the default resource set are: Image A, Image B, Image C, Image D and image E.
当该预设资源集中的圆角图像的数量小于该默认资源集中的默认圆角图像数量。预设资源集中的圆角图像的在默认资源集中均对应一个相同名称的圆角资源图像。例如,预设资源集中的圆角图像为:左上方、右上方、左下方和右下方,则该默认资源集中的圆角图像名称为:左上方、上方正中间、右上方、左下方和右下方。When the number of rounded images in the preset resource set is less than the default number of rounded images in the default resource set. The rounded images in the preset resource set all correspond to a rounded resource image with the same name in the default resource set. For example, the rounded images in the preset resource set are: upper left, upper right, lower left and lower right, then the names of the rounded images in the default resource set are: upper left, upper middle, upper right, lower left and right below.
如图5所示,为一个实施例中圆角图像显示方法的原理图。预先根据各种类型的屏幕设置好对应的圆角图像。在各终端系统内添加预设资源集,并在预设资源集中存在对应该终端的屏幕类型的圆角图像。例如,在终端系统内添加overlay,并将各终端的overlay中存放于屏幕类型相匹配的圆角图像。并且,各个终端的overlay中的圆角图像标识相同,各终端所使用的系统界面应用的应用代码相同。对于任意一个终端,当终端的系统界面应用启动时,从该应用代码中获取圆角图像标识。接着,终端检测系统中是否存在预设资源集。当终端系统内存在预设资源集时,从该预设资源集中获取圆角图像标识对应的圆角图像。当终端系统内不存在预设资源集时,确定默认资源集,从该默认资源集中获取圆角图像标识对应的圆角图像。接着,可通过运行时资源替换技术(runtime resource overlay,简称RRO)将各圆角图像显示在终端屏幕的各边缘区域,以在各边缘区域实现圆角效果。As shown in FIG. 5 , it is a schematic diagram of a method for displaying images with rounded corners in one embodiment. The corresponding rounded corner images are set in advance according to various types of screens. A preset resource set is added in each terminal system, and a rounded image corresponding to the screen type of the terminal exists in the preset resource set. For example, an overlay is added in the terminal system, and the overlay of each terminal is stored in a rounded image that matches the screen type. In addition, the rounded image identifiers in the overlay of each terminal are the same, and the application code of the system interface application used by each terminal is the same. For any terminal, when the system interface application of the terminal is started, the rounded image identifier is obtained from the application code. Next, the terminal detects whether a preset resource set exists in the system. When a preset resource set exists in the terminal system, a rounded image corresponding to the rounded image identifier is obtained from the preset resource set. When the preset resource set does not exist in the terminal system, a default resource set is determined, and a rounded image corresponding to the rounded image identifier is obtained from the default resource set. Then, each rounded image may be displayed on each edge area of the terminal screen through a runtime resource overlay (RRO for short) technology, so as to realize a rounded corner effect in each edge area.
在一个实施例中,提供了一种圆角图像显示方法,包括:In one embodiment, a method for displaying images with rounded corners is provided, comprising:
终端确定终端的屏幕类型,获取与屏幕类型相匹配的圆角图像。The terminal determines the screen type of the terminal, and obtains a rounded image matching the screen type.
接着,终端在系统中添加预设资源集,并将圆角图像存储至预设资源集。Next, the terminal adds a preset resource set to the system, and stores the rounded image in the preset resource set.
当终端的系统界面应用启动时,终端获取系统界面应用的存储路径获取对应的应用代码。When the system interface application of the terminal is started, the terminal obtains the storage path of the system interface application to obtain the corresponding application code.
接着,终端从应用代码中获取圆角图像的方位名称。Next, the terminal obtains the orientation name of the rounded image from the application code.
进一步地,从预设路径的预设资源集中获取圆角图像的方位名称对应的圆角图像。Further, the rounded image corresponding to the orientation name of the rounded image is obtained from the preset resource set of the preset path.
接着,终端根据各圆角图像的方位名称,确定各圆角图像与终端的屏幕上的各边缘区域之间的映射关系。Next, the terminal determines the mapping relationship between each rounded image and each edge region on the screen of the terminal according to the orientation name of each rounded image.
接着,终端在屏幕的各边缘区域显示具有映射关系的圆角图像。Next, the terminal displays a rounded image with a mapping relationship on each edge area of the screen.
进一步地,当终端的屏幕发生旋转时,确定旋转角度和旋转方向。Further, when the screen of the terminal is rotated, the rotation angle and the rotation direction are determined.
接着,终端将显示在终端的各边缘区域的圆角图像,按照旋转角度和旋转方向进行旋转,并在旋转后的屏幕的各边缘区域显示对应的旋转后的圆角图像。Next, the terminal will display the rounded image on each edge area of the terminal, rotate according to the rotation angle and the rotation direction, and display the corresponding rotated rounded image on each edge area of the rotated screen.
可选地,当终端中不存在预设资源集时,终端获取默认资源集。Optionally, when the preset resource set does not exist in the terminal, the terminal obtains the default resource set.
接着,终端从默认资源集中获取圆角图像的方位名称对应的默认圆角图像。Next, the terminal acquires the default rounded image corresponding to the orientation name of the rounded image from the default resource set.
接着,终端在终端的屏幕上的各边缘区域显示对应的默认圆角图像。Next, the terminal displays a corresponding default rounded corner image in each edge area on the screen of the terminal.
本实施例中,在终端中预先存储与终端的屏幕类型相匹配的圆角图像,并且利用方位作为圆角图像的名称,从而使得终端根据圆角图像的名称即可明确圆角图像显示的边缘区域。In this embodiment, a rounded image matching the screen type of the terminal is pre-stored in the terminal, and the orientation is used as the name of the rounded image, so that the terminal can specify the edge displayed by the rounded image according to the name of the rounded image. area.
当终端的系统界面应用启动时,获取系统界面应用对应的应用代码,从预设资源集中获取圆角图像的方位名称对应的圆角图像,从而降低了圆角图像和系统界面应用的耦合度,提升系统的性能和稳定性。通过本实施例的圆角图像显示方法,不同屏幕类型的终端可以使用相同的应用代码,降低维护成本。通过应用代码中的圆角图像的方位名称就可以调用终端中预先存储的与图像圆角,则无需判断终端的屏幕类型,提高系统界面的启动效率。When the system interface application of the terminal is started, the application code corresponding to the system interface application is obtained, and the rounded image corresponding to the orientation name of the rounded image is obtained from the preset resource set, thereby reducing the coupling between the rounded image and the system interface application. Improve system performance and stability. Through the method for displaying images with rounded corners in this embodiment, terminals of different screen types can use the same application code, thereby reducing maintenance costs. Through the orientation name of the rounded image in the application code, the pre-stored and image rounded corners in the terminal can be called, so there is no need to judge the screen type of the terminal, and the startup efficiency of the system interface is improved.
当终端中不存在预设资源集时,从默认资源集中获取圆角图像的方位名称对应的默认圆角图像,避免系统界面应用对圆角图像的调用出错的情况。在终端的屏幕上的边缘区域显示圆角图像,能够将屏幕的边缘直角区域以及存在毛刺的边缘区域设置为圆角效果,使得系统界面更美观。When the preset resource set does not exist in the terminal, the default rounded image corresponding to the orientation name of the rounded image is obtained from the default resource set, so as to avoid errors in calling the rounded image by the system interface application. A rounded image is displayed on the edge area of the screen of the terminal, and the right-angle area on the edge of the screen and the edge area with burr can be set as the rounded corner effect, which makes the system interface more beautiful.
应该理解的是,虽然图2、图5的流程图中的各个操作按照箭头的指示依次显示,但是这些操作并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些操作的执行并没有严格的顺序限制,这些操作可以以其它的顺序执行。而且,图2、图5中的至少一部分操作可以包括多个子操作或者多个阶段,这些子操作或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子操作或者阶段的执行顺序也不必然是依次进行,而是可以与其它操作或者其它操作的子操作或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the respective operations in the flowcharts of FIG. 2 and FIG. 5 are displayed in sequence according to the arrows, these operations are not necessarily executed in the sequence indicated by the arrows. Unless otherwise specified herein, the execution of these operations is not strictly limited in order, and these operations may be performed in other orders. Moreover, at least a part of the operations in FIG. 2 and FIG. 5 may include multiple sub-operations or multiple stages. These sub-operations or stages are not necessarily executed and completed at the same time, but may be executed at different times. These sub-operations or The order of execution of the stages is also not necessarily sequential, but may be performed alternately or alternately with other operations or sub-operations of other operations or at least a portion of a stage.
图6为一个实施例的圆角图像显示装置的结构框图。如图6所示,该装置包括:应用代码模块602、标识获取模块604、圆角图像获取模块606和显示模块608。其中,FIG. 6 is a structural block diagram of an image display device with rounded corners according to an embodiment. As shown in FIG. 6 , the apparatus includes: an application code module 602 , an identification acquisition module 604 , a rounded image acquisition module 606 and a display module 608 . in,
应用代码模块602,用于当终端的系统界面应用启动时,获取系统界面应用对应的应用代码。The application code module 602 is configured to acquire the application code corresponding to the system interface application when the system interface application of the terminal is started.
标识获取模块604,用于从应用代码中获取圆角图像标识。The identification obtaining module 604 is configured to obtain the rounded image identification from the application code.
圆角图像获取模块606,用于从预设资源集中获取圆角图像标识对应的圆角图像,该圆角图像与终端的屏幕类型相匹配。A rounded image obtaining module 606 is configured to obtain a rounded image corresponding to a rounded image identifier from a preset resource set, where the rounded image matches the screen type of the terminal.
显示模块608,用于在终端的屏幕上的边缘区域显示圆角图像。The display module 608 is configured to display a rounded image in the edge area on the screen of the terminal.
本实施例中,在终端中预先存储与终端的屏幕类型相匹配的圆角图像。当终端的系统界面应用启动时,获取系统界面应用对应的应用代码,从预设资源集中获取圆角图像标识对应的圆角图像,从而降低了圆角图像和系统界面应用的耦合度,提升系统的性能和稳定性。通过本实施例的圆角图像显示 装置,不同屏幕类型的终端可以使用相同的应用代码,降低维护成本。通过应用代码中的圆角图像标识就可以调用终端中预先存储的与图像圆角,则无需判断终端的屏幕类型,提高系统界面的启动效率。在终端的屏幕上的边缘区域显示圆角图像,能够将屏幕的边缘直角区域以及存在毛刺的边缘区域设置为圆角效果,使得系统界面更美观。In this embodiment, a rounded image matching the screen type of the terminal is pre-stored in the terminal. When the system interface application of the terminal is started, the application code corresponding to the system interface application is obtained, and the rounded image corresponding to the rounded image identifier is obtained from the preset resource set, thereby reducing the coupling between the rounded image and the system interface application and improving the system. performance and stability. With the image display device with rounded corners in this embodiment, terminals of different screen types can use the same application code, thereby reducing maintenance costs. Through the rounded image identification in the application code, the pre-stored and image rounded corners in the terminal can be called, so there is no need to judge the screen type of the terminal, and the startup efficiency of the system interface is improved. A rounded image is displayed on the edge area of the screen of the terminal, and the right-angle area on the edge of the screen and the edge area with burr can be set as the rounded corner effect, which makes the system interface more beautiful.
在一个实施例中,该圆角图像获取模块606还用于:从预设路径的预设资源集中获取圆角图像标识对应的圆角图像;该预设路径与系统界面应用的存储路径不同。In one embodiment, the rounded image obtaining module 606 is further configured to: obtain a rounded image corresponding to a rounded 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.
本实施例中,将圆角图像存储在与系统界面应用的存储路径不相同的终端系统的预设路径中,从而能够将圆角图像和系统界面应用实现解耦,降低圆角图像和系统界面应用的耦合度,使得不同屏幕类型的终端都可以使用同一套系统界面应用的应用代码。In this embodiment, the rounded image is stored in a preset path of the terminal system that is different from the storage path of the system interface application, so that the rounded image and the system interface application can be decoupled, and the reduction of the rounded image and the system interface can be achieved. The coupling degree of the application enables terminals of different screen types to use the application code of the same set of system interface applications.
在一个实施例中,该显示模块608还用于:确定所获取的各圆角图像与终端的屏幕上的各边缘区域之间的映射关系;在屏幕的各边缘区域显示具有映射关系的圆角图像。In one embodiment, the display module 608 is further configured to: determine the mapping relationship between the acquired rounded corner images and each edge region on the screen of the terminal; display the rounded corners with the mapping relationship on each edge region of the screen image.
本实施例中,通过各圆角图像和终端的屏幕上的各边缘区域之间的映射关系,以快速准确确定各圆角图像在哪个边缘区域进行显示,从而快速准确地将终端的屏幕的各边缘区域设置圆角效果。In this embodiment, the mapping relationship between each rounded image and each edge region on the screen of the terminal is used to quickly and accurately determine in which edge region each rounded image is displayed, so as to quickly and accurately map each edge region of the screen of the terminal. Sets the rounded corner effect for the edge area.
在一个实施例中,该圆角图像标识为圆角图像的方位名称;该显示模块608还用于:确定终端的屏幕上的各边缘区域在屏幕上的方位;根据所获取的各圆角图像的方位名称和各边缘区域的方位,确定各圆角图像和各边缘区域之间的映射关系。In one embodiment, the rounded image is identified as an orientation name of the rounded image; the display module 608 is further configured to: determine the orientation on the screen of each edge region on the screen of the terminal; according to the acquired rounded images and the orientation of each edge area to determine the mapping relationship between each rounded image and each edge area.
本实施例中,将圆角图像的名称用方位命名,通过方位名称即可直接确定对应的圆角图像应该显示在屏幕的哪个边缘区域,从而快速准确地将终端的屏幕的各边缘区域设置圆角效果。In this embodiment, the name of the rounded image is named with the orientation, and the orientation name can directly determine which edge area of the screen the corresponding rounded image should be displayed on, so as to quickly and accurately set each edge area of the screen of the terminal as a circle corner effect.
在一个实施例中,该显示模块608还用于:当终端的屏幕发生旋转时,确定旋转角度和旋转方向;将显示在终端的各边缘区域的圆角图像,按照旋 转角度和旋转方向进行旋转,并在旋转后的屏幕的各边缘区域显示对应的旋转后的圆角图像。In one embodiment, the display module 608 is further configured to: determine the rotation angle and the rotation direction when the screen of the terminal is rotated; and rotate the rounded images displayed on each edge area of the terminal according to the rotation angle and the rotation direction , and display the corresponding rotated image with rounded corners on each edge area of the rotated screen.
本实施例中,当终端的屏幕发生旋转时,确定旋转角度和旋转方向。将显示在终端的各边缘区域的圆角图像,按照旋转角度和旋转方向进行旋转,使得圆角图像能够随着屏幕的旋转,并且使得旋转后的圆角图像能够和各边缘区域相互契合。In this embodiment, when the screen of the terminal is rotated, the rotation angle and the rotation direction are determined. Rotate the rounded image displayed in each edge area of the terminal according to the rotation angle and rotation direction, so that the rounded image can be rotated with the screen, and the rotated rounded image can fit each edge area.
在一个实施例中,该装置还包括:添加模块。该添加模块用于:确定终端的屏幕类型,获取与屏幕类型相匹配的圆角图像;在终端中添加预设资源集,并将圆角图像存储至预设资源集。In one embodiment, the apparatus further includes: an addition module. The adding module is used to: determine the screen type of the terminal, and obtain a rounded image matching the screen type; add a preset resource set in the terminal, and store the rounded image into the preset resource set.
本实施例中,通过确定终端的屏幕类型,获取与屏幕类型相匹配的圆角图像,从而能够预先获取跟屏幕类型匹配的圆角图像。在终端中添加预设资源集,并将圆角图像存储至预设资源集,从而能够将获取的圆角图像存放在终端系统的特定位置,以供系统界面应用调用。并且,存放在系统的特定位置能够避免圆角图像被其它应用移除。该预设资源集的存放路径与终端的系统界面应用的应用代码的存储路径不同,则实现圆角图像和系统界面应用的资源解耦,使得一套系统界面应用的应用代码在不同的终端中不用判断屏幕类型,就可以直接调用该终端中的圆角图像。In this embodiment, by determining the screen type of the terminal and obtaining a rounded image matching the screen type, the rounded image matching the screen type can be obtained in advance. A preset resource set is added to the terminal, and the rounded corner image is stored in the preset resource set, so that the obtained rounded corner image can be stored in a specific location of the terminal system for the system interface application to call. Also, storing it in a specific location on the system prevents rounded images from being removed by other applications. 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, so that the resource decoupling of the rounded image and the system interface application is realized, so that the application code of a set of system interface applications can be stored in different terminals. You can directly call the rounded image in the terminal without judging the screen type.
在一个实施例中,该圆角图像获取模块606还用于:当终端中不存在预设资源集时,获取默认资源集;从默认资源集中获取圆角图像标识对应的默认圆角图像;In one embodiment, the rounded image obtaining module 606 is further configured to: when the preset resource set does not exist in the terminal, obtain a default resource set; obtain a default rounded image corresponding to the rounded image identifier from the default resource set;
该显示模块608还用于:在终端的屏幕上的边缘区域显示默认圆角图像。The display module 608 is further configured to: display a default rounded image in the edge area of the screen of the terminal.
在本实施例中,当终端中不存在预设资源集时,从默认资源集中获取圆角图像标识对应的默认圆角图像,避免系统界面应用对圆角图像的调用出错的情况。在终端的屏幕上的边缘区域显示默认圆角图像,能够将屏幕的边缘直角区域以及存在毛刺的边缘区域设置为圆角效果,使得系统界面更美观。In this embodiment, when the preset resource set does not exist in the terminal, the default rounded image corresponding to the rounded image identifier is obtained from the default resource set, so as to avoid an error in calling the rounded image by the system interface application. The default rounded image is displayed on the edge area of the screen of the terminal, and the right-angle area on the edge of the screen and the edge area with burrs can be set as the rounded corner effect, which makes the system interface more beautiful.
上述圆角图像显示装置中各个模块的划分仅用于举例说明,在其他实施 例中,可将圆角图像显示装置按照需要划分为不同的模块,以完成上述圆角图像显示装置的全部或部分功能。The division of each module in the above-mentioned round-corner image display device is only used for illustration. In other embodiments, the round-corner image display device can be divided into different modules as required, so as to complete all or part of the above-mentioned round-corner image display device Features.
关于圆角图像显示装置的具体限定可以参见上文中对于圆角图像显示方法的限定,在此不再赘述。上述圆角图像显示装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific limitation of the round-corner image display device, reference may be made to the above-mentioned limitations on the round-corner image display method, which will not be repeated here. Each module in the above-mentioned round-corner image display device may be implemented in whole or in part by software, hardware and combinations thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
图7为一个实施例中终端的内部结构示意图。如图7所示,该终端包括通过系统总线连接的处理器和存储器。其中,该处理器用于提供计算和控制能力,支撑整个电子设备的运行。当终端的系统界面应用启动时,终端可通过处理器获取系统界面应用对应的应用代码,并从应用代码中获取圆角图像标识。该处理器从预设资源集中获取圆角图像标识对应的圆角图像,圆角图像与终端的屏幕类型相匹配;该处理器将该圆角图像显示在终端的屏幕上的边缘区域。存储器可包括非易失性存储介质及内存储器。非易失性存储介质存储有操作系统和计算机程序。该存储器中存储系统界面应用对应的应用代码,以及圆角图像。该计算机程序可被处理器所执行,以用于实现以下各个实施例所提供的一种圆角图像显示方法。内存储器为非易失性存储介质中的操作系统计算机程序提供高速缓存的运行环境。该电子设备可以是手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑、穿戴式设备等任意终端设备。FIG. 7 is a schematic diagram of an internal structure of a terminal in an embodiment. As shown in Figure 7, the terminal includes a processor and a memory connected through a system bus. Among them, the processor is used to provide computing and control capabilities to support the operation of the entire electronic device. When the system interface application of the terminal is started, the terminal can obtain the application code corresponding to the system interface application through the processor, and obtain the rounded image identifier from the application code. The processor obtains the rounded image corresponding to the rounded image identifier from the preset resource set, and the rounded image matches the screen type of the terminal; the processor displays the rounded image in the edge area of the screen of the terminal. The memory may include non-volatile storage media and internal memory. The nonvolatile storage medium stores an operating system and a computer program. The memory stores the application code corresponding to the system interface application and the image with rounded corners. The computer program can be executed by the processor to implement a method for displaying images with rounded corners provided by the following embodiments. Internal memory provides a cached execution environment for operating system computer programs in non-volatile storage media. The electronic device may be any terminal device such as a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales, a sales terminal), a vehicle-mounted computer, a wearable device, and the like.
本申请实施例中提供的圆角图像显示装置中的各个模块的实现可为计算机程序的形式。该计算机程序可在终端或服务器上运行。该计算机程序构成的程序模块可存储在电子设备的存储器上。该计算机程序被处理器执行时,实现本申请实施例中所描述方法的操作。The implementation of each module in the round-corner image display device provided in the embodiments of the present application may be in the form of a computer program. The computer program can be run on a terminal or server. The program modules constituted by the computer program can be stored on the memory of the electronic device. When the computer program is executed by the processor, the operations of the methods described in the embodiments of the present application are implemented.
本申请实施例还提供了一种计算机可读存储介质。一个或多个包含计算 机可执行指令的非易失性计算机可读存储介质,当所述计算机可执行指令被一个或多个处理器执行时,使得所述处理器执行圆角图像显示方法的操作。Embodiments of the present application also provide a computer-readable storage medium. One or more non-volatile computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the operations of the method for displaying rounded corners images .
一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行圆角图像显示方法。A computer program product containing instructions, when run on a computer, causes the computer to perform a method for displaying rounded corner images.
本申请所使用的对存储器、存储、数据库或其它介质的任何引用可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM),它用作外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDR SDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)。Any reference to a memory, storage, database, or other medium as used herein may include non-volatile and/or volatile memory. Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in various 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), Memory Bus (Rambus) Direct RAM (RDRAM), Direct Memory Bus Dynamic RAM (DRDRAM), and Memory Bus Dynamic RAM (RDRAM).
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above-described embodiments can be combined arbitrarily. For the sake of brevity, all possible combinations of the technical features in the above-described embodiments are not described. However, as long as there is no contradiction between the combinations of these technical features, All should be regarded as the scope described in this specification.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only represent several embodiments of the present application, and the descriptions thereof are specific and detailed, but should not be construed as a limitation on the scope of the invention patent. It should be pointed out that for those skilled in the art, without departing from the concept of the present application, several modifications and improvements can be made, which all belong to the protection scope of the present application. Therefore, the scope of protection of the patent of the present application shall be subject to the appended claims.

Claims (16)

  1. 一种圆角图像显示方法,其特征在于,包括:A method for displaying images with rounded corners, comprising:
    当终端的系统界面应用启动时,获取所述系统界面应用对应的应用代码;When the system interface application of the terminal is started, obtain the application code corresponding to the system interface application;
    从所述应用代码中获取圆角图像标识;Obtain the rounded image identifier from the application code;
    从预设资源集中获取所述圆角图像标识对应的圆角图像,所述圆角图像与所述终端的屏幕类型相匹配;及Acquiring a rounded image corresponding to the rounded image identifier from a preset resource set, where the rounded image matches the screen type of the terminal; and
    在所述终端的屏幕上的边缘区域显示所述圆角图像。The rounded image is displayed in an edge area on the screen of the terminal.
  2. 根据权利要求1所述的方法,其特征在于,所述从预设资源集中获取所述圆角图像标识对应的圆角图像,包括:The method according to claim 1, wherein the obtaining the rounded image corresponding to the rounded image identifier from a preset resource set comprises:
    从预设路径的预设资源集中获取所述圆角图像标识对应的圆角图像;所述预设路径与所述系统界面应用的存储路径不同。The rounded image corresponding to the rounded image identifier is obtained from a preset resource set of a preset path; the preset path is different from the storage path of the system interface application.
  3. 根据权利要求1所述的方法,其特征在于,所述在所述终端的屏幕上的边缘区域显示所述圆角图像,包括:The method according to claim 1, wherein the displaying the rounded image in an edge area on the screen of the terminal comprises:
    确定所获取的各圆角图像与所述终端的屏幕上的各边缘区域之间的映射关系;及determining the mapping relationship between the acquired rounded corner images and the edge regions on the screen of the terminal; and
    在所述屏幕的各边缘区域显示具有映射关系的圆角图像。A rounded image with a mapping relationship is displayed on each edge area of the screen.
  4. 根据权利要求3所述的方法,其特征在于,所述圆角图像标识为圆角图像的方位名称;所述确定所获取的各圆角图像与所述终端的屏幕上的各边缘区域之间的映射关系,包括:The method according to claim 3, wherein the rounded image is identified as an orientation name of the rounded image; the determining of the distance between each of the obtained rounded images and each edge area on the screen of the terminal The mapping relationship, including:
    确定所述终端的屏幕上的各边缘区域在所述屏幕上的方位;及determining the orientation on the screen of each edge region on the screen of the terminal; and
    根据所获取的各圆角图像的方位名称和所述各边缘区域的方位,确定所述各圆角图像和所述各边缘区域之间的映射关系。The mapping relationship between each rounded image and each edge region is determined according to the acquired orientation name of each rounded image and the orientation of each edge region.
  5. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    当所述终端的屏幕发生旋转时,确定旋转角度和旋转方向;及When the screen of the terminal is rotated, determine the rotation angle and the rotation direction; and
    将显示在所述终端的各边缘区域的圆角图像,按照所述旋转角度和所述旋转方向进行旋转,并在旋转后的屏幕的各边缘区域显示对应的旋转后的圆角图像。The rounded image displayed on each edge area of the terminal is rotated according to the rotation angle and the rotation direction, and the corresponding rotated rounded image is displayed on each edge area of the rotated screen.
  6. 根据权利要求1至5中任一项所述的方法,其特征在于,在所述当终端的系统界面应用启动时,获取所述系统界面应用对应的应用代码之前,还包括:The method according to any one of claims 1 to 5, wherein, when the system interface application of the terminal is started, before acquiring the application code corresponding to the system interface application, the method further comprises:
    确定终端的屏幕类型,获取与所述屏幕类型相匹配的圆角图像;及Determine the screen type of the terminal, and obtain a rounded image matching the screen type; and
    在所述终端中添加预设资源集,并将所述圆角图像存储至所述预设资源集。A preset resource set is added in the terminal, and the rounded image is stored in the preset resource set.
  7. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    当所述终端中不存在所述预设资源集时,获取默认资源集;When the preset resource set does not exist in the terminal, acquiring a default resource set;
    从所述默认资源集中获取所述圆角图像标识对应的默认圆角图像;及Obtaining a default rounded image corresponding to the rounded image identifier from the default resource set; and
    所述在所述终端的屏幕上的边缘区域显示所述圆角图像,包括:The displaying of the rounded image in the edge area on the screen of the terminal includes:
    在所述终端的屏幕上的边缘区域显示所述默认圆角图像。The default rounded corner image is displayed in an edge area on the screen of the terminal.
  8. 一种圆角图像显示装置,其特征在于,包括:A rounded image display device, characterized in that it includes:
    应用代码模块,用于当终端的系统界面应用启动时,获取所述系统界面应用对应的应用代码;an application code module, configured to acquire an application code corresponding to the system interface application when the system interface application of the terminal is started;
    标识获取模块,用于从所述应用代码中获取圆角图像标识;an identification acquisition module, used for acquiring a rounded image identification from the application code;
    圆角图像获取模块,用于从预设资源集中获取所述圆角图像标识对应的圆角图像,所述圆角图像与所述终端的屏幕类型相匹配;及a rounded image obtaining module, configured to obtain a rounded image corresponding to the rounded image identifier from a preset resource set, where the rounded image matches the screen type of the terminal; and
    显示模块,用于在所述终端的屏幕上的边缘区域显示所述圆角图像。A display module, configured to display the rounded image in the edge area on the screen of the terminal.
  9. 根据权利要求8所述的装置,其特征在于,所述圆角图像获取模块,还用于从预设路径的预设资源集中获取所述圆角图像标识对应的圆角图像;所述预设路径与所述系统界面应用的存储路径不同。The device according to claim 8, wherein the rounded image obtaining module is further configured to obtain the rounded image corresponding to the rounded image identifier from a preset resource set of a preset path; the preset The path is different from the storage path of the system interface application.
  10. 根据权利要求8所述的装置,其特征在于,所述显示模块,还用于确定所获取的各圆角图像与所述终端的屏幕上的各边缘区域之间的映射关系;及在所述屏幕的各边缘区域显示具有映射关系的圆角图像。The device according to claim 8, wherein the display module is further configured to determine a mapping relationship between each of the acquired rounded corner images and each edge region on the screen of the terminal; Each edge area of the screen displays a rounded image with a mapping relationship.
  11. 根据权利要求10所述的装置,其特征在于,所述圆角图像标识为圆角图像的方位名称;所述显示模块,还用于确定所述终端的屏幕上的各边缘区域在所述屏幕上的方位;及根据所获取的各圆角图像的方位名称和所述各 边缘区域的方位,确定所述各圆角图像和所述各边缘区域之间的映射关系。The device according to claim 10, wherein the rounded image is identified as an orientation name of the rounded image; the display module is further configured to determine that each edge area on the screen of the terminal is on the screen and determining the mapping relationship between each rounded image and each edge region according to the acquired orientation name of each rounded image and the orientation of each edge region.
  12. 根据权利要求8所述的装置,其特征在于,所述显示模块,还用于当所述终端的屏幕发生旋转时,确定旋转角度和旋转方向;及将显示在所述终端的各边缘区域的圆角图像,按照所述旋转角度和所述旋转方向进行旋转,并在旋转后的屏幕的各边缘区域显示对应的旋转后的圆角图像。The device according to claim 8, wherein the display module is further configured to determine the rotation angle and the rotation direction when the screen of the terminal is rotated; The rounded image is rotated according to the rotation angle and the rotation direction, and a corresponding rotated rounded image is displayed in each edge area of the rotated screen.
  13. 根据权利要求8至12中任一项所述的装置,其特征在于,所述装置还包括添加模块;所述添加模块,用于在所述当终端的系统界面应用启动时,获取所述系统界面应用对应的应用代码之前,确定终端的屏幕类型,获取与所述屏幕类型相匹配的圆角图像;及在所述终端中添加预设资源集,并将所述圆角图像存储至所述预设资源集。The device according to any one of claims 8 to 12, wherein the device further comprises an adding module; the adding module is configured to acquire the system when the system interface application of the terminal is started Before applying the corresponding application code to the interface, determine the screen type of the terminal, and obtain a rounded image matching the screen type; and add a preset resource set in the terminal, and store the rounded image in the Preset asset set.
  14. 根据权利要求8所述的装置,其特征在于,所述圆角图像获取模块,还用于当所述终端中不存在所述预设资源集时,获取默认资源集;从所述默认资源集中获取所述圆角图像标识对应的默认圆角图像;及The apparatus according to claim 8, wherein the rounded image acquisition module is further configured to acquire a default resource set when the preset resource set does not exist in the terminal; from the default resource set obtaining a default rounded image corresponding to the rounded image identifier; and
    所述显示模块,还用于在所述终端的屏幕上的边缘区域显示所述默认圆角图像。The display module is further configured to display the default rounded corner image in an edge area on the screen of the terminal.
  15. 一种电子设备,包括存储器及处理器,所述存储器中储存有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如权利要求1至7中任一项所述的方法的操作。An electronic device, comprising a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the process according to any one of claims 1 to 7 method of operation.
  16. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至7中任一项所述的方法的操作。A computer-readable storage medium on which a computer program is stored, characterized in that, when the computer program is executed by a processor, the operation of the method according to any one of claims 1 to 7 is implemented.
PCT/CN2021/092118 2020-07-20 2021-05-07 Fillet image display method and apparatus, electronic device and readable storage medium WO2022016956A1 (en)

Applications Claiming Priority (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
CN202010697273.1 2020-07-20

Publications (1)

Publication Number Publication Date
WO2022016956A1 true WO2022016956A1 (en) 2022-01-27

Family

ID=73001010

Family Applications (1)

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

Country Status (2)

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

Cited By (1)

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

Families Citing this family (2)

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

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107391073A (en) * 2017-07-26 2017-11-24 北京小米移动软件有限公司 Display module and electronic equipment
WO2018120719A1 (en) * 2016-12-30 2018-07-05 上海壹账通金融科技有限公司 Method, apparatus, and device for updating interface of mobile terminal application, and computer readable storage medium
CN108335259A (en) * 2018-01-17 2018-07-27 维沃移动通信有限公司 A kind of 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
CN110262859A (en) * 2018-03-12 2019-09-20 上海擎感智能科技有限公司 The adaptive screen method of UI control layout, system, storage medium and electric terminal
CN111857699A (en) * 2020-07-20 2020-10-30 Oppo广东移动通信有限公司 Fillet image display method and device, electronic equipment and readable storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106875328B (en) * 2015-12-11 2020-05-12 北京新媒传信科技有限公司 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

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018120719A1 (en) * 2016-12-30 2018-07-05 上海壹账通金融科技有限公司 Method, apparatus, and device for updating interface of mobile terminal application, and computer readable storage medium
CN107391073A (en) * 2017-07-26 2017-11-24 北京小米移动软件有限公司 Display module and electronic equipment
CN108335259A (en) * 2018-01-17 2018-07-27 维沃移动通信有限公司 A kind of image processing method, image processing equipment and mobile terminal
CN110262859A (en) * 2018-03-12 2019-09-20 上海擎感智能科技有限公司 The adaptive screen method of UI control layout, system, storage medium and electric 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

Cited By (1)

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

Also Published As

Publication number Publication date
CN111857699A (en) 2020-10-30

Similar Documents

Publication Publication Date Title
WO2022016956A1 (en) Fillet image display method and apparatus, electronic device and readable storage medium
US9697353B2 (en) Method and device for intercepting call for service by application
WO2019140828A1 (en) Electronic apparatus, method for querying logs in distributed system, and storage medium
US20210097112A1 (en) Webpage data processing method and device, computer device and computer storage medium
WO2019148722A1 (en) Electronic device, data migrating and calling method and storage medium
CN111506386A (en) Virtual machine online migration method, device, equipment and computer readable storage medium
WO2019100613A1 (en) Electronic insurance policy signing method and apparatus, computer device and storage medium
WO2022237123A1 (en) Method and apparatus for acquiring blockchain data, electronic device, and storage medium
WO2019134340A1 (en) Salary calculation method, application server, and computer readable storage medium
WO2019127864A1 (en) Electronic device, springmvc-based data interface and automatic description generation method therefor, and storage medium
WO2020125364A1 (en) Information verification input method and apparatus, computer device, and storage medium
US20120158794A1 (en) Techniques to discover object interfaces
CN110908778B (en) Task deployment method, system and storage medium
US11080322B2 (en) Search methods, servers, and systems
CN110826978A (en) Unified backlog processing method and device based on enterprise browser
WO2020199594A1 (en) Service component loading method and apparatus, and computer device and storage medium
CN109828774B (en) Server system and starting method thereof
US20130055285A1 (en) Discovery and activation of application extensions
CN111382425B (en) Application installation management method under multi-signature mechanism, intelligent terminal and storage medium
WO2021169469A1 (en) Voiceprint data processing method and apparatus, computer device, and storage medium
CN112287010B (en) Map service providing method, device, terminal and storage medium based on android system
US20210334114A1 (en) Method And Storage Medium For Realizing Interaction Between Business Systems And At Least One Component
CN116450184B (en) System upgrading method and device, electronic equipment and storage medium
CN114816772B (en) Debugging method, debugging system and computing device for application running based on compatible layer
CN111158777A (en) Component calling method and device and computer readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21847316

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21847316

Country of ref document: EP

Kind code of ref document: A1