CN107835450B - Focus display method, display device, and computer-readable storage medium - Google Patents

Focus display method, display device, and computer-readable storage medium Download PDF

Info

Publication number
CN107835450B
CN107835450B CN201711029421.7A CN201711029421A CN107835450B CN 107835450 B CN107835450 B CN 107835450B CN 201711029421 A CN201711029421 A CN 201711029421A CN 107835450 B CN107835450 B CN 107835450B
Authority
CN
China
Prior art keywords
focus
picture
canvas
displayed
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711029421.7A
Other languages
Chinese (zh)
Other versions
CN107835450A (en
Inventor
曹晗
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen leynew Network Media Co Ltd
Original Assignee
Shenzhen Leiniao Network Media Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Leiniao Network Media Co ltd filed Critical Shenzhen Leiniao Network Media Co ltd
Priority to CN201711029421.7A priority Critical patent/CN107835450B/en
Publication of CN107835450A publication Critical patent/CN107835450A/en
Application granted granted Critical
Publication of CN107835450B publication Critical patent/CN107835450B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/482End-user interface for program selection

Abstract

The invention discloses a focus display method, which comprises the following steps: acquiring attribute information of a picture corresponding to the position of a focus to be displayed, wherein the attribute information comprises the size and the inclination angle of the picture corresponding to the position of the focus to be displayed; adjusting a preset focus picture according to the size of the picture corresponding to the position of the focus to be displayed, and adjusting the canvas of the current interface according to the inclination angle of the picture corresponding to the position of the focus to be displayed; and drawing the preset focus picture at the position of the focus to be displayed in the canvas, wherein the preset focus picture is a transparent picture. The invention also discloses a focus display device and a computer readable storage medium. The invention realizes that the point nine picture is adapted to the parallelogram pictures with different sizes on the premise of no distortion.

Description

Focus display method, display device, and computer-readable storage medium
Technical Field
The present invention relates to the field of television technologies, and in particular, to a focus display method, a display device, and a computer-readable storage medium.
Background
At present, television manufacturers invest a lot of efforts to optimize the desktop UI (User Interface) of a television, and posters on the main page of the television do not use the traditional rectangular shape but use an irregular shape such as a parallelogram to improve the recognition degree. However, when the user switches the focus, a parallelogram focus frame is required as the indication information, and the focus frame is adapted to different sizes of posters.
In the prior art, a parallelogram focus frame can be realized by drawing a focus picture of the parallelogram frame by a UI designer, and if poster sizes on a television homepage are various, the drawing of focus pictures with various sizes is unrealistic. If a focus picture of one size of parallelogram wire frame is used to fit posters of different sizes, distortion of the focus picture will be caused. Although the android system provides the point nine picture to solve the problem of different resolutions, the point nine picture can only support stretching in the horizontal or vertical direction without distortion, and stretching in the vertical direction of the parallelogram needs to be repeated and filled obliquely, which cannot be supported by the function point nine picture.
Disclosure of Invention
The invention mainly aims to provide a focus display method, a display device and a computer readable storage medium, aiming at adapting to parallelogram pictures with different sizes on the premise of no distortion of a point nine picture.
In order to achieve the above object, the present invention provides a focus display method, including the steps of:
acquiring attribute information of a picture corresponding to the position of a focus to be displayed, wherein the attribute information comprises the size and the inclination angle of the picture corresponding to the position of the focus to be displayed;
adjusting a preset focus picture according to the size of the picture corresponding to the position of the focus to be displayed, so that the size of the preset focus picture is consistent with the size of the picture corresponding to the position of the focus to be displayed, and adjusting the canvas of the current interface according to the inclination angle of the picture corresponding to the position of the focus to be displayed, so that the inclination angle of the canvas is consistent with the inclination angle of the picture corresponding to the position of the focus to be displayed;
and drawing the preset focus picture at the position of the focus to be displayed in the canvas, wherein the preset focus picture is a transparent picture.
Preferably, the step of adjusting the preset focal point picture according to the size of the picture corresponding to the position of the focal point to be displayed includes:
stretching the stretchable area of the preset focal point picture to enable the size of the preset focal point picture to be consistent with the size of the picture corresponding to the position of the to-be-displayed focal point.
Preferably, the step of adjusting the canvas of the current interface according to the inclination angle of the picture corresponding to the position of the focus to be displayed includes:
and carrying out cross cutting on the canvas so as to enable the inclination angle of the canvas to be consistent with the inclination angle of the picture corresponding to the position of the focus to be displayed.
Preferably, the step of drawing the preset focal point picture at the position of the focal point to be displayed in the canvas comprises:
switching the attribute of the canvas from invalid conversion to valid conversion, wherein when the attribute of the canvas is valid conversion, the picture corresponding to the position of the focal point to be displayed in the canvas and the preset focal point picture are inclined according to the inclination angle of the canvas, and when the attribute of the canvas is invalid conversion, the picture corresponding to the position of the focal point to be displayed in the canvas and the preset focal point picture are not inclined according to the inclination angle of the canvas;
and drawing the preset focal point picture at the position of the focal point to be displayed in the canvas.
Preferably, after the drawing the preset focal point picture at the position of the focal point to be displayed in the canvas, the method further includes:
switching the attribute of the canvas from transformation effective to transformation ineffective;
restoring the original state of the canvas;
before the canvas is cut by mistake, the method further comprises the following steps:
and memorizing the original state of the canvas.
Preferably, before the obtaining of the attribute information of the picture corresponding to the position where the focus to be displayed is located, the method further includes:
acquiring the sizes of all pictures in the current interface;
and generating the preset focal point image according to the size, wherein the size of the preset focal point image is smaller than the sizes of all images in the interface.
In order to achieve the above object, the present invention further provides a focus display apparatus, which includes a memory, a processor, and a focus display program stored in the memory and executable on the processor, wherein the focus display program implements the steps of the focus display method when executed by the processor.
To achieve the above object, the present invention also provides a computer-readable storage medium having a focus display program stored thereon, the focus display program implementing the steps of the above focus display method when executed by a processor.
The invention provides a focus display method, a display device and a computer readable storage medium, which are characterized in that firstly, attribute information of a picture corresponding to a position where a focus to be displayed is located is obtained, wherein the attribute information comprises the size and the inclination angle of the picture, then, a preset focus picture is adjusted according to the size of the picture so that the size of the preset focus picture is consistent with the size of the picture, a canvas of a current interface is adjusted according to the inclination angle of the picture so that the inclination angle of the canvas is consistent with the inclination angle of the picture, and finally, the preset focus picture is drawn at the position where the focus to be displayed is located in the canvas, wherein the preset focus picture is a transparent picture. The invention realizes that the point nine picture is adapted to the parallelogram pictures with different sizes on the premise of no distortion.
Drawings
FIG. 1 is a schematic diagram of an apparatus in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of a focus display method according to the present invention;
FIG. 3 is a schematic view of a detailed flowchart of the step of adjusting the preset focal point map according to the present invention;
FIG. 4 is a schematic diagram illustrating a detailed flowchart of the step of adjusting the canvas of the current interface according to the present invention;
FIG. 5 is a schematic view of a detailed flowchart of the step of drawing the pre-focus picture according to the present invention;
FIG. 6 is a flowchart illustrating a fifth embodiment of a focus displaying method according to the present invention;
FIG. 7 is a flowchart illustrating a focus display method according to a sixth embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The invention provides a focus display method, which is used for adapting parallelogram pictures with different sizes on the premise of no distortion of a point nine picture.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
The terminal of the embodiment of the invention can be a television, and can also be a mobile terminal device with a display function, such as a PC, a tablet computer, a portable computer and the like.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (such as a non-volatile memory, e.g., disk storage) and the memory 1005 may optionally also be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration of the terminal shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a focus display program.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call the focus display program stored in the memory 1005, and perform the following operations:
acquiring attribute information of a picture corresponding to the position of a focus to be displayed, wherein the attribute information comprises the size and the inclination angle of the picture;
adjusting a preset focal point picture according to the size of the picture so that the size of the preset focal point picture is consistent with that of the picture, and adjusting the canvas of the current interface according to the inclination angle of the picture so that the inclination angle of the canvas is consistent with that of the picture;
and drawing the preset focus picture at the position of the focus to be displayed in the canvas, wherein the preset focus picture is a transparent picture.
Further, the processor 1001 may call the focus display program stored in the memory 1005, and also perform the following operations:
stretching the stretchable region of the preset focal point picture to make the size of the preset focal point picture consistent with the size of the picture.
Further, the processor 1001 may call the focus display program stored in the memory 1005, and also perform the following operations:
and carrying out staggered cutting on the canvas so as to enable the inclination angle of the canvas to be consistent with that of the picture.
Further, the processor 1001 may call the focus display program stored in the memory 1005, and also perform the following operations:
switching the attribute of the canvas from invalid conversion to valid conversion, wherein when the attribute of the canvas is valid conversion, the picture and the preset focal point picture in the canvas are inclined according to the inclination angle of the canvas, and when the attribute of the canvas is invalid conversion, the picture and the preset focal point picture in the canvas are not inclined according to the inclination angle of the canvas;
and drawing the preset focal point picture at the position of the focal point to be displayed in the canvas.
Further, the processor 1001 may call the focus display program stored in the memory 1005, and also perform the following operations:
switching the attribute of the canvas from transformation effective to transformation ineffective;
restoring the original state of the canvas;
before the canvas is cut by mistake, the method further comprises the following steps:
and memorizing the original state of the canvas.
Further, the processor 1001 may call the focus display program stored in the memory 1005, and also perform the following operations:
acquiring the sizes of all pictures in the current interface;
and generating the preset focal point image according to the size, wherein the size of the preset focal point image is smaller than the sizes of all images in the interface.
Referring to fig. 2, in a first embodiment, the focus display method includes:
step S10, acquiring attribute information of a picture corresponding to the position of the focus to be displayed, wherein the attribute information comprises the size and the inclination angle of the picture corresponding to the position of the focus to be displayed;
in the first embodiment, in the display interface of the television, in order to improve the UI experience of the user, the poster is often displayed in an irregular shape, such as a parallelogram. The poster display method comprises the following steps: and drawing the poster on the canvas of the current interface, and displaying the poster. Therefore, when the focus is displayed on the poster, a preset focus picture is drawn at the position of the poster in the canvas, and the poster displays the focus.
The size of the picture refers to the length and width of the picture, and the inclination of the picture may be an inclination in the X direction or an inclination in the Y direction.
Step S20, adjusting a preset focus picture according to the size of the picture corresponding to the position of the focus to be displayed, so that the size of the preset focus picture is consistent with the size of the picture corresponding to the position of the focus to be displayed, and adjusting the canvas of the current interface according to the inclination angle of the picture corresponding to the position of the focus to be displayed, so that the inclination angle of the canvas is consistent with the inclination angle of the picture corresponding to the position of the focus to be displayed;
in the first embodiment, the preset focus picture is generated by a point nine manufacturing tool of the android standard, which is a point nine picture. The preset focal point picture is a rectangle, and a certain area of the rectangle is set as a stretchable area, such as the right and the lower sides of the rectangle. And the length and the width of the preset focus picture are consistent with those of the picture corresponding to the position of the focus to be displayed through stretching. The method comprises the following specific steps: firstly, the length and the width of a picture corresponding to the position of a focus to be displayed are obtained, and then the stretchable area of the preset focus picture is stretched, so that the length and the width of the preset focus picture are respectively consistent with the length and the width of the picture. For example, the length and width of the picture are 20cm and 10cm, respectively, and then the length and width of the preset focal point picture are also extended to 20cm and 10cm, respectively.
In the first embodiment, the picture of the android system and the preset focus picture are drawn on the canvas of the interface first and then displayed on the interface. The canvas has two attributes of conversion invalidity and conversion validity, wherein when the attribute of the canvas is conversion validity, the picture in the canvas and the preset focus picture are inclined according to the inclination angle of the canvas, and when the attribute of the canvas is conversion invalidity, the picture in the canvas and the preset focus picture are not inclined along with the inclination of the canvas. The attribute of the canvas can be switched, for example, when the inclination angle of the canvas is adjusted, the attribute of the canvas is invalid for conversion, and pictures on the canvas do not incline along with the inclination of the canvas; the adjustment of the inclination angle of the canvas is completed, and before the preset focus picture is drawn, the attribute of the canvas is switched to be effective, so that the inclination angle of the preset focus picture drawn on the canvas is consistent with the inclination angle of the canvas. It should be noted that the condition for triggering attribute switching is preset, and when the preset condition is met, the attribute switching is performed, where the preset condition may be that the adjustment of the inclination angle of the canvas is completed and the preset focus picture is not yet drawn, or that the drawing of the preset focus picture is completed and the attribute information of the picture corresponding to the position of the focus to be displayed is not yet acquired, and the present invention is not particularly limited.
And step S30, drawing the preset focus picture at the position of the focus to be displayed in the canvas, wherein the preset focus picture is a transparent picture.
In the first embodiment, the preset focal point image is a transparent image, and is drawn on the image of the interface to highlight the image.
In the first embodiment, when the size and the inclination angle of the picture corresponding to the position of the focus to be displayed are obtained, the transparent preset focus picture is adjusted according to the size of the picture, and the canvas of the current interface is adjusted according to the inclination angle of the picture, so that the size of the preset focus picture is consistent with the size of the picture, and the inclination angle of the canvas is consistent with the inclination angle of the picture. Therefore, when the preset focus picture is drawn at the position of the focus to be displayed in the canvas, the size and the inclination angle of the preset focus picture are consistent with those of the picture, and the picture is highlighted.
In a second embodiment, as shown in fig. 3, on the basis of the first embodiment shown in fig. 2, the step of adjusting the preset focal point picture according to the size of the picture corresponding to the position of the focal point to be displayed includes:
and step S21, stretching the stretchable region of the preset focus picture to make the size of the preset focus picture consistent with the size of the picture corresponding to the position of the focus to be displayed.
In the second embodiment, the preset focus picture is generated by a point nine manufacturing tool of the android standard, which is a point nine picture. The method is characterized in that a nine-point picture, namely 9, is a special picture form in the application software development of the android platform, and the file extension name is as follows: 9. png. The preset focal point image is a rectangle, and a certain region of the rectangle is set as a stretchable region, such as the right side and the lower side of the rectangle, or the left side and the upper side of the rectangle, which is not limited in the present invention.
It should be noted that the size of the preset focus image refers to the length and width of the preset focus image, and the size of the picture refers to the length and width of the picture corresponding to the position of the focus to be displayed. And stretching the stretchable region of the preset focal point picture to enable the length and width of the preset focal point picture to be consistent with the length and width of the picture corresponding to the position of the focal point to be displayed. The method comprises the following specific steps: firstly, the length and the width of the picture are acquired, and then the stretchable area of the preset focal point picture is stretched, so that the length and the width of the preset focal point picture are respectively consistent with the length and the width of the picture. For example, the length and width of the picture are 20cm and 10cm, respectively, and then the length and width of the preset focal point picture are also extended to 20cm and 10cm, respectively.
In the second embodiment, stretching the stretchable region of the preset focal point picture realizes that the length and width of the preset focal point picture respectively accord with the length and width of the picture.
In a third embodiment, as shown in fig. 4, on the basis of the first embodiment shown in fig. 2, the step of adjusting the canvas of the current interface according to the tilt angle of the picture corresponding to the position of the focus to be displayed includes:
and step S22, performing miscut on the canvas to enable the inclination angle of the canvas to be consistent with the inclination angle of the picture corresponding to the position of the focus to be displayed.
In a third embodiment, the miscut is a planar graph obtained by scaling the directional distance from each point of the graph to a line parallel to a certain direction according to a certain proportion in the certain direction. Among them, the miscut usually includes X-direction miscut and Y-direction miscut. By the aid of the staggered cutting, the inclination angle of the canvas is consistent with that of the picture. The method comprises the following specific steps: firstly, determining whether a picture corresponding to the position of a focus to be displayed is inclined in the X direction or the Y direction, then obtaining the inclination angle in the direction, and inclining the canvas in the same direction by the same angle. For example, the picture corresponding to the position of the focus to be displayed is inclined by sixty degrees in the X direction, and then the canvas is also inclined by sixty degrees in the X direction by the cross-cut.
In a third embodiment, the canvas is cut in a staggered manner, so that the inclination angle of the canvas is consistent with that of the picture.
In a fourth embodiment, as shown in fig. 5, based on the first embodiment shown in fig. 2, the step of drawing the preset focal point picture at the position of the focal point to be displayed in the canvas includes:
step S31, the attribute of the canvas is switched from invalid conversion to valid conversion, wherein when the attribute of the canvas is valid conversion, the picture corresponding to the position of the focus to be displayed in the canvas and the preset focus picture are inclined according to the inclination angle of the canvas, and when the attribute of the canvas is invalid conversion, the picture corresponding to the position of the focus to be displayed in the canvas and the preset focus picture are not inclined according to the inclination angle of the canvas;
and step S32, drawing the preset focal point picture at the position of the focal point to be displayed in the canvas.
In a fourth embodiment, the canvas has two attributes, transform valid and transform invalid. When the property of the canvas is effective, the picture in the canvas and the picture with the preset focus are inclined along with the inclination of the canvas. For example, when the inclination angle of the canvas is consistent with the inclination angle of the picture, the attribute of the canvas is switched to be effective in transformation, so that when the position where the focus is to be displayed is drawn to preset the focus picture, the preset focus picture is inclined along with the inclination of the canvas. When the property of the canvas is that the transformation is invalid, the picture in the canvas and the preset focus picture are not inclined along with the inclination of the canvas. For example, when the focus is displayed on the picture corresponding to the position of the focus to be displayed, the attribute of the canvas is switched from effective conversion to ineffective conversion, so that when the canvas is restored to the original state, the picture in the canvas and the preset focus picture are not inclined along with the inclination of the canvas.
It should be noted that the attribute of the canvas may be switched, the condition for triggering attribute switching is preset, and when the preset condition is met, the attribute switching is performed, where the preset condition may be that the adjustment of the inclination angle of the canvas is completed and the preset focal point picture is not yet drawn, or that the preset focal point picture is drawn and the attribute information of the picture corresponding to the position of the focal point to be displayed is not yet acquired, and the present invention is not particularly limited.
In the fourth embodiment, the attribute of the canvas is switched from invalid to valid, and a preset focus picture is drawn at the position of the focus to be displayed in the canvas, so that the preset focus picture is inclined according to the inclination angle of the canvas.
In a fifth embodiment, as shown in fig. 6, on the basis of the fourth embodiment shown in fig. 5, after the drawing the preset focal point picture at the position of the focal point to be displayed in the canvas, the method further includes:
step S33, the attribute of the canvas is switched from effective transformation to ineffective transformation;
and step S34, restoring the original state of the canvas.
In the fifth embodiment, before the cloth is cut by mistake, the original state of the canvas is memorized, and after the picture display focus corresponding to the position of the focus to be displayed is displayed, the original state of the canvas can be quickly recovered. It should be noted that the original state of the canvas is a rectangle, and the canvas is tilted by a certain angle in the X direction or the Y direction by the cross cutting.
In a fifth embodiment, the properties of the canvas are switched from transformation-valid to transformation-invalid and the original state of the canvas is restored. Therefore, when the inclination angle of the picture corresponding to the position of the focus to be displayed is obtained, the canvas is cut in a staggered mode according to the inclination angle of the picture.
In a sixth embodiment, as shown in fig. 7, on the basis of the first embodiment shown in fig. 2, before the obtaining of the attribute information of the picture corresponding to the position of the focus to be displayed, the method further includes:
step S40, acquiring the sizes of all pictures in the current interface;
and step S50, generating the preset focal point image according to the size, wherein the size of the preset focal point image is smaller than the sizes of all the images in the interface.
In the sixth embodiment, the preset focus picture is generated by a point nine manufacturing tool of the android standard, which is a point nine picture. Since the dot nine picture can only be stretched and can not be compressed, the size of the dot nine picture generated is smaller than that of all pictures in the interface. The size of the point nine picture may be set to be eighty percent of the size of the smallest picture of the current interface, for example, the length of the smallest picture in the current interface is 10cm, and the width of the smallest picture in the current interface is 5cm, and then the length of the generated point nine picture may be 8cm, and the width of the generated point nine picture may be 4 cm.
In a sixth embodiment, the sizes of all pictures in the current interface are obtained, and a preset focal point picture is generated, where the size of the preset focal point picture is smaller than the sizes of all pictures in the interface. In this way, it is ensured that the generated preset focus picture can fit the sizes of all pictures in the interface.
The present invention also provides a focus display apparatus, including: a focus display program configured to implement operations of:
acquiring attribute information of a picture corresponding to the position of a focus to be displayed, wherein the attribute information comprises the size and the inclination angle of the picture corresponding to the position of the focus to be displayed;
adjusting a preset focus picture according to the size of the picture corresponding to the position of the focus to be displayed, so that the size of the preset focus picture is consistent with the size of the picture corresponding to the position of the focus to be displayed, and adjusting the canvas of the current interface according to the inclination angle of the picture corresponding to the position of the focus to be displayed, so that the inclination angle of the canvas is consistent with the inclination angle of the picture corresponding to the position of the focus to be displayed;
and drawing the preset focus picture at the position of the focus to be displayed in the canvas, wherein the preset focus picture is a transparent picture.
Further, the focus display program is configured to implement the following operations:
stretching the stretchable area of the preset focal point picture to enable the size of the preset focal point picture to be consistent with the size of the picture corresponding to the position of the to-be-displayed focal point.
Further, the focus display program is configured to implement the following operations:
and carrying out cross cutting on the canvas so as to enable the inclination angle of the canvas to be consistent with the inclination angle of the picture corresponding to the position of the focus to be displayed.
Further, the focus display program is configured to implement the following operations:
switching the attribute of the canvas from invalid conversion to valid conversion, wherein when the attribute of the canvas is valid conversion, the picture corresponding to the position of the focal point to be displayed in the canvas and the preset focal point picture are inclined according to the inclination angle of the canvas, and when the attribute of the canvas is invalid conversion, the picture corresponding to the position of the focal point to be displayed in the canvas and the preset focal point picture are not inclined according to the inclination angle of the canvas;
and drawing the preset focal point picture at the position of the focal point to be displayed in the canvas.
Further, the focus display program is configured to implement the following operations:
switching the attribute of the canvas from transformation effective to transformation ineffective;
restoring the original state of the canvas;
before the canvas is cut by mistake, the method further comprises the following steps:
and memorizing the original state of the canvas.
Further, the focus display program is configured to implement the following operations:
acquiring the sizes of all pictures in the current interface;
and generating the preset focal point image according to the size, wherein the size of the preset focal point image is smaller than the sizes of all images in the interface.
The focus display device provided by the invention firstly obtains the attribute information of the picture corresponding to the position of the focus to be displayed, wherein the attribute information comprises the size and the inclination angle of the picture corresponding to the position of the focus to be displayed, then, adjusting a preset focus picture according to the size of the picture corresponding to the position of the focus to be displayed, so that the size of the preset focus picture is consistent with the size of the picture corresponding to the position of the focus to be displayed, and adjusting the canvas of the current interface according to the inclination angle of the picture corresponding to the position of the focus to be displayed, so that the inclination angle of the canvas is consistent with the inclination angle of the picture corresponding to the position of the focus to be displayed, and finally, and drawing the preset focus picture at the position of the focus to be displayed in the canvas, wherein the preset focus picture is a transparent picture. Therefore, the point nine picture is adaptive to the parallelogram pictures with different sizes on the premise of no distortion.
An embodiment of the present invention further provides a computer-readable storage medium, where a focus display program is stored on the computer-readable storage medium, and the focus display program is executed by a processor to implement the following operations:
acquiring attribute information of a picture corresponding to the position of a focus to be displayed, wherein the attribute information comprises the size and the inclination angle of the picture corresponding to the position of the focus to be displayed;
adjusting a preset focus picture according to the size of the picture corresponding to the position of the focus to be displayed, so that the size of the preset focus picture is consistent with the size of the picture corresponding to the position of the focus to be displayed, and adjusting the canvas of the current interface according to the inclination angle of the picture corresponding to the position of the focus to be displayed, so that the inclination angle of the canvas is consistent with the inclination angle of the picture corresponding to the position of the focus to be displayed;
and drawing the preset focus picture at the position of the focus to be displayed in the canvas, wherein the preset focus picture is a transparent picture.
Further, the focus display program is executed by the processor to implement the following operations:
stretching the stretchable area of the preset focal point picture to enable the size of the preset focal point picture to be consistent with the size of the picture corresponding to the position of the to-be-displayed focal point.
Further, the focus display program is executed by the processor to implement the following operations:
and carrying out cross cutting on the canvas so as to enable the inclination angle of the canvas to be consistent with the inclination angle of the picture corresponding to the position of the focus to be displayed.
Further, the focus display program is executed by the processor to implement the following operations:
switching the attribute of the canvas from invalid conversion to valid conversion, wherein when the attribute of the canvas is valid conversion, the picture corresponding to the position of the focal point to be displayed in the canvas and the preset focal point picture are inclined according to the inclination angle of the canvas, and when the attribute of the canvas is invalid conversion, the picture corresponding to the position of the focal point to be displayed in the canvas and the preset focal point picture are not inclined according to the inclination angle of the canvas;
and drawing the preset focal point picture at the position of the focal point to be displayed in the canvas.
Further, the focus display program is executed by the processor to implement the following operations:
switching the attribute of the canvas from transformation effective to transformation ineffective;
restoring the original state of the canvas;
before the canvas is cut by mistake, the method further comprises the following steps:
and memorizing the original state of the canvas.
Further, the focus display program is executed by the processor to implement the following operations:
acquiring the sizes of all pictures in the current interface;
and generating the preset focal point image according to the size, wherein the size of the preset focal point image is smaller than the sizes of all images in the interface.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a television, a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (8)

1. A focus display method, characterized by comprising the steps of:
acquiring attribute information of a picture corresponding to the position of a focus to be displayed, wherein the attribute information comprises the size and the inclination angle of the picture corresponding to the position of the focus to be displayed;
adjusting a preset focus picture according to the size of the picture corresponding to the position of the focus to be displayed, wherein the preset focus picture is a point nine picture so that the size of the preset focus picture is consistent with the size of the picture corresponding to the position of the focus to be displayed, and adjusting the canvas of the current interface according to the inclination angle of the picture corresponding to the position of the focus to be displayed so that the inclination angle of the canvas is consistent with the inclination angle of the picture corresponding to the position of the focus to be displayed;
and drawing the preset focus picture at the position of the focus to be displayed in the canvas, wherein the preset focus picture is a transparent picture.
2. The focus display method according to claim 1, wherein the step of adjusting the preset focus picture according to the size of the picture corresponding to the position of the focus to be displayed comprises:
stretching the stretchable area of the preset focal point picture to enable the size of the preset focal point picture to be consistent with the size of the picture corresponding to the position of the to-be-displayed focal point.
3. The focus display method of claim 1, wherein the step of adjusting the canvas of the current interface according to the tilt angle of the picture corresponding to the position of the focus to be displayed comprises:
and carrying out cross cutting on the canvas so as to enable the inclination angle of the canvas to be consistent with the inclination angle of the picture corresponding to the position of the focus to be displayed.
4. The focus display method according to claim 3, wherein said step of drawing said preset focus picture at a position of a focus to be displayed in said canvas comprises:
switching the attribute of the canvas from invalid conversion to valid conversion, wherein when the attribute of the canvas is valid conversion, the picture corresponding to the position of the focal point to be displayed in the canvas and the preset focal point picture are inclined according to the inclination angle of the canvas, and when the attribute of the canvas is invalid conversion, the picture corresponding to the position of the focal point to be displayed in the canvas and the preset focal point picture are not inclined according to the inclination angle of the canvas;
and drawing the preset focal point picture at the position of the focal point to be displayed in the canvas.
5. The focus display method according to claim 4, wherein after said drawing said preset focus picture at a position of said focus to be displayed in said canvas, further comprises:
switching the attribute of the canvas from transformation effective to transformation ineffective;
restoring the original state of the canvas;
before the canvas is cut by mistake, the method further comprises the following steps:
and memorizing the original state of the canvas.
6. The focus display method according to claim 1, wherein before the obtaining of the attribute information of the picture corresponding to the position of the focus to be displayed, the method further comprises:
acquiring the sizes of all pictures in the current interface;
and generating the preset focal point image according to the size, wherein the size of the preset focal point image is smaller than the sizes of all images in the interface.
7. A focus display apparatus comprising a memory, a processor, and a focus display program stored on the memory and executable on the processor, the focus display program when executed by the processor implementing the steps of the focus display method according to any one of claims 1 to 6.
8. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a focus display program which, when executed by a processor, implements the steps of the focus display method according to any one of claims 1 to 6.
CN201711029421.7A 2017-10-26 2017-10-26 Focus display method, display device, and computer-readable storage medium Active CN107835450B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711029421.7A CN107835450B (en) 2017-10-26 2017-10-26 Focus display method, display device, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711029421.7A CN107835450B (en) 2017-10-26 2017-10-26 Focus display method, display device, and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN107835450A CN107835450A (en) 2018-03-23
CN107835450B true CN107835450B (en) 2020-12-08

Family

ID=61650053

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711029421.7A Active CN107835450B (en) 2017-10-26 2017-10-26 Focus display method, display device, and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN107835450B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112672198B (en) * 2020-12-14 2022-11-22 海看网络科技(山东)股份有限公司 EPG (electronic program guide) special-shaped graph display method

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102221993A (en) * 2010-04-16 2011-10-19 微软公司 Declarative definition of complex user interface state changes
KR20110138925A (en) * 2010-06-22 2011-12-28 삼성전자주식회사 Display apparatus and control methof thereof
CN102404526A (en) * 2011-12-06 2012-04-04 深圳Tcl新技术有限公司 Display control method and terminal for 3D menu
CN103019678A (en) * 2012-11-16 2013-04-03 Tcl集团股份有限公司 Method and device for focus alternating of list focal plane frame
CN103345354A (en) * 2013-06-27 2013-10-09 Tcl集团股份有限公司 Graphical interface focus shape processing method and system
CN103631493A (en) * 2013-10-31 2014-03-12 小米科技有限责任公司 Image display method and device and electronic equipment
US8793613B2 (en) * 2011-04-07 2014-07-29 Sony Corporation GUI for audio video display device (AVDD) with pervasive appearance but changed behavior depending on command input mode
CN104932770A (en) * 2014-03-20 2015-09-23 财团法人资讯工业策进会 Methods, Systems, Electronic Devices, And Non-Transitory Computer Readable Storage Medium Media For Behavior Based User Interface Layout Display (Build)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101980191B (en) * 2010-10-14 2014-03-05 优视科技有限公司 Method and device for locking focus element in webpage browsing process
CN102404627A (en) * 2011-11-03 2012-04-04 四川长虹电器股份有限公司 Intelligent television interaction method
US20130176102A1 (en) * 2012-01-10 2013-07-11 Gilles Serge BianRosa Touch-enabled remote control
CN102905194B (en) * 2012-08-29 2014-11-19 深圳市茁壮网络股份有限公司 Method and device for moving focal points in digital television browser, and digital television
CN103116490B (en) * 2012-12-04 2016-06-29 广州市久邦数码科技有限公司 A kind of based on webpage nine cut drawing drawing method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102221993A (en) * 2010-04-16 2011-10-19 微软公司 Declarative definition of complex user interface state changes
KR20110138925A (en) * 2010-06-22 2011-12-28 삼성전자주식회사 Display apparatus and control methof thereof
US8793613B2 (en) * 2011-04-07 2014-07-29 Sony Corporation GUI for audio video display device (AVDD) with pervasive appearance but changed behavior depending on command input mode
CN102404526A (en) * 2011-12-06 2012-04-04 深圳Tcl新技术有限公司 Display control method and terminal for 3D menu
CN103019678A (en) * 2012-11-16 2013-04-03 Tcl集团股份有限公司 Method and device for focus alternating of list focal plane frame
CN103345354A (en) * 2013-06-27 2013-10-09 Tcl集团股份有限公司 Graphical interface focus shape processing method and system
CN103631493A (en) * 2013-10-31 2014-03-12 小米科技有限责任公司 Image display method and device and electronic equipment
CN104932770A (en) * 2014-03-20 2015-09-23 财团法人资讯工业策进会 Methods, Systems, Electronic Devices, And Non-Transitory Computer Readable Storage Medium Media For Behavior Based User Interface Layout Display (Build)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于多屏互动的数字电视交互界面设计研究;刘玮楠;《中国优秀硕士学位论文全文数据库》;20141231;全文 *

Also Published As

Publication number Publication date
CN107835450A (en) 2018-03-23

Similar Documents

Publication Publication Date Title
TWI540501B (en) Display control method for application program interface and device thereof
CN108427546B (en) Full screen adaptation method of display device, display device and storage medium
JP6255495B2 (en) Method and apparatus for displaying browser resource, and computer readable storage medium
WO2013127239A1 (en) Web page content displaying method and device, browser, and mobile terminal
US9983764B2 (en) Method, electronic device, and non-transitory storage medium for adjusting icons
US10013156B2 (en) Information processing apparatus, information processing method, and computer-readable recording medium
US20240004676A1 (en) Screen Capture Method and Apparatus, Electronic Device, and Readable Storage Medium
CN104093061B (en) Content sharing method and device
CN111291753A (en) Image-based text recognition method and device and storage medium
CN110598140A (en) Page adjusting method and device and server
CN107835450B (en) Focus display method, display device, and computer-readable storage medium
JP2004320661A (en) Method for correcting area outside screen in geometrical correction interface using auxiliary line
JP2003316490A (en) Remote control system and method thereof
CN107608733B (en) Picture display method and device and terminal equipment
CN111127458B (en) Image pyramid-based target detection method, device and storage medium
CN112328193A (en) Multi-terminal screen combination method, device, equipment and computer storage medium
JP2014071448A (en) Font generation system and method of display unit
CN107301045B (en) Window display method and device
CN108132716B (en) Adjustment method and device of browsing page and computer readable storage medium
CN116193159A (en) Image data adjustment method and device, electronic equipment and storage medium
JP2017049686A (en) Image processing device
CN111372009B (en) Image processing method and processing equipment
CN110913193B (en) Image processing method, device, apparatus and computer readable storage medium
CN108846883B (en) Quick drawing method and system for fractal graph, user equipment and storage medium
CN108762756B (en) Application program display method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20200218

Address after: 518000 Guangdong city of Shenzhen province Qianhai Shenzhen Hong Kong cooperation zone before Bay Road No. 1 building 201 room A (located in Shenzhen Qianhai business secretary Co. Ltd.)

Applicant after: Shenzhen leynew Network Media Co Ltd

Address before: 518000 Guangdong city of Shenzhen province Qianhai Shenzhen Hong Kong cooperation zone before Bay Road No. 1 building 201 room A (located in Shenzhen Qianhai business secretary Co. Ltd.)

Applicant before: Shenzhen leynew Mdt InfoTech Ltd

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant