CN111192336B - Method and terminal for restoring linear gradual change of background title shadows in PPTX - Google Patents
Method and terminal for restoring linear gradual change of background title shadows in PPTX Download PDFInfo
- Publication number
- CN111192336B CN111192336B CN201911321691.4A CN201911321691A CN111192336B CN 111192336 B CN111192336 B CN 111192336B CN 201911321691 A CN201911321691 A CN 201911321691A CN 111192336 B CN111192336 B CN 111192336B
- Authority
- CN
- China
- Prior art keywords
- title
- slide
- gradual change
- background
- linear
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/001—Texturing; Colouring; Generation of texture or colour
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention discloses a method and a terminal for restoring linear gradual change of background title shadows in PPTX, and the method reads XML files in PPTX compression format files; traversing the node content in the XML file, and determining a slide set by the linear gradual change effect of the background title shadow; analyzing the page number of the slide according to the slide set by the background title shadow linear gradual change effect, and gradually changing color information of the corresponding title and the position of the title; generating a background picture with the same linear gradient effect of the background title shadow corresponding to the page number of the slide and the gradient color information of the corresponding title and the position of the title, thereby effectively solving the problem that the linear gradient effect picture of the background title shadow of the slide in the PPTX file can be derived under the condition that the PowerPoint program cannot be used and realizing the accurate restoration of the linear gradient effect of the background title shadow of the slide in the PPTX file.
Description
Technical Field
The invention relates to the field of image processing, in particular to a method and a terminal for reducing linear gradual change of background title shadows in PPTX.
Background
The conventional method for analyzing the linear gradual change effect of the title shadow of the background picture of the slide in the PPTX file is to import the PPTX file into the PowerPoint, select the target background picture by a mouse, click the right button, select the background format, view the setting parameters of the linear gradual change effect of the title shadow in the target background picture, utilize the drawing library to restore the linear gradual change effect of the title shadow according to the parameters, however, the method needs to rely on the PowerPoint to view the setting parameters, and when a great number of the linear gradual change effects of the title shadow in the background picture need to be simultaneously restored, a great deal of time is consumed for viewing the setting parameters of the background picture one by one in the PowerPoint, and meanwhile, when the application scene of the PowerPoint needs to be restored cannot be used, the method cannot accurately restore the linear gradual change effect of the title shadow of the background picture because the effect processing data of the background picture cannot be analyzed.
Disclosure of Invention
The technical problems to be solved by the invention are as follows: the method and the terminal for restoring the linear gradual change of the background title shadow in the PPTX can accurately and effectively analyze the linear gradual change effect of the background title shadow in the PPTX file and generate the background picture with the same effect.
In order to solve the technical problems, the invention adopts the following technical scheme:
a method for restoring linear gradual changes of background headline shadows in PPTX, comprising the steps of:
s1, reading an XML file in a PPTX compressed format file;
s2, traversing node contents in the XML file, and determining a slide set by a background title shadow linear gradual change effect;
s3, analyzing the page number of the slide according to the slide set by the linear gradual change effect of the background title shadow and the gradual change color information of the corresponding title and the position of the title;
and S4, generating a background picture with the same linear gradient effect of the corresponding background title shadow according to the page number of the slide and the gradient color information of the corresponding title and the position of the title.
In order to solve the technical problems, the invention adopts another technical scheme that:
a terminal for restoring linear gradation of background headline shadows in PPTX, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
s1, reading an XML file in a PPTX compressed format file;
s2, traversing node contents in the XML file, and determining a slide set by a background title shadow linear gradual change effect;
s3, analyzing the page number of the slide according to the slide set by the linear gradual change effect of the background title shadow and the gradual change color information of the corresponding title and the position of the title;
and S4, generating a background picture with the same linear gradient effect of the corresponding background title shadow according to the page number of the slide and the gradient color information of the corresponding title and the position of the title.
The invention has the beneficial effects that: reading an XML file in a PPTX compressed format file, traversing node contents in the file, determining a slide set by a background title shadow linear gradual change effect, analyzing the page number of the slide and the gradual change color information of a title corresponding to the page number and the position of the title, and generating a background picture with the same background title shadow linear gradual change effect corresponding to the page number according to the data. By reading the node content under the XML file in the PPTX compressed format file, whether the slide in the PPTX file is provided with the linear gradual change effect of the title shadow in the background format can be accurately judged, and by analyzing the parameters set by the linear gradual change effect of the background title shadow, the background picture which is the same as the parameter setting effect is generated, so that the problem that the linear gradual change effect picture of the background title shadow of the slide in the PPTX file can be derived under the condition that the PowerPoint program cannot be used is effectively solved, and the accurate restoration of the linear gradual change effect of the background title shadow of the slide in the PPTX file is realized.
Drawings
FIG. 1 is a flow chart illustrating steps of a method for reducing linear gradation of background headlines in PPTX according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a terminal for restoring linear gradual change of background headline shadows in PPTX according to an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating a gradual drawing of a method for restoring a linear gradual change of a background title shadow in PPTX according to an embodiment of the present invention;
description of the reference numerals:
1. a terminal for restoring linear gradual change of background title shadows in PPTX; 2. a memory; 3. a processor.
Detailed Description
In order to describe the technical contents, the achieved objects and effects of the present invention in detail, the following description will be made with reference to the embodiments in conjunction with the accompanying drawings.
Referring to fig. 1, a method for reducing linear gradual change of background title shadows in PPTX, the method comprises the steps of:
s1, reading an XML file in a PPTX compressed format file;
s2, traversing node contents in the XML file, and determining a slide set by a background title shadow linear gradual change effect;
s3, analyzing the page number of the slide according to the slide set by the linear gradual change effect of the background title shadow and the gradual change color information of the corresponding title and the position of the title;
and S4, generating a background picture with the same linear gradient effect of the corresponding background title shadow according to the page number of the slide and the gradient color information of the corresponding title and the position of the title.
From the above description, the beneficial effects of the invention are as follows: reading an XML file in a PPTX compressed format file, traversing node contents in the file, determining a slide set by a background title shadow linear gradual change effect, analyzing the page number of the slide and the gradual change color information of a title corresponding to the page number and the position of the title, and generating a background picture with the same background title shadow linear gradual change effect corresponding to the page number according to the data. By reading the node content under the XML file in the PPTX compressed format file, whether the slide in the PPTX file is provided with the linear gradual change effect of the title shadow in the background format can be accurately judged, and by analyzing the parameters set by the linear gradual change effect of the background title shadow, the background picture which is the same as the parameter setting effect is generated, so that the problem that the linear gradual change effect picture of the background title shadow of the slide in the PPTX file can be derived under the condition that the PowerPoint program cannot be used is effectively solved, and the accurate restoration of the linear gradual change effect of the background title shadow of the slide in the PPTX file is realized.
Further, the step S2 includes:
and traversing all files representing slide page content under the XML file, respectively judging whether a node representing the linear gradual change effect of setting background title shadows exists under each slide page content file, if so, executing the step S3, and if not, not processing.
As can be seen from the above description, since the analysis of the linear gradient effect of the background headline shadow involves the traversal of a large number of files and nodes, whether the nodes for representing the linear gradient effect of the background headline shadow exist in the content file of the slide page is judged first, so that the analysis time of the linear gradient effect of the background headline shadow in the PPTX file can be effectively saved, and the analysis efficiency is improved.
Further, the step S3 includes:
analyzing the child node under the node for representing the linear gradual change effect of setting background title shadows, and acquiring gradual change color information of the title under the current slide and position information of the title;
and acquiring the page number of the current slide, and storing the page number of the slide, the gradual change color information of the corresponding title and the position of the title in an array in a JSON data format.
As can be seen from the above description, since the linear gradient effect of the background title shadow involves the gradient of the color, the gradient color information of the title is obtained, the linear gradient effect of the background title shadow can be effectively restored by simulating the gradient color, and meanwhile, the linear gradient effect of the background title shadow of the slide is gradually changed by extending outwards around the title, so that the position information of the title is a necessary parameter for correctly restoring the linear gradient effect of the background title shadow, the page number of the current slide is stored in the JSON array together with the gradient color information and the position information of the title, the page number of the slide corresponds to the setting parameter of the linear gradient effect of the background title in the slide one by one, which is beneficial to the purposefully restoring the title effect in the slide, avoiding confusing the setting parameter of the linear gradient effect of the background title shadow.
Further, the step S4 includes:
and creating canvas with the same proportion as the slide by using a linear gradual change painting brush in a drawing library according to the page number of the transferred slide and the gradual change color information of the corresponding title and the position of the title, and carrying out gradual change drawing of five areas to generate a background picture with the same linear gradual change effect of the shadow of the background title corresponding to the slide.
According to the description, the canvas with the same proportion as the slide is drawn through the drawing library, the size of the PPT background picture derived by PowerPoint is favorably simulated, the region is divided on the canvas for targeted gradual change drawing, and the drawn background picture can accurately restore the linear gradual change effect of the background title shadow corresponding to the slide.
Further, the performing gradual drawing of the five regions in step S4 includes:
and drawing the shapes of the five areas in the canvas by utilizing the functions of drawing polygons and drawing rectangles.
As can be seen from the above description, since the linear gradient regions of the background title shadows in the slide are all regular geometric figures, the five regions in the canvas are drawn by using the functions of drawing polygons and drawing rectangles, so that the shapes of the linear gradient regions of the background title shadows in the slide can be effectively restored, and the accuracy of effect restoration is improved.
Referring to fig. 2, a terminal for restoring linear gradual change of background title shadows in PPTX includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
s1, reading an XML file in a PPTX compressed format file;
s2, traversing node contents in the XML file, and determining a slide set by a background title shadow linear gradual change effect;
s3, analyzing the page number of the slide according to the slide set by the linear gradual change effect of the background title shadow and the gradual change color information of the corresponding title and the position of the title;
and S4, generating a background picture with the same linear gradient effect of the corresponding background title shadow according to the page number of the slide and the gradient color information of the corresponding title and the position of the title.
From the above description, the beneficial effects of the invention are as follows: reading an XML file in a PPTX compressed format file, traversing node contents in the file, determining a slide set by a background title shadow linear gradual change effect, analyzing the page number of the slide and the gradual change color information of a title corresponding to the page number and the position of the title, and generating a background picture with the same background title shadow linear gradual change effect corresponding to the page number according to the data. By reading the node content under the XML file in the PPTX compressed format file, whether the slide in the PPTX file is provided with the linear gradual change effect of the title shadow in the background format can be accurately judged, and by analyzing the parameters set by the linear gradual change effect of the background title shadow, the background picture which is the same as the parameter setting effect is generated, so that the problem that the linear gradual change effect picture of the background title shadow of the slide in the PPTX file can be derived under the condition that the PowerPoint program cannot be used is effectively solved, and the accurate restoration of the linear gradual change effect of the background title shadow of the slide in the PPTX file is realized.
Further, the step S2 includes:
and traversing all files representing slide page content under the XML file, respectively judging whether a node representing the linear gradual change effect of setting background title shadows exists under each slide page content file, if so, executing the step S3, and if not, not processing.
As can be seen from the above description, since the analysis of the linear gradient effect of the background headline shadow involves the traversal of a large number of files and nodes, whether the nodes for representing the linear gradient effect of the background headline shadow exist in the content file of the slide page is judged first, so that the analysis time of the linear gradient effect of the background headline shadow in the PPTX file can be effectively saved, and the analysis efficiency is improved.
Further, the step S3 includes:
analyzing the child node under the node for representing the linear gradual change effect of setting background title shadows, and acquiring gradual change color information of the title under the current slide and position information of the title;
and acquiring the page number of the current slide, and storing the page number of the slide, the gradual change color information of the corresponding title and the position of the title in an array in a JSON data format.
As can be seen from the above description, since the linear gradient effect of the background title shadow involves the gradient of the color, the gradient color information of the title is obtained, the linear gradient effect of the background title shadow can be effectively restored by simulating the gradient color, and meanwhile, the linear gradient effect of the background title shadow of the slide is gradually changed by extending outwards around the title, so that the position information of the title is a necessary parameter for correctly restoring the linear gradient effect of the background title shadow, the page number of the current slide is stored in the JSON array together with the gradient color information and the position information of the title, the page number of the slide corresponds to the setting parameter of the linear gradient effect of the background title in the slide one by one, which is beneficial to the purposefully restoring the title effect in the slide, avoiding confusing the setting parameter of the linear gradient effect of the background title shadow.
Further, the step S4 includes:
and creating canvas with the same proportion as the slide by using a linear gradual change painting brush in a drawing library according to the page number of the transferred slide and the gradual change color information of the corresponding title and the position of the title, and carrying out gradual change drawing of five areas to generate a background picture with the same linear gradual change effect of the shadow of the background title corresponding to the slide.
According to the description, the canvas with the same proportion as the slide is drawn through the drawing library, the size of the PPT background picture derived by PowerPoint is favorably simulated, the region is divided on the canvas for targeted gradual change drawing, and the drawn background picture can accurately restore the linear gradual change effect of the background title shadow corresponding to the slide.
Further, the performing gradual drawing of the five regions in step S4 includes:
and drawing the shapes of the five areas in the canvas by utilizing the functions of drawing polygons and drawing rectangles.
As can be seen from the above description, since the linear gradient regions of the background title shadows in the slide are all regular geometric figures, the five regions in the canvas are drawn by using the functions of drawing polygons and drawing rectangles, so that the shapes of the linear gradient regions of the background title shadows in the slide can be effectively restored, and the accuracy of effect restoration is improved.
Example 1
Referring to fig. 1, a method for reducing linear gradual change of background title shadows in PPTX specifically includes the steps of:
s1, reading an XML file in a PPTX compressed format file;
specifically, decompressing the specified file content in the PPTX compressed format file through the zlib function library, and reading the XML file in the specified file content by utilizing the RAPIDxml parsing library;
s2, traversing node contents in the XML file, and determining a slide set by a background title shadow linear gradual change effect;
specifically, the step S2 includes:
and traversing all files representing slide page content under the XML file, respectively judging whether a node representing the linear gradual change effect of setting background title shadows exists under each slide page content file, if so, executing the step S3, and if not, not processing.
Specifically, a file catalog of a PPTX compressed format file after decompression is obtained, all slide number content files slide#. XML in slide catalog under ppt catalog in the catalog are searched, p: bg nodes under the XML file are traversed, when the shaadToTitle attribute value under the node is 1, and meanwhile, the path attribute of a child node a: gradFill is "shape" or no a: path node, the linear gradual effect of background title shadow exists in slides corresponding to the current slide#. XML file is judged.
S3, analyzing the page number of the slide according to the slide set by the linear gradual change effect of the background title shadow and the gradual change color information of the corresponding title and the position of the title;
specifically, the step S3 includes:
analyzing the child node under the node for representing the linear gradual change effect of setting background title shadows, and acquiring gradual change color information of the title under the current slide and position information of the title;
and acquiring the page number of the current slide, and storing the page number of the slide, the gradual change color information of the corresponding title and the position of the title in an array in a JSON data format.
Specifically, let a: a under gradFill node: a in gsLst node: the gs node analyzes the pos attribute in order to represent the title gradual change position information, if the title of the slide has gradual change color value at X positions, then there must be X a gs nodes, wherein gradual change position information needs to be divided by 1000 to convert, a gs node may have a scheme cr node or a scheme bcr node, wherein the a scheme cr node represents a background title linear gradual change color value set by a user in a color value range defined by a slide master or a slide theme, the a scheme bcr node represents a background title linear gradual change color value as user-defined, when the a scheme cr node is below the a node, there is a value attribute representing a color value below the node, the value attribute is assumed to be the value of the value at this time, and the value # of the value is assumed to be an index, and the value of the value is required to be found in a corresponding file, first, the value of the value is obtained as a page layout file corresponding to the corresponding file in the corresponding stage, and the value of the corresponding file is also provided as a corresponding to the value of the edge in the corresponding file in the slide, and the corresponding to the destination file in the path of the corresponding destination, the destination file is the destination, and the value is the value of the value is provided as a corresponding file in the destination of the corresponding file is the edge of the top of the edge-extension file is provided by the edge of the edge-extension file. The value attribute value under its node is directly the hexadecimal color value. After the color values are resolved, a: lumMod, a: lumOff and a: alpha node may exist under the a: srgbClr nodes, wherein the attribute values under the nodes are divided by 100000 to represent a brightness modification value, a brightness offset value and a transparency value, respectively, and the actual gradient color value in the linear gradient effect of the background title shadow in the PPT is required to be processed by setting the brightness modification value, the brightness offset value and the transparency value, wherein the color space is required to be converted into the HSL color space to be processed by a conventional algorithm when the brightness modification value and the brightness offset value are required to be converted into the ARGB color space, and the transparency modification can be directly performed under the ARGB space, and the processed gradient color value is the gradient color information of the resolved current slide title.
And (3) a p:nvSpPr node exists in a p:sp node under the current slide page content file slide#. Xml, an attribute type exists in a p:ph sub-node p:pr of the p:nvPr sub-node, when the type value is ctrTitle or title, the current slide is indicated to have a title, otherwise, the slide of the current slide is judged to have no title, and the default title position without the title is taken as a center point. When the slide has a title, parse p: peer node p of nvSpPr node: spPr, judging whether the content exists under the node, and if so, analyzing the child node a: an x attribute value and a y attribute value in an off node are divided by 360000 to be converted into coordinate positions (x, y) of a left upper corner of a title, the units are cm, the cx attribute and the cy attribute are simultaneously analyzed to be converted into wide high values of the title by being divided by 360000, the units are cm, the x attribute value and the y attribute value are taken as position information of the title, if no content exists in the p-spPr node, the Target attribute value of a relay tips node under a slide#. Xml.rels file corresponding to a page number is required to be found, a corresponding slide# xml page layout file is obtained according to the relative path provided by the attribute value, whether a type of a p-in-Pr node under the page layout file is the same as the position information of a corresponding position in the corresponding xml file under the corresponding to the corresponding xml node, if the type of the p-in-Pr node is not the same as the position information of the corresponding xml file under the corresponding to the corresponding xml node, if the corresponding value of the p-in-Pr node is not found, the corresponding value of the p-in-Pr node is read, and if the corresponding value of the p-in-Pr node is the corresponding to the corresponding position information in the corresponding to the corresponding flange value is not the corresponding to the corresponding value, and if the corresponding value is not the corresponding value is found, and if the corresponding value is read, y, cx, cy attribute value as the location information of the title.
Because # in slide #. Xml represents a specific page, the page is obtained, and the page, the gradient color information of the title and the position information of the title of the current slide are stored in an array in a JSON data format, wherein one page corresponds to one background, namely, corresponds to one gradient color information and the position information of one title.
Specifically, the step S4 includes:
and creating canvas with the same proportion as the slide by using a linear gradual change painting brush in a drawing library according to the page number of the transferred slide and the gradual change color information of the corresponding title and the position of the title, and carrying out gradual change drawing of five areas to generate a background picture with the same linear gradual change effect of the shadow of the background title corresponding to the slide.
Specifically, a JSON array storing the page number of a slide and the gradient color information of the corresponding title and the position of the title is obtained, rendering and drawing of a generated picture are carried out according to the transferred data, in the same item, a canvas with the same proportion as that of a PowerPoint slide is created by using a linear gradient drawing brush in a Microsoft GDI+ drawing library, gradient drawing is carried out on the upper, lower, left, right and central areas of the canvas, and the drawn picture is stored, so that accurate restoration of the linear gradient effect of the background title shadow of the slide in a PPTX file is realized, and a gradient drawing schematic diagram of fig. 3 is shown.
Specifically, the performing gradual change drawing of the five regions in step S4 includes:
and drawing the shapes of the five areas in the canvas by utilizing the functions of drawing polygons and drawing rectangles.
Specifically, the upper, lower, left and right and central areas of the canvas are subjected to shape drawing, and the main steps for drawing graphics are as follows:
generating canvas with the same proportion as the slide by using GDI+;
setting the drawing quality of the graph, such as high definition, general definition and the like;
creating a linear gradual change painting brush for drawing a graph;
and dividing left, upper, right, lower and central areas in the canvas according to the coordinates of the left upper corner of the title and the width Gao Zaisuo of the title, filling the interiors of polygons defined by the appointed point array according to the gradient color information of the title by using linear gradient painting brushes in the five areas respectively, and generating the drawn pictures according to the set drawing quality of the graphics.
Example two
Referring to fig. 2, a terminal 1 for restoring linear gradual change of background title shadows in PPTX, the terminal 1 includes a memory 2, a processor 3, and a computer program stored in the memory 2 and executable on the processor 3, wherein the processor 3 implements the steps in the first embodiment when executing the computer program.
In summary, according to the method and terminal for restoring the linear gradual change of the background title shadow in the PPTX, the node content in the XML file is conveniently analyzed by the zlib, RAPIDxml tool to obtain the linear gradual change effect data of the background title shadow set in the slide, and all files representing the contents of the slide page in the XML file are traversed.
The foregoing description is only illustrative of the present invention and is not intended to limit the scope of the invention, and all equivalent changes made by the specification and drawings of the present invention, or direct or indirect application in the relevant art, are included in the scope of the present invention.
Claims (4)
1. A method for restoring linear gradual changes of background headline shadows in PPTX, comprising the steps of:
s1, reading an XML file in a PPTX compressed format file;
s2, traversing node contents in the XML file, and determining a slide set by a background title shadow linear gradual change effect;
s3, analyzing the page number of the slide according to the slide set by the linear gradual change effect of the background title shadow and the gradual change color information of the corresponding title and the position of the title;
s4, generating a background picture with the same linear gradient effect of the corresponding background title shadow according to the page number of the slide and the gradient color information of the corresponding title and the position of the title;
the step S2 includes:
traversing all files representing slide page content under the XML file, respectively judging whether a node representing the linear gradual change effect of setting background title shadows exists under each slide page content file, if so, executing the step S3, and if not, not processing;
the step S3 includes:
analyzing the child node under the node for representing the linear gradual change effect of setting background title shadows, and acquiring gradual change color information of the title under the current slide and position information of the title;
acquiring the page number of the current slide, and storing the page number of the slide, the gradual change color information of the corresponding title and the position of the title in an array in a JSON data format;
the step S4 includes:
and creating canvas with the same proportion as the slide by using a linear gradual change painting brush in a drawing library according to the page number of the transferred slide and the gradual change color information of the corresponding title and the position of the title, and carrying out gradual change drawing of five areas to generate a background picture with the same linear gradual change effect of the shadow of the background title corresponding to the slide.
2. The method for reducing linear gradation of background headlines in PPTX according to claim 1, wherein said performing gradation drawing of five regions in step S4 comprises:
and drawing the shapes of the five areas in the canvas by utilizing the functions of drawing polygons and drawing rectangles.
3. A terminal for restoring linear gradation of background headline shadows in PPTX, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the following steps when executing the computer program:
s1, reading an XML file in a PPTX compressed format file;
s2, traversing node contents in the XML file, and determining a slide set by a background title shadow linear gradual change effect;
s3, analyzing the page number of the slide according to the slide set by the linear gradual change effect of the background title shadow and the gradual change color information of the corresponding title and the position of the title;
s4, generating a background picture with the same linear gradient effect of the corresponding background title shadow according to the page number of the slide and the gradient color information of the corresponding title and the position of the title;
the step S2 includes:
traversing all files representing slide page content under the XML file, respectively judging whether a node representing the linear gradual change effect of setting background title shadows exists under each slide page content file, if so, executing the step S3, and if not, not processing;
the step S3 includes:
analyzing the child node under the node for representing the linear gradual change effect of setting background title shadows, and acquiring gradual change color information of the title under the current slide and position information of the title;
acquiring the page number of the current slide, and storing the page number of the slide, the gradual change color information of the corresponding title and the position of the title in an array in a JSON data format;
the step S4 includes:
and creating canvas with the same proportion as the slide by using a linear gradual change painting brush in a drawing library according to the page number of the transferred slide and the gradual change color information of the corresponding title and the position of the title, and carrying out gradual change drawing of five areas to generate a background picture with the same linear gradual change effect of the shadow of the background title corresponding to the slide.
4. A terminal for restoring linear gradation of background headlines in PPTX as claimed in claim 3, wherein said performing gradation drawing of five regions in step S4 comprises:
and drawing the shapes of the five areas in the canvas by utilizing the functions of drawing polygons and drawing rectangles.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911321691.4A CN111192336B (en) | 2019-12-20 | 2019-12-20 | Method and terminal for restoring linear gradual change of background title shadows in PPTX |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911321691.4A CN111192336B (en) | 2019-12-20 | 2019-12-20 | Method and terminal for restoring linear gradual change of background title shadows in PPTX |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111192336A CN111192336A (en) | 2020-05-22 |
CN111192336B true CN111192336B (en) | 2023-04-28 |
Family
ID=70707444
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911321691.4A Active CN111192336B (en) | 2019-12-20 | 2019-12-20 | Method and terminal for restoring linear gradual change of background title shadows in PPTX |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111192336B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113822022A (en) * | 2020-06-18 | 2021-12-21 | 苏州谦问万答吧教育科技有限公司 | PPT (Power Point) auditing processing method, device, equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103823676A (en) * | 2014-02-14 | 2014-05-28 | 珠海市君天电子科技有限公司 | Display control method, display control device and client side |
CN105022749A (en) * | 2014-04-28 | 2015-11-04 | 上海未达数码科技有限公司 | Document presentation realization method based on Android platform |
CN109634575A (en) * | 2018-12-24 | 2019-04-16 | 安徽经邦软件技术有限公司 | Intelligence generates PPT analysis report method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10190792B2 (en) * | 2016-04-27 | 2019-01-29 | Crestron Electronics, Inc. | Three-dimensional building management system visualization |
-
2019
- 2019-12-20 CN CN201911321691.4A patent/CN111192336B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103823676A (en) * | 2014-02-14 | 2014-05-28 | 珠海市君天电子科技有限公司 | Display control method, display control device and client side |
CN105022749A (en) * | 2014-04-28 | 2015-11-04 | 上海未达数码科技有限公司 | Document presentation realization method based on Android platform |
CN109634575A (en) * | 2018-12-24 | 2019-04-16 | 安徽经邦软件技术有限公司 | Intelligence generates PPT analysis report method |
Non-Patent Citations (1)
Title |
---|
基于B/S结构的多终端交互式幻灯片演示系统;曾柏羲 等;《现代电子技术》;20180207;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN111192336A (en) | 2020-05-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20070171222A1 (en) | Application-independent method for capturing three-dimensional model data and structure for viewing and manipulation | |
JP6102122B2 (en) | Image processing apparatus and method, and program | |
CN110853117B (en) | Chart drawing method, device, equipment and storage medium | |
US20150170384A1 (en) | Apparatus and method for creating drawing data superimposing grouped data on a screen | |
CN115439609B (en) | Three-dimensional model rendering method, system, equipment and medium based on map service | |
US6853374B2 (en) | Image space display method and apparatus | |
CN111192336B (en) | Method and terminal for restoring linear gradual change of background title shadows in PPTX | |
US7027071B2 (en) | Selecting elements from an electronic document | |
US10403040B2 (en) | Vector graphics rendering techniques | |
CN106776994B (en) | Application method and system of engineering symbols in engineering report forms and web pages | |
CN116245052A (en) | Drawing migration method, device, equipment and storage medium | |
CN114494024A (en) | Image rendering method, device and equipment and storage medium | |
CN110782504A (en) | Curve determination method, device, computer readable storage medium and equipment | |
US20220180597A1 (en) | Image processing apparatus, image processing method, and program | |
CN112416340A (en) | Webpage generation method and system based on sketch | |
CN109671156A (en) | Threedimensional model loading method and device | |
US20220111515A1 (en) | Method and Apparatus for Managing Robot Program | |
CN116304189A (en) | Image extraction method in excel file and electronic equipment | |
Mateo et al. | Hierarchical, Dense and Dynamic 3D Reconstruction Based on VDB Data Structure for Robotic Manipulation Tasks | |
CN115375812A (en) | CAD data rendering method and device, electronic equipment and storage medium | |
CN115691772A (en) | Operation visualization system and corresponding computer device and storage medium | |
CN114065666A (en) | Collaborative simulation analysis method for magnetic liquid sealing pressure resistance | |
CN111681317B (en) | Data processing method and device, electronic equipment and storage medium | |
CN109884703B (en) | Color plane attribute graph digitalization method based on HSV color model | |
CN112115680A (en) | Font splitting method and device, computer equipment and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |