Disclosure of Invention
The present invention has been made in view of the above problems, and it is an object of the present invention to provide a PPT-based highlighting method and apparatus that overcomes or at least partially solves the above problems.
According to an aspect of the present invention, there is provided a PPT-based highlighting method, applied to a browser, including:
When a highlight trigger operation of a user on a selected area of the PPT interface is received, determining starting position coordinates and side lengths of all sides of the selected area based on a preset origin of coordinates of the browser interface;
Dividing a plurality of areas except the selected area on the browser interface by taking the initial position coordinates and the side lengths of all sides of the selected area as dividing basis, and taking the divided areas as non-highlight areas;
And drawing a region which is overlapped with the non-highlight region and has a preset brightness value on the PPT interface, wherein the preset brightness value is smaller than the brightness value of the selected region.
Optionally, before receiving the highlight triggering operation of the user on the selected area of the PPT interface, the method further comprises:
Receiving a frame selection operation of a user on any area on the PPT interface;
and setting any area corresponding to the box selection operation as a selected area for highlighting.
Optionally, determining the starting position coordinates and the side lengths of the selected area based on the preset origin of coordinates of the browser interface includes:
Determining a starting point corresponding to the frame selection operation of the user, and taking the starting point as the starting position of the selected area;
And acquiring a preset origin of coordinates of the browser interface, and determining the initial position coordinates and the side lengths of all sides of the selected area according to the preset origin of coordinates.
Optionally, dividing a plurality of areas except the selected area on the browser interface based on the initial position coordinates of the selected area and the side lengths of the sides, including:
analyzing whether the shape of the selected area is rectangular;
if so, dividing four areas except the selected area on the browser interface according to the initial position coordinates of the selected area and the side lengths of the sides.
Optionally, the method further includes dividing a plurality of areas except the selected area on the browser interface based on the initial position coordinates and the side lengths of the selected area, and after the divided areas are used as non-highlight areas, further including:
acquiring a prestored side length of the browser interface;
And calculating the area of each divided non-highlight region and the position relative to the selected region according to the side length of the browser interface, the initial position coordinates of the selected region and the side lengths of the selected region.
Optionally, drawing a region with a preset brightness value overlapping with the non-highlight region on the PPT interface includes:
Drawing areas which are the same as the areas of the non-highlight areas and the same relative to the selected areas on the PPT interface;
And setting the brightness of the area drawn on the PPT interface to be the preset brightness value.
Optionally, after drawing the region with the preset brightness value overlapping with the non-highlight region on the PPT interface, the method further includes:
associating an area with a preset brightness value with a specified operation;
And when the PPT is demonstrated, if the appointed operation of the user is received, the area with the preset brightness value associated with the appointed operation is called and displayed on the current PPT interface.
Optionally, after drawing the region with the preset brightness value overlapping with the non-highlight region on the PPT interface, the method further includes:
Sending the PPT file with the preset brightness value area drawn on the PPT interface to a server, and storing the PPT file by the server;
And when receiving the viewing and/or editing operation of the user on the PPT file, retrieving the stored PPT file from the server, and executing the viewing and/or editing operation of the user.
According to another aspect of the present invention, there is also provided a PPT-based highlighting device, for use in a browser, including:
The determining module is suitable for determining the initial position coordinates and the side lengths of all sides of the selected area based on the preset coordinate origin of the browser interface when the highlight trigger operation of the user on the selected area of the PPT interface is received;
The dividing module is suitable for dividing a plurality of areas except the selected area on the browser interface by taking the initial position coordinates and the side lengths of all sides of the selected area as dividing basis, and taking the divided areas as non-highlight areas;
And the drawing module is suitable for drawing the area which is overlapped with the non-highlight area and has a preset brightness value on the PPT interface, wherein the preset brightness value is smaller than the brightness value of the selected area.
Optionally, the apparatus further comprises:
The receiving module is suitable for receiving the frame selection operation of a user on the PPT interface before the determining module determines the initial position coordinates and the side lengths of all sides of the selected area based on the preset coordinate origin of the browser interface;
And the setting module is suitable for setting any area corresponding to the frame selection operation as a selected area for highlighting.
Optionally, the determining module is further adapted to:
Determining a starting point corresponding to the frame selection operation of the user, and taking the starting point as the starting position of the selected area;
And acquiring a preset origin of coordinates of the browser interface, and determining the initial position coordinates and the side lengths of all sides of the selected area according to the preset origin of coordinates.
Optionally, the partitioning module is further adapted to:
analyzing whether the shape of the selected area is rectangular;
if so, dividing four areas except the selected area on the browser interface according to the initial position coordinates of the selected area and the side lengths of the sides.
Optionally, the apparatus further comprises:
The acquisition module is suitable for dividing a plurality of areas except the selected area on the browser interface by taking the initial position coordinates and the side lengths of all sides of the selected area as division basis, and acquiring the side lengths of the pre-stored browser interface after taking the divided areas as non-highlight areas;
The calculation module is suitable for calculating the area of each divided non-highlight region and the position relative to the selected region according to the side length of the browser interface, the initial position coordinates of the selected region and the side lengths of the sides of the selected region.
Optionally, the rendering module is further adapted to:
Drawing areas which are the same as the areas of the non-highlight areas and the same relative to the selected areas on the PPT interface;
And setting the brightness of the area drawn on the PPT interface to be the preset brightness value.
Optionally, the apparatus further comprises:
The association module is suitable for the drawing module to associate the area with the preset brightness value with the appointed operation after drawing the area with the preset brightness value, which is overlapped with the non-highlight area, on the PPT interface;
And the calling module is suitable for calling the area with the preset brightness value associated with the appointed operation and displaying the area on the current PPT interface when the appointed operation of the user is received during the PPT demonstration.
Optionally, the apparatus further comprises:
the storage module is suitable for the drawing module to send the PPT file with the preset brightness value area drawn on the PPT interface to a server after drawing the area with the preset brightness value overlapped with the non-highlight area on the PPT interface, and the server stores the PPT file;
And the execution module is suitable for retrieving the stored PPT file from the server when receiving the viewing and/or editing operation of the user on the PPT file, and executing the viewing and/or editing operation of the user.
According to yet another aspect of the present invention, there is also provided a computer storage medium storing computer program code which, when run on a computing device, causes the computing device to perform the PPT-based highlighting method of any of the embodiments above.
According to yet another aspect of the present invention there is also provided a computing device comprising a processor, a memory storing computer program code, which when executed by the processor, causes the computing device to perform the PPT-based highlighting method of any of the embodiments above.
In the embodiment of the invention, the PPT file can be checked or edited by the browser, and when the content in the PPT file is highlighted by the browser, if the browser receives the highlighting triggering operation of the user on the selected area of the PPT interface, the initial position coordinates and the side lengths of all sides of the selected area can be determined firstly based on the preset coordinate origin of the browser interface. Then, a plurality of areas except the selected area are divided on the browser interface based on the initial position coordinates of the selected area and the side lengths of the sides, and the divided areas are used as non-highlight areas. And drawing a region with a preset brightness value, which is overlapped with the non-highlight region, on the PPT interface, wherein the preset brightness value is smaller than the brightness value of the selected region. Therefore, the embodiment of the invention can realize the production or viewing of the PPT through the webpage of the browser without special PPT software, thereby effectively avoiding the phenomenon that the PPT file is not opened because of the incompatibility problem of the copyright of the PPT software. And when the partial area on the PPT interface is highlighted, only the area which is not highlighted is determined and the brightness reduction treatment is carried out, and the secondary treatment on the image which needs to be highlighted is not needed, so that the image quality of the highlighted area is reserved, the manpower resource or the machine resource which is needed by the secondary treatment of the image is saved, and the highlighting efficiency of the PPT is improved.
In the embodiment of the invention, as the highlight region is dynamically generated, a user only needs to delineate the highlight region and does not need to manually carry out secondary processing on the image, thereby avoiding the defect of reduced image quality.
The foregoing description is only an overview of the present invention, and is intended to be implemented in accordance with the teachings of the present invention in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present invention more readily apparent.
The above, as well as additional objectives, advantages, and features of the present invention will become apparent to those skilled in the art from the following detailed description of a specific embodiment of the present invention when read in conjunction with the accompanying drawings.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
In order to solve the technical problems, the embodiment of the invention provides a highlighting method based on PPT, which can be applied to a browser. FIG. 1 shows a flow diagram of a PPT-based highlighting method according to one embodiment of the present invention. Referring to fig. 1, the method at least includes steps S102 to S106.
Step S102, when a highlight trigger operation of a user on a selected area of the PPT interface is received, starting position coordinates and side lengths of all sides of the selected area are determined based on a preset origin of coordinates of the browser interface.
Step S104, dividing a plurality of areas except the selected area on the browser interface based on the initial position coordinates of the selected area and the side lengths of the sides, and taking the divided areas as non-highlight areas.
And S106, drawing a region with a preset brightness value, which is overlapped with the non-highlight region, on the PPT interface, wherein the preset brightness value is smaller than the brightness value of the selected region.
According to the embodiment of the invention, the PPT can be manufactured or checked through the webpage of the browser without special PPT software, so that the phenomenon that the PPT file cannot be opened due to incompatibility of copyrights of the PPT software is effectively avoided. And when the partial area on the PPT interface is highlighted, only the area which is not highlighted is determined and the brightness reduction treatment is carried out, and the secondary treatment on the image which needs to be highlighted is not needed, so that the image quality of the highlighted area is reserved, the manpower resource or the machine resource which is needed by the secondary treatment of the image is saved, and the highlighting efficiency of the PPT is improved.
In an embodiment of the present invention, before receiving a user's operation of highlighting a selected area on a PPT interface, the user performs a corresponding operation of selecting an area to be highlighted on the PPT interface, for example, the user performs a corresponding operation of selecting an arbitrary area (i.e., an area to be highlighted). Here, the region corresponding to the user's selection operation may be a sentence text on the PPT interface, or at least one line of text content, or may be an image or a partial image, or the like, which is not specifically limited herein. When the browser receives the frame selection operation of the user on the PPT interface on any area, the arbitrary area corresponding to the frame selection operation is set as the selected area for highlighting.
Referring to step S102, in an embodiment of the present invention, when determining the coordinates of the start position and the side lengths of the selected area based on the preset origin of coordinates of the browser interface, the start point corresponding to the frame selection operation of the user may be determined first, and the determined start point is used as the start position of the selected area. And then, acquiring a preset origin of coordinates of the browser interface, and determining the initial position coordinates and the side lengths of all sides of the selected area according to the preset origin of coordinates.
In this embodiment, if the selected area corresponding to the frame selection operation is a quadrilateral area, and the operation track of the frame selection operation is from the upper left corner to the lower right corner of the selected area, at this time, the vertex of the upper left corner of the selected area may be used as the starting point corresponding to the frame selection operation, that is, the starting position of the selected area.
The embodiment of the invention also presets a coordinate origin for the browser interface, for example, the vertex of the upper left corner of the browser interface can be set as the coordinate origin (0, 0), and then the initial position coordinates and the side lengths of all sides of the selected area can be determined according to the coordinate origin (0, 0). Referring to fig. 2, a rectangular area 5 is a selected area (i.e., a highlight area) corresponding to a user frame selection operation, an outermost frame represents a browser interface, a coordinate origin (0, 0) of the browser interface is a vertex on an upper left corner of the browser interface, a starting position coordinate of the obtained fixed area is determined to be (x, y), and the rectangular area 5 is w in length and h in width.
In this embodiment, other positions in the browser interface may also be selected as the origin of coordinates, which is not specifically limited herein.
Referring to step S104 above, in an embodiment of the present invention, the number of the plurality of non-highlight regions other than the selected region divided on the browser interface may be arbitrary. However, the larger the number of non-highlight regions to be divided, the more parameters of the non-highlight regions to be determined later are, for example, the areas of a plurality of non-highlight regions need to be calculated, and the data calculation amount is large. Therefore, the number of divided non-highlight regions can be reduced as much as possible, thereby reducing the data calculation amount.
Typically, the selected area outlined by the user on the PPT interface is a rectangular area, while for rectangular areas where highlighting is required, the number of non-highlighted areas divided on the browser interface is preferably four. Therefore, in the embodiment of the present invention, when the non-highlight region is divided on the browser interface, whether the shape of the selected region is rectangular may be analyzed first, if so, four regions other than the selected region are divided on the browser interface based on the initial position coordinates of the selected region and the side lengths of the sides.
For example, referring to fig. 2, in the embodiment of the present invention, the selected area (i.e., the highlight area) is a rectangular area 5, and the four non-highlight areas divided on the browser interface are area 1, area 2, area 3, and area 4, respectively.
In an embodiment of the present invention, after a plurality of non-highlight regions are divided on the browser interface, in order to implement non-highlighting of the non-highlight regions, so that the highlight regions are highlighted, the area of each non-highlight region may be further calculated, and the position of each non-highlight region may be clarified. In this embodiment, the side length of the pre-stored browser interface, that is, the length and width of the browser interface, may be acquired first. And then, calculating the area of each divided non-highlight region according to the side length of the browser interface, the initial position coordinates of the selected region and the side lengths of the selected region, and determining the position of each non-highlight region relative to the selected region.
Still referring to fig. 2, assuming that the length a and width b of the browser interface are the same, the starting position coordinates of the selected area (i.e., the highlight area) are (x, y), the length w and width h of the selected area (i.e., the rectangular area 5), and the four non-highlight areas, i.e., the area 1, the area 2, the area 3, and the area 4 are all rectangular. Then, by calculating the length b and width x of region 1, the length w and width y of region 2, the length b and width a-x-w of region 3, and the length w and width b-y-h of region 4. Here, although the values on the coordinate axes have positive and negative divisions, the length of the side of each region and the calculated value of the length of the side in the embodiment of the present invention are all absolute values of the values in the coordinate axes. In addition, it is also possible to determine that the region 1, the region 2, the region 3, and the region 4 are located at the left side, the upper side, the right side, and the lower side of the rectangular region 5, respectively.
Referring to step S106 above, in an embodiment of the present invention, when an area with a preset luminance value overlapping with a non-highlight area is drawn on the PPT interface, the area drawing with the preset luminance value may be performed according to the area of each non-highlight area and the determined position of each non-highlight area calculated in the above embodiment. Specifically, first, regions having the same area as the respective non-highlight regions and the same position with respect to the selected region are drawn on the PPT interface. And then, setting the brightness of the area drawn on the PPT interface as a corresponding preset brightness value, wherein the preset brightness value is smaller than the brightness value of the selected area, so that the highlight display of the selected area can be realized.
The foregoing embodiment describes a process of implementing highlighting on a PPT interface, in general, after the PPT is manufactured, the PPT is mainly used for demonstrating and explaining for other people, and when the PPT is demonstrated and explained for other people, in order to more clearly embody a highlighting area and draw attention of a user watching the PPT to the highlighting area, a state before the PPT interface is not subjected to highlighting may be displayed first, and when a user performs a specified operation, a state after the PPT interface is subjected to highlighting may be displayed again.
Specifically, after the region with the preset brightness value overlapping with the non-highlight region is drawn on the PPT interface, the region with the preset brightness value can be associated with the specified operation, and in the process of demonstrating the PPT, if the current PPT interface is the region with the preset brightness value overlapping with the non-highlight region, the region with the preset brightness value associated with the specified operation can be called and displayed on the current PPT interface when the specified operation of the user is received. The designating operation may include a single click operation, a double click operation, a sliding operation, etc., and the designating operation is not particularly limited in the embodiment of the present invention.
In another embodiment of the present invention, when a user creates a PPT file through a browser web page and highlights the PPT, the user typically needs to log in to an account where the user creates the PPT, where the account may be an account where a PPT website is created, or may be a browser account. Therefore, after the user completes the preparation of the PPT file, the PPT file with the preset brightness value area drawn on the PPT interface can be sent to the corresponding server, the server stores the PPT file, and the stored PPT file can be associated with the user account. And when receiving the viewing and/or editing operation of the user on the PPT file, retrieving the stored PPT file associated with the user account from the server, and executing the viewing and/or editing operation of the user.
Therefore, by adopting the scheme of the application, the production of the PPT file and the highlighting of the content of the PPT file can be realized by installing the browser on the terminal, the terminal does not need to be provided with special PPT software, and the problem that whether the PPT software version is compatible with the PPT file to be demonstrated is not required.
Based on the same inventive concept, the embodiment of the invention also provides a highlighting device based on the PPT, which is applied to a browser. Fig. 3 shows a schematic structural view of a PPT-based highlighting device according to an embodiment of the present invention. Referring to fig. 3, the PPT-based highlighting apparatus 300 includes a determining module 310, a dividing module 320, and a drawing module 330.
The functions of the components or devices of the PPT-based highlighting apparatus 300 according to embodiments of the present invention and the connection relationship between the components will now be described:
The determining module 310 is adapted to determine, when a highlight trigger operation of a user on a selected area of the PPT interface is received, starting position coordinates and side lengths of each side of the selected area based on a preset origin of coordinates of the browser interface;
The dividing module 320 is coupled to the determining module 310, and is adapted to divide a plurality of areas except the selected area on the browser interface based on the initial position coordinates and the side lengths of the selected area, and the divided areas are used as non-highlight areas;
The drawing module 330, coupled to the dividing module 320, is adapted to draw an area overlapping the non-highlight area on the PPT interface with a preset luminance value, wherein the preset luminance value is smaller than the luminance value of the selected area.
In an embodiment of the invention, the partitioning module 320 is further adapted to analyze whether the shape of the selected area is rectangular. If so, dividing four areas except the selected area on the browser interface according to the initial position coordinates of the selected area and the side lengths of the sides.
The embodiment of the invention also provides another highlighting device based on the PPT, which is applied to the browser. Fig. 4 shows a schematic structural view of a PPT-based highlighting device according to another embodiment of the present invention. Referring to fig. 4, the PPT-based highlighting apparatus 300 includes a receiving module 340, a setting module 350, an obtaining module 360, and a calculating module 370, in addition to the above-described modules.
The receiving module 340 is coupled to the determining module 310, and is adapted to receive a frame selection operation of the user on the PPT interface for any region before the determining module 310 determines the starting position coordinates and the side lengths of the selected region based on the preset origin of coordinates of the browser interface.
A setting module 350, coupled to the receiving module 340 and the determining module 310, respectively, is adapted to set an arbitrary region corresponding to the framing operation as the selected region for highlighting.
The obtaining module 360 is coupled to the dividing module 320, and is adapted to obtain the side length of the pre-stored browser interface after dividing the plurality of areas except the selected area on the browser interface based on the initial position coordinates and the side lengths of the selected area by the dividing module 320 and using the divided areas as the non-highlight areas.
The calculating module 370, coupled to the obtaining module 360, is adapted to calculate the area of each divided non-highlight region and the position relative to the selected region according to the side length of the browser interface, the starting position coordinates of the selected region and the side lengths of the selected region.
In an embodiment of the present invention, the determining module 310 is further adapted to determine a starting point corresponding to the frame selection operation of the user, and use the starting point as the starting position of the selected area. And acquiring a preset coordinate origin of the browser interface, and determining the initial position coordinates and the side lengths of all sides of the selected area according to the preset coordinate origin.
In an embodiment of the present invention, the drawing module 330 is further adapted to draw an area on the PPT interface that is the same as the area of each non-highlight region and the same location relative to the selected region. The brightness of the area drawn on the PPT interface is set to a preset brightness value.
The embodiment of the invention also provides a highlighting device based on the PPT, which is applied to the browser. Fig. 5 shows a schematic structural view of a PPT-based highlighting device according to another embodiment of the present invention. Referring to fig. 5, PPT-based highlighting apparatus 300 includes, in addition to the above-described modules, an association module 380, a retrieval module 390, a storage module 400, and an execution module 410.
An association module 380, coupled to the drawing module 330, is adapted to associate the region with the preset intensity value with the specified operation after the drawing module 330 draws the region with the preset intensity value overlapping the non-highlight region on the PPT interface.
The retrieving module 390 is coupled to the associating module 380, and is adapted to retrieve, when the PPT is presented, the region associated with the specified operation and having the preset brightness value and be displayed on the current PPT interface if the specified operation of the user is received.
And the storage module 400 is coupled with the drawing module 330, and is suitable for the drawing module 330 to send the PPT file with the preset brightness value area drawn on the PPT interface to the server after drawing the area with the preset brightness value overlapping with the non-highlight area on the PPT interface, and the server stores the PPT file.
An execution module 410, coupled to the storage module 400, is adapted to retrieve the stored PPT file from the server and execute the user's viewing and/or editing operations when the user's viewing and/or editing operations on the PPT file are received.
Embodiments of the invention also provide a computer storage medium storing computer program code that, when run on a computing device, causes the computing device to perform the PPT-based highlighting method of any of the embodiments above.
Embodiments of the invention also provide a computing device comprising a processor, a memory storing computer program code that, when executed by the processor, causes the computing device to perform the PPT-based highlighting method of any of the embodiments above.
According to any one of the above preferred embodiments or a combination of the preferred embodiments, the following advantageous effects can be achieved according to the embodiments of the present invention:
In the embodiment of the invention, the PPT file can be checked or edited by the browser, and when the content in the PPT file is highlighted by the browser, if the browser receives the highlighting triggering operation of the user on the selected area of the PPT interface, the initial position coordinates and the side lengths of all sides of the selected area can be determined firstly based on the preset coordinate origin of the browser interface. Then, a plurality of areas except the selected area are divided on the browser interface based on the initial position coordinates of the selected area and the side lengths of the sides, and the divided areas are used as non-highlight areas. And drawing a region with a preset brightness value, which is overlapped with the non-highlight region, on the PPT interface, wherein the preset brightness value is smaller than the brightness value of the selected region. Therefore, the embodiment of the invention can realize the production or viewing of the PPT through the webpage of the browser without special PPT software, thereby effectively avoiding the phenomenon that the PPT file is not opened because of the incompatibility problem of the copyright of the PPT software. And when the partial area on the PPT interface is highlighted, only the area which is not highlighted is determined and the brightness reduction treatment is carried out, and the secondary treatment on the image which needs to be highlighted is not needed, so that the image quality of the highlighted area is reserved, the manpower resource or the machine resource which is needed by the secondary treatment of the image is saved, and the highlighting efficiency of the PPT is improved.
It will be clear to those skilled in the art that the specific working procedures of the above-described systems, devices and units may refer to the corresponding procedures in the foregoing method embodiments, and are not repeated herein for brevity.
In addition, each functional unit in the embodiments of the present invention may be physically independent, two or more functional units may be integrated together, or all functional units may be integrated in one processing unit. The integrated functional units may be implemented in hardware or in software or firmware.
Those skilled in the art will appreciate that the integrated functional units, if implemented in software and sold or used as a stand-alone product, may be stored on a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in essence or in whole or in part in the form of a software product stored in a storage medium, comprising instructions for causing a computing device (e.g., a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present invention when the instructions are executed. The storage medium includes various media capable of storing program codes, such as a U disk, a mobile hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
Or all or part of the steps of implementing the foregoing method embodiments may be implemented by hardware (such as a personal computer, a server, or a computing device such as a network device) associated with program instructions, which may be stored in a computer-readable storage medium, which when executed by a processor of the computing device, performs all or part of the steps of the method of embodiments of the present invention.
It should be noted that the above embodiments are merely for illustrating the technical solution of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the above embodiments, it should be understood by those skilled in the art that modifications may be made to the technical solution described in the above embodiments or equivalents may be substituted for some or all of the technical features thereof without departing from the scope of the present invention.