CN109242929B - Conversion method, device, storage medium and equipment of path coordinate graph - Google Patents

Conversion method, device, storage medium and equipment of path coordinate graph Download PDF

Info

Publication number
CN109242929B
CN109242929B CN201810936965.XA CN201810936965A CN109242929B CN 109242929 B CN109242929 B CN 109242929B CN 201810936965 A CN201810936965 A CN 201810936965A CN 109242929 B CN109242929 B CN 109242929B
Authority
CN
China
Prior art keywords
coordinate
drawing command
target
conversion
command
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
CN201810936965.XA
Other languages
Chinese (zh)
Other versions
CN109242929A (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.)
Neusoft Corp
Original Assignee
Neusoft Corp
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 Neusoft Corp filed Critical Neusoft Corp
Priority to CN201810936965.XA priority Critical patent/CN109242929B/en
Publication of CN109242929A publication Critical patent/CN109242929A/en
Application granted granted Critical
Publication of CN109242929B publication Critical patent/CN109242929B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/203Drawing of straight lines or curves

Abstract

The present disclosure relates to a method, an apparatus, a storage medium, and a device for converting a path coordinate graph, the method including: decomposing a drawing path of a first graph to obtain a plurality of drawing commands, wherein each drawing command comprises an operation identifier and one or more groups of operation coordinates, and the operation identifier is used for indicating an operation mode of the drawing command and an operation type of the operation mode; according to the conversion parameter, the initial coordinate for drawing the first graph, the conversion function determined according to the operation identifier in each drawing command and the operation coordinate in each drawing command, sequentially converting the drawing commands into a plurality of target drawing commands which accord with the conversion parameter; and drawing the converted target graph according to the regenerated target drawing path. Each drawing command of the graph can be adjusted through the conversion function, so that the position and the size of the graph are changed, the application range of adjusting the position and the size of the path coordinate graph is expanded, and the adjusting difficulty is reduced.

Description

Conversion method, device, storage medium and equipment of path coordinate graph
Technical Field
The present disclosure relates to the field of drawing path languages, and in particular, to a method, an apparatus, a storage medium, and a device for converting a path coordinate graph.
Background
SVG (Scalable Vector Graphics) is a graphic format for describing two-dimensional Vector Graphics based on an extensible Markup Language, and is embedded in an HTML (HyperText Markup Language) page to be used as a tag. The most important advantage is that the picture is not distorted when being enlarged or reduced, and the method is widely used in front-end development (for example, various icons in a webpage). In addition, due to the good function of supporting geometric paths (geometry strings), autonomous drawing is facilitated, and the method is widely applied to a plurality of drawing plugins, such as GoJS (geometry graphics) drawing plugins. In the development of a power system, based on research and development and project requirements, graphics are drawn through geometry strings of GoJS, and the essence of the graphics is the drawing path of SVG. In the related art, a graphic is generally drawn using a path character string including an operation manner and operation coordinate values as a drawing path. In the drawing process, the problem that the displayed graph does not start from the zero point often occurs, and a large area is blank after the graph is selected, and at this time, the position and the size of the graph need to be adjusted. The traditional scheme for adjusting the position and the size of the graph mostly comes from the attributes of the HTML tag, and cannot be used in the plug-in for applying SVG drawing.
Disclosure of Invention
To overcome the problems in the related art, it is an object of the present disclosure to provide a method, apparatus, storage medium, and device for converting a path coordinate graph.
In order to achieve the above object, according to a first aspect of embodiments of the present disclosure, there is provided a method for converting a path coordinate graph, the method including:
decomposing a drawing path of a first graph to obtain a plurality of drawing commands, wherein each drawing command comprises an operation identifier and one or more groups of operation coordinates, and the operation identifier is used for indicating an operation mode of the drawing command and an operation type of the operation mode;
sequentially converting the drawing commands into a plurality of target drawing commands which accord with the conversion parameters according to the conversion parameters, a first start coordinate for drawing the first graph, a target conversion function and an operation coordinate in each drawing command, wherein the conversion parameters comprise a preset target start coordinate and a preset scaling ratio related to the conversion of the first graph, the target conversion function is a conversion function determined according to an operation mode and an operation type indicated by an operation identifier in each drawing command, and the operation type comprises a relative coordinate operation and an absolute coordinate operation;
and drawing the converted target graph according to the target drawing path generated by the plurality of target drawing commands.
Optionally, the sequentially converting the drawing commands into a plurality of target drawing commands meeting the conversion parameter according to the conversion parameter, the first start coordinate for drawing the first graph, the target conversion function, and the operation coordinate in each drawing command includes:
before the drawing commands in the drawing commands are converted, acquiring the target starting coordinate as the current absolute coordinate of the drawing vernier;
determining an operation mode and an operation type indicated by a first operation identification in a first drawing command, wherein the first drawing command is any drawing command in the plurality of drawing commands;
when the operation type of the first operation identifier is determined to be relative coordinate operation, converting the first drawing command into a target drawing command which accords with the conversion parameter according to the conversion parameter, the current absolute coordinate, the first operation coordinate and a first conversion function determined according to the operation mode and the operation type of the first operation identifier; alternatively, the first and second liquid crystal display panels may be,
when the operation type of the first operation identifier is determined to be absolute coordinate operation, converting the first drawing command into a target drawing command which accords with the conversion parameter according to the conversion parameter, the first start coordinate, a first operation coordinate in the first drawing command and a second conversion function determined according to the operation mode and the operation type indicated by the first operation identifier;
after the first drawing command is converted into the target drawing command, acquiring a current cursor coordinate as a current absolute coordinate when a next drawing command after the first drawing command is converted, wherein the current cursor coordinate is an absolute coordinate of a position where a drawing cursor is located after drawing operation corresponding to the target drawing command is completed;
and taking the next drawing command as the first drawing command, repeatedly executing the operation mode and the operation type indicated by the first operation identifier in the first drawing command, obtaining the current cursor coordinate after the first drawing command is converted into the target drawing command, and taking the current cursor coordinate as the current absolute coordinate when the next drawing command after the first drawing command is converted, until the plurality of drawing commands are converted, so as to obtain the plurality of target drawing commands.
Optionally, when it is determined that the operation type of the first operation identifier is a relative coordinate operation, converting the first drawing command into a target drawing command meeting the conversion parameter according to the conversion parameter, the current absolute coordinate, the first operation coordinate, and a first conversion function determined according to the operation manner and the operation type of the first operation identifier, includes:
taking the coordinate value in the first operation coordinate, the scaling in the conversion parameter and the coordinate value in the current absolute coordinate as the input of the first conversion function to obtain a second operation coordinate output by the first conversion function;
converting the identification type of the first operation identification into absolute coordinate operation as a second operation identification;
and acquiring the target drawing command by combining the second operation coordinate and the second operation identifier.
Optionally, when it is determined that the operation type of the first operation identifier is an absolute coordinate operation, converting the first drawing command into a target drawing command meeting the conversion parameter according to the conversion parameter, the first start coordinate, a first operation coordinate in the first drawing command, and a second conversion function determined according to the operation manner and the operation type indicated by the first operation identifier, where the conversion parameter includes:
taking a coordinate value in the first operation coordinate, a coordinate value in a target initial coordinate in the conversion parameter and a scaling ratio as the input of the second conversion function to obtain a third operation coordinate output by the first conversion function;
and acquiring the target drawing command by combining the third operation coordinate and the first operation identifier.
Optionally, the decomposing the drawing path of the first graph to obtain a plurality of drawing commands includes:
acquiring a drawing path corresponding to the first graph;
and decomposing the drawing path into the plurality of drawing commands through a preset regular expression decomposition function for analyzing the drawing path.
According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for converting a path coordinate graph, the apparatus including:
the system comprises a path decomposition module, a path analysis module and a drawing processing module, wherein the path decomposition module is used for decomposing a drawing path of a first graph to obtain a plurality of drawing commands, the drawing commands comprise operation identifiers and one or more groups of operation coordinates, and the operation identifiers are used for indicating operation modes of the drawing commands and operation types of the operation modes;
the command conversion module is used for sequentially converting the drawing commands into a plurality of target drawing commands which accord with the conversion parameters according to conversion parameters, a first start coordinate for drawing the first graph, a target conversion function and an operation coordinate in each drawing command, wherein the conversion parameters comprise a preset target start coordinate and a preset scaling ratio which are involved in the conversion of the first graph, the target conversion function is a conversion function which is determined according to an operation mode and an operation type which are indicated by an operation identifier in each drawing command, and the operation type comprises a relative coordinate operation and an absolute coordinate operation;
and the graph drawing module is used for drawing the converted target graph according to the target drawing path generated by the plurality of target drawing commands.
Optionally, the command conversion module includes:
the coordinate acquisition submodule is used for acquiring the target starting coordinate as the current absolute coordinate of the drawing vernier before converting the drawing command in the drawing commands;
the identification determination submodule is used for determining an operation mode and an operation type indicated by a first operation identification in a first drawing command, wherein the first drawing command is any drawing command in the plurality of drawing commands;
a first command conversion sub-module, configured to, when it is determined that the operation type of the first operation identifier is a relative coordinate operation, convert the first drawing command into a target drawing command that meets the conversion parameter according to the conversion parameter, the current absolute coordinate, the first operation coordinate, and a first conversion function determined according to the operation mode and the operation type of the first operation identifier; alternatively, the first and second electrodes may be,
a second command conversion sub-module, configured to, when it is determined that the operation type of the first operation identifier is an absolute coordinate operation, convert the first drawing command into a target drawing command that meets the conversion parameter according to the conversion parameter, the first start coordinate, the first operation coordinate in the first drawing command, and a second conversion function determined according to the operation mode and the operation type indicated by the first operation identifier;
a coordinate updating submodule, configured to obtain a current cursor coordinate after the first drawing command is converted into the target drawing command, where the current cursor coordinate is used as a current absolute coordinate when a next drawing command after the first drawing command is converted, and the current cursor coordinate is an absolute coordinate of a position where a drawing cursor is located after a drawing operation corresponding to the target drawing command is completed;
and the cyclic execution sub-module is used for repeatedly executing the next drawing command as the first drawing command, determining the operation mode and the operation type indicated by the first operation identifier in the first drawing command, acquiring the current cursor coordinate after the first drawing command is converted into the target drawing command, and acquiring the current cursor coordinate as the current absolute coordinate when the next drawing command after the first drawing command is converted until the plurality of drawing commands are converted so as to acquire the plurality of target drawing commands.
Optionally, the first command conversion sub-module is configured to:
taking the coordinate value in the first operation coordinate, the scaling in the conversion parameter and the coordinate value in the current absolute coordinate as the input of the first conversion function to obtain a second operation coordinate output by the first conversion function;
converting the identification type of the first operation identification into absolute coordinate operation as a second operation identification;
and acquiring the target drawing command by combining the second operation coordinate and the second operation identifier.
Optionally, the second command conversion sub-module is configured to:
taking a coordinate value in the first operation coordinate, a coordinate value in a target initial coordinate in the conversion parameter and a scaling ratio as the input of the second conversion function to obtain a third operation coordinate output by the first conversion function;
and acquiring the target drawing command by combining the third operation coordinate and the first operation identifier.
Optionally, the path decomposition module includes:
the path obtaining sub-module is used for obtaining a drawing path corresponding to the first graph;
and the path decomposition submodule is used for decomposing the drawing path into the plurality of drawing commands through a preset regular expression decomposition function for analyzing the drawing path.
According to a third aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium on which a computer program is stored, the computer program, when executed by a processor, implementing the steps of the method for converting a path coordinate graph provided by the first aspect of the embodiments of the present disclosure.
According to a fourth aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a memory having a computer program stored thereon;
a processor, configured to execute the computer program in the memory, so as to implement the steps of the method for converting a path coordinate graph provided in the first aspect of the embodiment of the present disclosure.
By the technical scheme, the drawing path of the first graph can be decomposed to obtain a plurality of drawing commands, each drawing command comprises an operation identifier and one or more groups of operation coordinates, and the operation identifier is used for indicating the operation mode of the drawing command and the operation type of the operation mode; sequentially converting the drawing commands into a plurality of target drawing commands which accord with the conversion parameters according to the conversion parameters, a first start coordinate for drawing the first graph, a target conversion function and an operation coordinate in each drawing command, wherein the conversion parameters comprise a preset target start coordinate and a preset scaling related to the conversion of the first graph, the target conversion function is a conversion function determined according to an operation mode and an operation type indicated by an operation identifier in each drawing command, and the operation type comprises a relative coordinate operation and an absolute coordinate operation; and drawing the converted target graph according to the target drawing path generated by the plurality of target drawing commands. Each drawing command of the graph can be adjusted through the conversion function, so that the position and the size of the graph are changed, the application range of adjusting the position and the size of the path coordinate graph is expanded, and the adjusting difficulty is reduced.
Additional features and advantages of the present disclosure will be set forth in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure, but do not constitute a limitation of the disclosure. In the drawings:
FIG. 1 is a flow diagram illustrating a method for transformation of a path coordinate graph in accordance with an exemplary embodiment;
FIG. 2 is a flow chart illustrating a method of converting drawing commands according to the embodiment shown in FIG. 1;
FIG. 3 is a flow diagram illustrating a method for coordinate transformation of drawing commands according to the embodiment shown in FIG. 2;
FIG. 4 is a flow diagram illustrating another method of coordinate conversion of drawing commands according to the embodiment shown in FIG. 2;
FIG. 5a is a flow chart of a method for decomposing a drawing path according to the embodiment shown in FIG. 1;
FIGS. 5b and 5c are schematic diagrams illustrating a method of transformation of a path coordinate graph in accordance with an exemplary embodiment;
FIG. 6 is a block diagram illustrating a conversion apparatus for a path coordinate graph in accordance with an exemplary embodiment;
FIG. 7 is a block diagram of a command translation module according to the embodiment shown in FIG. 6;
FIG. 8 is a block diagram of a path decomposition module according to the embodiment shown in FIG. 6;
FIG. 9 is a block diagram of an electronic device shown in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the disclosure, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a method of converting a path coordinate graph, as shown in fig. 1, according to an exemplary embodiment, the method including:
step 101, decomposing a drawing path of a first graph to obtain a plurality of drawing commands.
The drawing command comprises an operation identifier and one or more groups of operation coordinates, wherein the operation identifier is used for indicating an operation mode of the drawing command and an operation type of the operation mode.
Illustratively, the drawing path is a drawing path for drawing SVG (Scalable Vector Graphics). The drawing path is composed of a string of characters, which may be represented as "M100L 0-5L 30 z M100". Wherein, "M", "L (lower case L)", "L", and "z" are operation identifiers, different letters are used to indicate different operation modes, and the upper and lower cases of the letters are used to indicate the operation types of the operation modes. The number after the operation identifier, for example, "100", is an operation coordinate, and the operation identifier and the operation coordinate, for example, "M100", constitute a drawing command. For example, the drawing command "M100" indicates an operation of moving the drawing cursor from the start point to the position where the coordinates (100 ) are located. It should be noted that, according to different operation manners, the operation coordinate may include 0 to n sets of coordinates, for example, the operation coordinate corresponding to the operation identifier "C" includes 3 sets of coordinates, and the operation identifier "z" does not need to correspond to the operation coordinate. The operation identifiers include but are not limited to:
m = moveto, a starting point for moving a drawing cursor;
l = lineto, for drawing a straight line;
z = close path, for closing the path, i.e. connecting the starting point and the end point of the drawing cursor;
h = horizontal lineto plot horizontal line;
v = vertical lineto draw a vertical line;
c = curveto for drawing a cubic bezier curve;
s = smooth curveto, also used to plot cubic bezier curves, but smoother than "C";
q = quadratic Belzier curve for drawing a quadratic bezier curve;
t = smooth quadratic belziercurvato, also used to plot quadratic bezier curves, but smoother than "Q";
a = oblique Arc for drawing an Arc;
it will be appreciated that all of the above designations can be in lower case or upper case, where upper case indicates absolute positioning (absolute coordinates) and lower case indicates relative positioning (relative coordinates).
For example, in step 101, the drawing path "M100L 0-5L 30 0 z M100" of the first graphic may be decomposed into five drawing commands "M100", "L0-5", "L30 0", "z", "M100".
Step 102, sequentially converting the drawing commands into a plurality of target drawing commands conforming to the conversion parameters according to the conversion parameters, the first start coordinate for drawing the first graph, the target conversion function and the operation coordinate in each drawing command.
The conversion parameter includes a preset target initial coordinate and a preset scaling ratio, the target initial coordinate is a start point coordinate set according to an adjustment requirement of a user on the first graph when the first graph is redrawn, the scaling ratio can be a ratio value at which the user needs to enlarge or reduce the first graph, the target conversion function is a conversion function determined according to an operation mode and an operation type indicated by an operation identifier in each drawing command, and the operation type includes a relative coordinate operation and an absolute coordinate operation.
Still with the drawing path "M100L 0-5L 30 z 0 z M100" described above, after acquiring the 5 drawing commands in the drawing path, the 5 drawing commands need to be converted in sequence respectively. In the conversion process, firstly, a corresponding target conversion function is determined according to different operation identifiers. It should be noted that different letters indicate different operation modes, and an upper case letter indicates that the operation type of the operation mode is absolute coordinate operation, and a lower case letter indicates that the operation type of the operation mode is relative coordinate operation. For example, "L" and its lower case form "L" both indicate a straight line drawn to a certain coordinate point, "L" indicates a straight line drawn to a relative coordinate point, and "L" indicates a straight line drawn to an absolute coordinate point. For example, a straight line from the current coordinate point to the relative coordinate point "0, -5" of the current coordinate can be drawn by "l 0-5" in the above-described drawing path.
Illustratively, after the target conversion function is determined according to the operation identifier, variables required by the target conversion function, such as a conversion parameter, a first start coordinate for drawing the first graphic, and an operation coordinate in each drawing command, are input to the target conversion function, and a new drawing command (i.e., a target drawing command) is output. Since the new drawing command is a drawing command for absolute coordinate operation, the target conversion function also has a function of converting a drawing command for relative coordinate operation into a drawing command for absolute coordinate operation.
Step 103, drawing the converted target graph according to the target drawing path generated by the plurality of target drawing commands.
For example, after the plurality of target drawing commands are generated, the target drawing commands are combined into a new drawing path (i.e. a target drawing path) according to the arrangement order of the original drawing commands, and the graphics are redrawn according to the target drawing path as the target graphics.
In summary, the present disclosure can decompose a drawing path of a first graph to obtain a plurality of drawing commands, where each drawing command includes an operation identifier and one or more sets of operation coordinates, and the operation identifier is used to indicate an operation manner of the drawing command and an operation type of the operation manner; sequentially converting the drawing commands into a plurality of target drawing commands which accord with the conversion parameters according to the conversion parameters, a first start coordinate for drawing the first graph, a target conversion function and an operation coordinate in each drawing command, wherein the conversion parameters comprise a preset target start coordinate and a preset scaling related to the conversion of the first graph, the target conversion function is a conversion function determined according to an operation mode and an operation type indicated by an operation identifier in each drawing command, and the operation type comprises a relative coordinate operation and an absolute coordinate operation; and drawing the converted target graph according to the target drawing path generated by the plurality of target drawing commands. Each drawing command of the graph can be adjusted through the conversion function, so that the position and the size of the graph are changed, the application range of adjusting the position and the size of the path coordinate graph is expanded, and the adjusting difficulty is reduced.
Fig. 2 is a flowchart of a drawing command conversion method according to the embodiment shown in fig. 1, and as shown in fig. 2, the step 102 may include:
step 1021, before the conversion of the drawing command in the plurality of drawing commands, the target start coordinate is obtained as the current absolute coordinate of the drawing cursor.
For example, as described above, in performing the conversion of the drawing command, it is necessary to convert the drawing command of the relative coordinate operation into the drawing command of the absolute coordinate operation. In this process, the relative coordinates in the drawing command need to be converted by the absolute coordinates of the position where the drawing cursor is located. Before the first drawing command is converted, that is, the current absolute coordinates are acquired for the first time, the target start coordinates related to the conversion of the first graphic (the target start coordinates are input by the user) need to be taken as the current absolute coordinates.
At step 1022, the operation mode and operation type indicated by the first operation identifier in the first drawing command are determined.
Wherein the first drawing command is any drawing command in the plurality of drawing commands.
For example, when the first drawing command is "l x y", it is known that the operation mode of the first drawing command is "l" operation and the operation type is relative coordinate operation, and the first drawing command is transformed through step 1023; alternatively, when the first drawing command is "L x y", it is known that the operation mode of the first drawing command is "L" operation and the operation type is absolute coordinate operation, and the first drawing command is converted through step 1024.
Step 1023, when the operation type of the first operation identifier is determined to be a relative coordinate operation, converting the first drawing command into a target drawing command conforming to the conversion parameter according to the conversion parameter, the current absolute coordinate, the first operation coordinate, and a first conversion function determined according to the operation mode and the operation type of the first operation identifier.
For example, when the first drawing command is "xy", the first conversion function may be expressed as:
new_x=currentAbs_X+x*scale,
new_y=currentAbs_Y+y*scale,
wherein (currentAbs _ X, currentAbs _ Y) are the current absolute coordinates, (X, Y) are the first operation coordinates, scale is the scaling in the transformation parameter, and (new _ X, new _ Y) are the transformed operation coordinates. As such, the target path command = L new _ xnew _ y can be determined by the first conversion function.
Step 1024, when the operation type of the first operation identifier is determined to be an absolute coordinate operation, converting the first drawing command into a target drawing command meeting the conversion parameter according to the conversion parameter, the first start coordinate, the first operation coordinate in the first drawing command, and a second conversion function determined according to the operation mode and the operation type indicated by the first operation identifier.
For example, when the first drawing command is "l x y", the first conversion function may be expressed as:
new_x=new_X+(x-oldBP_X)*scale,
new_y=new_Y+(y-oldBP_Y)*scale,
wherein, (oldBP _ X, oldBP _ Y) is the first start coordinate, (new _ X, new _ Y) is the target start coordinate in the transformation parameter, scale is the scaling ratio in the transformation parameter, and (new _ X, new _ Y) is the transformed operation coordinate. As such, the target path command = L new _ xnew _ y may be determined by the first conversion function.
In step 1025, after the first drawing command is converted into the target drawing command, the current cursor coordinate is obtained as the current absolute coordinate when the next drawing command after the first drawing command is converted.
The current cursor coordinate is an absolute coordinate of a position of the drawing cursor after the drawing operation corresponding to the target drawing command is completed.
For example, for the drawing command whose operation type is relative coordinate operation, it is required to use the parameters (currentAbs _ X, currentAbs _ Y), i.e. the current absolute coordinates, as the input of the corresponding first conversion function, and when the first drawing command is the first drawing command in the drawing path, as described in step 1021, the (new _ X, new _ Y) set by the user, i.e. the target start coordinates in the conversion parameters, is directly used as the current absolute coordinates to determine the current position of the drawing cursor. Then, when each drawing command after the first drawing command is converted, the absolute coordinate of the current position of the cursor after the last (converted) drawing command is acquired and used in the first conversion function as the current absolute coordinate.
It should be noted that, as can be seen from the specific formulas of the first conversion function and the second conversion function corresponding to the above steps 1023 and 1024, the parameters (currentAbs _ X, currentAbs _ Y) are not required for each conversion function. Nevertheless, in the embodiment of the present disclosure, the parameter (currentAbs _ X, currentAbs _ Y) is still obtained after each drawing command transition to cope with the situation that the two operation types alternately appear in a certain data path.
In addition, different conversion modes also correspond to different conversion functions, for example, an operation identifier "z" is used for directly connecting the starting point and the end point of the drawing vernier to form a closed graph. However, as far as the operation identifier itself is concerned, in a drawing command, no operation coordinate is needed to be corresponded to, and no change is caused by the target start coordinate and the scaling which are not used, so that no matter "Z" or "Z", the corresponding conversion function is Z = Z, or Z = Z.
Step 1026, taking the next drawing command as the first drawing command, and repeatedly executing the operation manner and the operation type indicated by the first operation identifier in the first drawing command, until the current cursor coordinate is obtained after the first drawing command is converted into the target drawing command, and the current cursor coordinate is taken as the current absolute coordinate when the next drawing command after the first drawing command is converted, until the conversion of the plurality of drawing commands is completed, so as to obtain the plurality of target drawing commands.
For example, in addition to performing step 1021 only when the first drawing command is converted, steps 1022-1025 need to be repeatedly performed until all of the drawing commands are converted into new target drawing commands in the subsequent conversion process.
Fig. 3 is a flowchart of a drawing command coordinate transformation method according to the embodiment shown in fig. 2, and as shown in fig. 3, the step 1023 may include:
step 10231, the coordinate value in the first operation coordinate, the scaling ratio in the conversion parameter and the coordinate value in the current absolute coordinate are used as the input of the first conversion function, so as to obtain the second operation coordinate output by the first conversion function.
Step 10232, the identification type of the first operation identification is converted into an absolute coordinate operation as a second operation identification.
And 10233, acquiring the target drawing command by combining the second operation coordinate and the second operation identifier.
For example, after determining the operation mode and operation type indicated by the first operation identifier in the first drawing command through step 1022, in steps 1023 and 1024, the corresponding parameters are used as the corresponding conversion function to generate the converted operation coordinates, and then the converted operation coordinates and the operation identifier are combined together to form a new target drawing command. In contrast, in step 1023, the operation identifier of the relative coordinate operation type originally in the drawing command needs to be changed to the operation identifier of the absolute coordinate operation type. Taking a first drawing command "l 10" as an example, the coordinate values (10, 10) in the first operation coordinate, the scaling ratio 3 and the coordinate values (1, 1) in the current absolute coordinate (when the first drawing command is the first drawing command, the coordinate values are the coordinate values in the target initial coordinate in the conversion parameter; when the first drawing command is the first drawing command, the coordinate values are the coordinate values of the position where the drawing cursor stays after the last (converted) drawing command is executed) are taken as the input of the first conversion function, and as a result:
new_x=1+10*3=31,
new_y=1+10*3=31,
meanwhile, the first operation identifier is converted from "L" to "L", and the target drawing command is "L31".
Fig. 4 is a flowchart of another drawing command coordinate transformation method according to the embodiment shown in fig. 2, and as shown in fig. 4, the step 1024 may include:
step 10241, using the coordinate value in the first operation coordinate, the coordinate value in the target initial coordinate in the conversion parameter, and the scaling ratio as the input of the second conversion function, so as to obtain the third operation coordinate output by the first conversion function.
Step 10242, combine the third operation coordinate and the first operation identifier to obtain the target drawing command.
Taking the first drawing command "L10" as an example, the coordinate values (10, 10) in the first operation coordinate, the coordinate values (1, 1) in the target start coordinate, the scaling 3 and the coordinate values (2, 2) in the first start coordinate are taken as the inputs of the second transfer function, and the result is:
new_x=0+(10-2)*3=24,
new_y=0+(10-2)*3=24,
the target drawing command is "L24".
Fig. 5a is a flowchart of a mapping path decomposition method according to the embodiment shown in fig. 1, and as shown in fig. 5a, the step 101 may include:
in step 1011, a drawing path corresponding to the first graph is obtained.
Step 1012, decomposing the drawing path into the drawing commands by a predetermined regular expression decomposition function for analyzing the drawing path.
Illustratively, the regular expression decomposition function is a function of a general regular expression for cutting a continuous string into a plurality of segments and extracting each segment. In the embodiment of the present disclosure, the regular expression decomposition function cuts the drawing command into a plurality of drawing commands according to the operation identifier, and then extracts each drawing command, so as to perform the subsequent drawing command conversion step.
Fig. 5b and 5c are schematic diagrams illustrating a method of transforming a path coordinate graph according to an exemplary embodiment, wherein fig. 5b illustrates a graph a and a check box a, it can be seen that the graph a is too low in position and small in size, and the check box a checks a large blank area that is not necessarily displayed. FIG. 5c shows the graph B and checkbox B, which are obtained by converting the graph A, and whose size, position, and checkbox are appropriate.
As shown, the drawing path A of graph A may be represented as "M4 6L 6L-1-1 z". The conversion method of the path coordinate graph comprises the following steps: the drawing path a is decomposed into five drawing commands of "M4", "L6", "L-1-1", and "z", and the target start coordinate in the conversion parameter is set to (0, 2), and the scaling ratio is set to 2. Thereafter, first, regarding the drawing command "M4", the coordinate values (4, 6) in the operation coordinate, the coordinate values (0, 2) in the target start coordinate, the scaling ratio 2 and the coordinate values (4, 6) in the first start coordinate are used as the inputs of the second conversion function, and as a result:
new_x=0+(4-4)*2=0,
new_y=2+(6-6)*2=2,
the new drawing command is "M0 2"; next, regarding the drawing command "L6", the coordinate values (6, 6) in the operation coordinates, the coordinate values (0, 2) in the target start coordinates, the scaling ratio 2 and the coordinate values (4, 6) in the first start coordinates are used as the inputs of the second conversion function, and as a result:
new_x=0+(6-4)*2=4,
new_y=2+(6-6)*2=2,
the new drawing command is "L4"; then, regarding the drawing command "l-1-1", the coordinate value (-1, -1) in the operation coordinate, the scaling ratio 2 and the coordinate value (4, 2) in the current absolute coordinate are used as the input of the first transfer function, and the result is:
new_x=4+(-1)*2=2,
new_y=2+(-1)*2=0,
meanwhile, the first operation identifier is converted from "L" to "L", and the target drawing command is "L2 0". To this end, the drawing path of the graph a is converted into "M0L 2L 4L 2 z", and by this drawing path, the graph B shown in fig. 5c described above can be drawn in a proper position and a large size. Meanwhile, the checkbox B perfectly fits the graph B, because the checkbox of the graph is determined by the (0, 0) point and the edge of the graph.
In summary, the present disclosure can decompose a drawing path of a first graphic to obtain a plurality of drawing commands, where each drawing command includes an operation identifier and one or more sets of operation coordinates, and the operation identifier is used to indicate an operation manner of the drawing command and an operation type of the operation manner; sequentially converting the drawing commands into a plurality of target drawing commands which accord with the conversion parameters according to the conversion parameters, a first start coordinate for drawing the first graph, a target conversion function and an operation coordinate in each drawing command, wherein the conversion parameters comprise a preset target start coordinate and a preset scaling related to the conversion of the first graph, the target conversion function is a conversion function determined according to an operation mode and an operation type indicated by an operation identifier in each drawing command, and the operation type comprises a relative coordinate operation and an absolute coordinate operation; and drawing the converted target graph according to the target drawing path generated by the plurality of target drawing commands. The operation mode and the coordinate value corresponding to each drawing command of the graph can be adjusted through different conversion functions, so that the position and the size of the graph are changed, the application range of adjusting the position and the size of the path coordinate graph is expanded, and the adjusting difficulty is reduced.
Fig. 6 is a block diagram illustrating a path coordinate graph transformation apparatus according to an exemplary embodiment, and as shown in fig. 6, the apparatus 600 includes:
a path decomposition module 610, configured to decompose a drawing path of a first graphic to obtain a plurality of drawing commands, where each drawing command includes an operation identifier and one or more sets of operation coordinates, and the operation identifier is used to indicate an operation manner of the drawing command and an operation type of the operation manner;
a command conversion module 620, configured to sequentially convert, according to a conversion parameter, a first start coordinate for drawing the first graph, a target conversion function, and an operation coordinate in each of the drawing commands, the drawing commands into a plurality of target drawing commands that meet the conversion parameter, where the conversion parameter includes a preset target start coordinate and a preset scaling ratio involved in converting the first graph, the target conversion function is a conversion function determined according to an operation manner and an operation type indicated by an operation identifier in each of the drawing commands, and the operation type includes a relative coordinate operation and an absolute coordinate operation;
the graph drawing module 630 is configured to draw the converted target graph according to the target drawing path generated by the plurality of target drawing commands.
Fig. 7 is a block diagram of a command conversion module according to the embodiment shown in fig. 6, and as shown in fig. 7, the command conversion module 620 includes:
a coordinate obtaining sub-module 621, configured to obtain the target start coordinate as a current absolute coordinate of the drawing cursor before a drawing command in the plurality of drawing commands is converted;
an identifier determining sub-module 622, configured to determine an operation manner and an operation type indicated by a first operation identifier in a first drawing command, where the first drawing command is any drawing command in the plurality of drawing commands;
a first command conversion sub-module 623, configured to, when it is determined that the operation type of the first operation identifier is a relative coordinate operation, convert the first drawing command into a target drawing command that meets the conversion parameter according to the conversion parameter, the current absolute coordinate, the first operation coordinate, and a first conversion function determined according to the operation manner and the operation type of the first operation identifier; alternatively, the first and second electrodes may be,
a second command conversion sub-module 624, configured to, when it is determined that the operation type of the first operation identifier is an absolute coordinate operation, convert the first drawing command into a target drawing command that conforms to the conversion parameter according to the conversion parameter, the first start coordinate, the first operation coordinate in the first drawing command, and a second conversion function determined according to the operation manner and the operation type indicated by the first operation identifier;
a coordinate updating submodule 625, configured to obtain, after the first drawing command is converted into the target drawing command, a current cursor coordinate as a current absolute coordinate when a next drawing command after the first drawing command is converted, where the current cursor coordinate is an absolute coordinate of a position where the drawing cursor is located after the drawing operation corresponding to the target drawing command is completed;
the loop execution sub-module 626 is configured to repeatedly execute the determined operation manner and operation type indicated by the first operation identifier in the first drawing command, with the next drawing command as the first drawing command, until the current cursor coordinate is obtained after the first drawing command is converted into the target drawing command, as the current absolute coordinate when the next drawing command after the first drawing command is converted, until the conversion of the drawing commands is completed, so as to obtain the target drawing commands.
Optionally, the first command conversion sub-module 623 is configured to:
taking the coordinate value in the first operation coordinate, the scaling in the conversion parameter and the coordinate value in the current absolute coordinate as the input of the first conversion function to obtain a second operation coordinate output by the first conversion function;
converting the identification type of the first operation identification into absolute coordinate operation as a second operation identification;
and combining the second operation coordinate and the second operation identifier to obtain the target drawing command.
Optionally, the second command conversion submodule 624 is configured to:
taking the coordinate value in the first operation coordinate, the coordinate value in the target initial coordinate in the conversion parameter and the scaling as the input of the second conversion function to obtain a third operation coordinate output by the first conversion function;
and acquiring the target drawing command by combining the third operation coordinate and the first operation identifier.
Fig. 8 is a block diagram of a path decomposition module according to the embodiment shown in fig. 6, and as shown in fig. 8, the path decomposition module 610 includes:
a path obtaining sub-module 611, configured to obtain a drawing path corresponding to the first graph;
the path decomposition sub-module 612 is configured to decompose the drawing path into the drawing commands through a predetermined regular expression decomposition function for analyzing the drawing path.
In summary, the present disclosure can decompose a drawing path of a first graph to obtain a plurality of drawing commands, where each drawing command includes an operation identifier and one or more sets of operation coordinates, and the operation identifier is used to indicate an operation manner of the drawing command and an operation type of the operation manner; sequentially converting the drawing commands into a plurality of target drawing commands which accord with the conversion parameters according to the conversion parameters, a first start coordinate for drawing the first graph, a target conversion function and an operation coordinate in each drawing command, wherein the conversion parameters comprise a preset target start coordinate and a preset scaling related to the conversion of the first graph, the target conversion function is a conversion function determined according to an operation mode and an operation type indicated by an operation identifier in each drawing command, and the operation type comprises a relative coordinate operation and an absolute coordinate operation; and drawing the converted target graph according to the target drawing path generated by the plurality of target drawing commands. The operation mode and the coordinate value corresponding to each drawing command of the graph can be adjusted through different conversion functions, so that the position and the size of the graph are changed, the application range of adjusting the position and the size of the path coordinate graph is expanded, and the adjusting difficulty is reduced.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 9 is a block diagram illustrating an electronic device 900 in accordance with an example embodiment. As shown in fig. 9, the electronic device 900 may include: a processor 901, a memory 902, multimedia components 903, input/output (I/O) interfaces 904, and communications components 905.
The processor 901 is configured to control the overall operation of the electronic device 900, so as to complete all or part of the steps in the above method for converting the path coordinate graph. The memory 902 is used to store various types of data to support operation of the electronic device 900, such as instructions for any application or method operating on the electronic device 900 and application-related data, such as contact data, transmitted and received messages, pictures, audio, video, and the like. The Memory 902 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically Erasable Programmable Read-Only Memory (EEPROM), erasable Programmable Read-Only Memory (EPROM), programmable Read-Only Memory (PROM), read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk or optical disk. The multimedia component 903 may include a screen and an audio component. Wherein the screen may be, for example, a touch screen and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may further be stored in the memory 902 or transmitted through the communication component 905. The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 904 provides an interface between the processor 901 and other interface modules, such as a keyboard, mouse, buttons, and the like. These buttons may be virtual buttons or physical buttons. The communication component 905 is used for wired or wireless communication between the electronic device 900 and other devices. Wireless Communication, such as Wi-Fi, bluetooth, near Field Communication (NFC), 2G, 3G, or 4G, or a combination of one or more of them, so that the corresponding Communication component 905 may include: wi-Fi module, bluetooth module, NFC module.
In an exemplary embodiment, the electronic Device 900 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above-mentioned method of converting the path coordinate pattern.
In another exemplary embodiment, a computer readable storage medium comprising program instructions, such as the memory 902 comprising program instructions, which are executable by the processor 901 of the electronic device 900 to perform the above-described method of converting a path coordinate graph is also provided.
Preferred embodiments of the present disclosure are described in detail above with reference to the accompanying drawings, however, the present disclosure is not limited to the specific details of the above embodiments, and other embodiments of the present disclosure may be easily conceived by those skilled in the art within the technical spirit of the present disclosure after considering the description and practicing the present disclosure, and all fall within the protection scope of the present disclosure.
It should be noted that the various features described in the above embodiments may be combined in any suitable manner without departing from the scope of the invention. Meanwhile, any combination can be made between various different embodiments of the disclosure, and the disclosure should be regarded as the disclosure of the disclosure as long as the combination does not depart from the idea of the disclosure. The present disclosure is not limited to the precise structures that have been described above, and the scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A method for converting a path coordinate graph, the method comprising:
decomposing a drawing path of a first graph to obtain a plurality of drawing commands, wherein each drawing command comprises an operation identifier and one or more groups of operation coordinates, and the operation identifier is used for indicating an operation mode of the drawing command and an operation type of the operation mode;
sequentially converting the drawing commands into a plurality of target drawing commands which accord with the conversion parameters according to the conversion parameters, a first start coordinate for drawing the first graph, a target conversion function and an operation coordinate in each drawing command, wherein the conversion parameters comprise a preset target start coordinate and a preset scaling ratio related to the conversion of the first graph, the target conversion function is a conversion function determined according to an operation mode and an operation type indicated by an operation identifier in each drawing command, and the operation type comprises a relative coordinate operation and an absolute coordinate operation;
drawing a converted target graph according to a target drawing path generated by the plurality of target drawing commands;
wherein the sequentially converting the plurality of drawing commands into a plurality of target drawing commands conforming to the conversion parameter according to the conversion parameter, the first start coordinate for drawing the first graph, the target conversion function, and the operation coordinate in each drawing command includes:
before a drawing command in the drawing commands is converted, acquiring the target starting coordinate as the current absolute coordinate of a drawing cursor;
determining an operation mode and an operation type indicated by a first operation identifier in a first drawing command, wherein the first drawing command is any drawing command in the plurality of drawing commands;
when the operation type of the first operation identifier is determined to be relative coordinate operation, converting the first drawing command into a target drawing command which accords with the conversion parameter according to the conversion parameter, the current absolute coordinate, a first operation coordinate in the first drawing command and a first conversion function determined according to the operation mode and the operation type of the first operation identifier; alternatively, the first and second electrodes may be,
when the operation type of the first operation identifier is determined to be absolute coordinate operation, converting the first drawing command into a target drawing command which accords with the conversion parameter according to the conversion parameter, the first start coordinate, the first operation coordinate in the first drawing command and a second conversion function determined according to the operation mode and the operation type indicated by the first operation identifier.
2. The method of claim 1, wherein said sequentially converting the plurality of drawing commands into a plurality of target drawing commands conforming to the conversion parameter according to the conversion parameter, a first start coordinate for drawing the first graphic, a target conversion function, and an operation coordinate in each of the drawing commands, further comprises:
after the first drawing command is converted into the target drawing command, acquiring a current cursor coordinate as a current absolute coordinate when a next drawing command after the first drawing command is converted, wherein the current cursor coordinate is an absolute coordinate of a position where a drawing cursor is located after drawing operation corresponding to the target drawing command is completed;
and taking the next drawing command as the first drawing command, and repeatedly executing the operation mode and the operation type indicated by the first operation identifier in the first drawing command, obtaining the current cursor coordinate after the first drawing command is converted into the target drawing command, and taking the current cursor coordinate as the current absolute coordinate when the next drawing command after the first drawing command is converted until the plurality of drawing commands are converted to obtain the plurality of target drawing commands.
3. The method according to claim 2, wherein when determining that the operation type of the first operation identifier is a relative coordinate operation, converting the first drawing command into a target drawing command conforming to the conversion parameter according to the conversion parameter, the current absolute coordinate, the first operation coordinate in the first drawing command, and a first conversion function determined according to the operation mode and the operation type of the first operation identifier comprises:
taking the coordinate value in the first operation coordinate, the scaling in the conversion parameter and the coordinate value in the current absolute coordinate as the input of the first conversion function to obtain a second operation coordinate output by the first conversion function;
converting the identification type of the first operation identification into absolute coordinate operation as a second operation identification;
and acquiring the target drawing command by combining the second operation coordinate and the second operation identifier.
4. The method according to claim 2, wherein when determining that the operation type of the first operation identifier is an absolute coordinate operation, converting the first drawing command into a target drawing command conforming to the conversion parameter according to the conversion parameter, the first start coordinate, a first operation coordinate in the first drawing command, and a second conversion function determined according to the operation mode and the operation type indicated by the first operation identifier, comprises:
taking a coordinate value in the first operation coordinate, a coordinate value in a target initial coordinate in the conversion parameter and a scaling ratio as the input of the second conversion function to obtain a third operation coordinate output by the first conversion function;
and acquiring the target drawing command by combining the third operation coordinate and the first operation identifier.
5. The method of claim 1, wherein decomposing the drawing path of the first graphic to obtain a plurality of drawing commands comprises:
acquiring a drawing path corresponding to the first graph;
and decomposing the drawing path into the plurality of drawing commands through a preset regular expression decomposition function for analyzing the drawing path.
6. An apparatus for converting a path coordinate graph, the apparatus comprising:
the path decomposition module is used for decomposing a drawing path of a first graph to obtain a plurality of drawing commands, wherein each drawing command comprises an operation identifier and one or more groups of operation coordinates, and the operation identifier is used for indicating an operation mode of the drawing command and an operation type of the operation mode;
the command conversion module is used for sequentially converting the drawing commands into a plurality of target drawing commands which accord with the conversion parameters according to conversion parameters, a first start coordinate for drawing the first graph, a target conversion function and an operation coordinate in each drawing command, wherein the conversion parameters comprise a preset target start coordinate and a preset scaling ratio which are involved in the conversion of the first graph, the target conversion function is a conversion function which is determined according to an operation mode and an operation type which are indicated by an operation identifier in each drawing command, and the operation type comprises a relative coordinate operation and an absolute coordinate operation;
the graph drawing module is used for drawing the converted target graph according to the target drawing path generated by the plurality of target drawing commands;
wherein, the command conversion module comprises:
the coordinate acquisition submodule is used for acquiring the target starting coordinate as the current absolute coordinate of the drawing vernier before converting the drawing command in the drawing commands;
an identifier determination submodule configured to determine an operation manner and an operation type indicated by a first operation identifier in a first drawing command, where the first drawing command is any one of the plurality of drawing commands;
a first command conversion sub-module, configured to, when it is determined that the operation type of the first operation identifier is a relative coordinate operation, convert the first drawing command into a target drawing command that meets the conversion parameter according to the conversion parameter, the current absolute coordinate, a first operation coordinate in the first drawing command, and a first conversion function determined according to the operation mode and the operation type of the first operation identifier; alternatively, the first and second electrodes may be,
and the second command conversion sub-module is used for converting the first drawing command into a target drawing command which accords with the conversion parameter according to the conversion parameter, the first initial coordinate, the first operation coordinate in the first drawing command and a second conversion function determined according to the operation mode and the operation type indicated by the first operation identifier when the operation type of the first operation identifier is determined to be absolute coordinate operation.
7. The apparatus of claim 6, wherein the command conversion module further comprises:
a coordinate updating submodule, configured to obtain a current cursor coordinate after the first drawing command is converted into the target drawing command, where the current cursor coordinate is used as a current absolute coordinate when a next drawing command after the first drawing command is converted, and the current cursor coordinate is an absolute coordinate of a position where a drawing cursor is located after a drawing operation corresponding to the target drawing command is completed;
and a loop execution submodule, configured to repeatedly execute the next drawing command as the first drawing command, and determine an operation manner and an operation type indicated by the first operation identifier in the first drawing command, and acquire the current cursor coordinate after the first drawing command is converted into the target drawing command, as the current absolute coordinate when the next drawing command after the first drawing command is converted, until the conversion of the plurality of drawing commands is completed, so as to acquire the plurality of target drawing commands.
8. The apparatus of claim 7, wherein the first command conversion sub-module is configured to:
taking the coordinate value in the first operation coordinate, the scaling in the conversion parameter and the coordinate value in the current absolute coordinate as the input of the first conversion function to obtain a second operation coordinate output by the first conversion function;
converting the identification type of the first operation identification into absolute coordinate operation as a second operation identification;
and acquiring the target drawing command by combining the second operation coordinate and the second operation identifier.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
10. An electronic device, comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to carry out the steps of the method of any one of claims 1 to 5.
CN201810936965.XA 2018-08-16 2018-08-16 Conversion method, device, storage medium and equipment of path coordinate graph Active CN109242929B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810936965.XA CN109242929B (en) 2018-08-16 2018-08-16 Conversion method, device, storage medium and equipment of path coordinate graph

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810936965.XA CN109242929B (en) 2018-08-16 2018-08-16 Conversion method, device, storage medium and equipment of path coordinate graph

Publications (2)

Publication Number Publication Date
CN109242929A CN109242929A (en) 2019-01-18
CN109242929B true CN109242929B (en) 2023-03-10

Family

ID=65070607

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810936965.XA Active CN109242929B (en) 2018-08-16 2018-08-16 Conversion method, device, storage medium and equipment of path coordinate graph

Country Status (1)

Country Link
CN (1) CN109242929B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109933264B (en) * 2019-03-19 2022-01-04 深圳市元征科技股份有限公司 Graphic data display method and device
CN109947339B (en) * 2019-03-28 2020-10-23 武汉轻工大学 Drawing method, device and equipment of parabolic cylinder and storage medium
CN116188616B (en) * 2023-03-27 2023-08-22 重庆中环建设有限公司 Drawing system and method for retaining wall section and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6456298B1 (en) * 1998-08-18 2002-09-24 Fuji Xerox Co., Ltd. Image processing apparatus and method
CN101543412A (en) * 2008-03-26 2009-09-30 深圳迈瑞生物医疗电子股份有限公司 Method and device for calculating graph coordinate components based on two-dimensional ultrasonic imaging device
CN101714258A (en) * 2008-10-06 2010-05-26 Arm有限公司 Graphics processing systems
CN106780656A (en) * 2016-12-30 2017-05-31 中国民航信息网络股份有限公司 Chart output intent and device
CN107221016A (en) * 2016-03-22 2017-09-29 阿里巴巴集团控股有限公司 The processing method and its device of the Path figures of SVG forms

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8717380B2 (en) * 2008-07-04 2014-05-06 Canon Kabushiki Kaisha Image processing apparatus and control method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6456298B1 (en) * 1998-08-18 2002-09-24 Fuji Xerox Co., Ltd. Image processing apparatus and method
CN101543412A (en) * 2008-03-26 2009-09-30 深圳迈瑞生物医疗电子股份有限公司 Method and device for calculating graph coordinate components based on two-dimensional ultrasonic imaging device
CN101714258A (en) * 2008-10-06 2010-05-26 Arm有限公司 Graphics processing systems
CN107221016A (en) * 2016-03-22 2017-09-29 阿里巴巴集团控股有限公司 The processing method and its device of the Path figures of SVG forms
CN106780656A (en) * 2016-12-30 2017-05-31 中国民航信息网络股份有限公司 Chart output intent and device

Also Published As

Publication number Publication date
CN109242929A (en) 2019-01-18

Similar Documents

Publication Publication Date Title
US10599914B2 (en) Method and apparatus for human face image processing
CN109242929B (en) Conversion method, device, storage medium and equipment of path coordinate graph
US9361282B2 (en) Method and device for user interface
CN107870887B (en) Computing device, graph display method for computing device, and recording medium
US8682642B2 (en) Translation display apparatus
KR101950126B1 (en) Mathematical formula processing method, device, apparatus and computer storage medium
CN111240669B (en) Interface generation method and device, electronic equipment and computer storage medium
EP2568437A2 (en) Image processing apparatus, method and program
KR20140089915A (en) Method and apparatus for adjusting handwritten character
JP2013089199A (en) Electronic comic editing device, method and program
CN104281399B (en) The system and method for correspondence target text are translated according to gesture
US20230066021A1 (en) Object detection
JP2023039892A (en) Training method for character generation model, character generating method, device, apparatus, and medium
CN111208998A (en) Method and device for automatically laying out data visualization large screen and storage medium
CN114218889A (en) Document processing method, document model training method, document processing device, document model training equipment and storage medium
CN107391015B (en) Control method, device and equipment of intelligent tablet and storage medium
KR102147930B1 (en) Method and apparatus for recognizing pose
CN115268904A (en) User interface design file generation method, device, equipment and medium
CN106535002B (en) Desktop starter template layout updating method and device
CN109766530B (en) Method and device for generating chart frame, storage medium and electronic equipment
EP4068225A2 (en) Method for training text positioning model and method for text positioning
CN115619904A (en) Image processing method, device and equipment
CN112256175B (en) Text display method, text display device, electronic equipment and computer readable storage medium
CN113157184A (en) Content display method and device, electronic equipment and readable storage medium
CN111402116A (en) Method and device for processing human waist body beautification in picture and electronic equipment

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