CN108038891A - A kind of graphic processing method and device - Google Patents

A kind of graphic processing method and device Download PDF

Info

Publication number
CN108038891A
CN108038891A CN201711465548.3A CN201711465548A CN108038891A CN 108038891 A CN108038891 A CN 108038891A CN 201711465548 A CN201711465548 A CN 201711465548A CN 108038891 A CN108038891 A CN 108038891A
Authority
CN
China
Prior art keywords
pending
radius
border
corner
crop box
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.)
Pending
Application number
CN201711465548.3A
Other languages
Chinese (zh)
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.)
Fujian Cnfol Information Technology Co Ltd
Original Assignee
Fujian Cnfol Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujian Cnfol Information Technology Co Ltd filed Critical Fujian Cnfol Information Technology Co Ltd
Priority to CN201711465548.3A priority Critical patent/CN108038891A/en
Publication of CN108038891A publication Critical patent/CN108038891A/en
Pending legal-status Critical Current

Links

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/206Drawing of charts or graphs

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

An embodiment of the present invention provides a kind of graphic processing method and device, is related to field of computer technology, and this method includes:Obtain pending figure;Determine crop box;The crop box is placed in the upper strata of the pending figure, and cutting processing carries out the pending figure using the crop box, obtains the region that the pending figure is located in the crop box;Determine the radius of corner for carrying out curve adjustment to the border in obtained region;Curve adjustment is carried out to the border in obtained region using the radius of corner, obtains the curved surface figure of the pending figure.Compared with prior art, using scheme provided in an embodiment of the present invention, staff can be avoided to lack experience figure march surface treatment during graphic designs the problems such as, the preferable curved surface figure for the treatment of effect is obtained.

Description

A kind of graphic processing method and device
Technical field
The present invention relates to field of computer technology, more particularly to a kind of graphic processing method and device.
Background technology
Current more and more users carry out graphic designs by a variety of softwares, for example, Axure
(Axure Rapid Prototyping, Rapid Prototype Design instrument), however, inventor is carried out using software During graphic designs, during to some figure march surface treatments, work(such as " pens " that is provided by these softwares is merely capable of Can, the mode that curve is drawn on the figure of pending curved surface processing obtains desired curved surface figure.But pass through this processing The curved surface figure that mode obtains is often depending on application qualification of the staff to " pen " this function, and when many Wait, since the experience of staff is not abundant enough, hardly result in preferable treatment effect.
The content of the invention
The purpose of the embodiment of the present invention is to provide a kind of graphic processing method and device, with right during graphic designs Preferable treatment effect can be obtained during figure march surface treatment.
Concrete technical scheme is as follows:
In a first aspect, an embodiment of the present invention provides a kind of graphic processing method, the described method includes:
Obtain pending figure;
Determine crop box;
The crop box is placed in the upper strata of the pending figure, and using the crop box to the pending figure Cutting processing is carried out, obtains the region that the pending figure is located in the crop box;
Determine the radius of corner for carrying out curve adjustment to the border in obtained region;
Curve adjustment is carried out to the border in obtained region using the radius of corner, obtains the song of the pending figure Face figure.
In a kind of implementation, in the radius of corner determined for carrying out curve adjustment to the border in obtained region The step of before, further include:
Determine to obtain the subregion treated in region to the adjustment of border march line;
The radius of corner determined for carrying out curve adjustment to the border in obtained region, including:
Determine the radius of corner for carrying out curve adjustment to the border of the subregion;
It is described that curve adjustment is carried out to the border in obtained region using the radius of corner, obtain the pending figure Curved surface figure, including:
Curve adjustment is carried out to the border of the subregion using the radius of corner, obtains the song of the pending figure Face figure.
In a kind of implementation, the definite crop box, including:
Obtain movement locus of the cursor on the pending figure;
Crop box is determined according to the movement locus.
In a kind of implementation, the method further includes:
The preset pattern of user's selection is added on the curved surface figure;
Receive for the edit instruction for adding figure;
To the figure that is added into edlin.
In a kind of implementation, the edit instruction includes:
To in the size of figure, position, the curve shape on border, Fill Color, the shape of frame line, the color of frame At least one instruction being adjusted.
In a kind of implementation, the pending figure is:The figure that at least two figures combine.
Second aspect, an embodiment of the present invention provides a kind of graphic processing facility, described device includes:
Figure obtains module, for obtaining pending figure;
Frame determining module, for determining crop box;
Region obtains module, for the crop box to be placed in the upper strata of the pending figure, and uses the cutting Frame carries out the pending figure cutting processing, obtains the region that the pending figure is located in the crop box;
Radius of corner determining module, for determining the fillet half for carrying out curve adjustment to the border in obtained region Footpath;
Curved surface figure obtains module, for carrying out curve adjustment to the border in obtained region using the radius of corner, Obtain the curved surface figure of the pending figure.
In a kind of implementation, before the radius of corner determining module, described device further includes:
Subregion determining module, for determining to obtain the subregion treated in region to the adjustment of border march line;
The radius of corner determining module, specifically for determining for carrying out curve adjustment to the border of the subregion Radius of corner;
The curved surface figure obtains module, specifically for the border march using the radius of corner to the subregion Line adjusts, and obtains the curved surface figure of the pending figure.
The third aspect, an embodiment of the present invention provides a kind of electronic equipment, including processor, communication interface, memory and Communication bus, wherein, processor, communication interface, memory completes mutual communication by communication bus;
Memory, for storing computer program;
Processor, during for performing the program stored on memory, realizes the graphics process that above-mentioned first aspect provides Any method and step in method.
A kind of computer-readable recording medium of fourth aspect, the computer-readable recording medium memory contain computer journey Sequence, the computer program are realized any described in the graphic processing method that above-mentioned first aspect provides when being executed by processor Method and step.
As seen from the above, in scheme provided in an embodiment of the present invention, after determining crop box, crop box is placed in pending The upper strata of figure, and cutting processing is carried out to pending figure using crop box, obtain pending figure and be located in crop box Region, then carries out curve adjustment using definite radius of corner to the border of obtained above-mentioned zone, and then obtains waiting to locate Manage the curved surface figure of figure.Compared with prior art, in scheme provided in an embodiment of the present invention, it is not necessary to which technical staff is by a People's experience utilizes functions such as " pens ", and curve is drawn on pending curved surface figure and obtains desired curved surface figure, but is utilized Graphics Clipping, carry out the mode such as curve adjustment using radius of corner and obtain curved surface figure, therefore is applied during graphic designs When scheme provided in an embodiment of the present invention carries out graphics process, the preferable curved surface figure of effect can be processed.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is attached drawing needed in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, without creative efforts, can be with Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the flow diagram of the first graphic processing method provided in an embodiment of the present invention.
Fig. 2 is the flow diagram of second of graphic processing method provided in an embodiment of the present invention.
Fig. 3 is the flow diagram of the third graphic processing method provided in an embodiment of the present invention.
Fig. 4 is the structure diagram of the first graphic processing facility provided in an embodiment of the present invention.
Fig. 5 is the structure diagram of second of graphic processing facility provided in an embodiment of the present invention.
Fig. 6 is the structure diagram of the third graphic processing facility provided in an embodiment of the present invention.
Fig. 7 is the structure diagram of electronic equipment provided in an embodiment of the present invention.
Fig. 8 is a pending figure.
Fig. 9 is the schematic diagram 1 of an instantiation provided in an embodiment of the present invention.
Figure 10 is the schematic diagram 2 of an instantiation provided in an embodiment of the present invention.
Figure 11 is the schematic diagram 3 of an instantiation provided in an embodiment of the present invention.
Figure 12 is the schematic diagram 4 of an instantiation provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without making creative work Embodiment, belongs to the scope of protection of the invention.
Inventor using software during graphic designs are carried out, and during to some figure march surface treatments, are merely capable of The functions such as " pen " provided by these softwares, the mode that curve is drawn on the figure of pending curved surface processing are wanted Curved surface figure.But the curved surface figure obtained by this processing mode be often depending on staff to " pen " this The application qualification of function, and many times, since the experience of staff is not abundant enough, hardly result in preferable processing Effect.
In order to solve the problems in the existing technology, the embodiment of the present invention proposes a kind of graphic processing method, the party Method includes:
Obtain pending figure;
Determine crop box;
The crop box is placed in the upper strata of the pending figure, and using the crop box to the pending figure Cutting processing is carried out, obtains the region that the pending figure is located in the crop box;
Determine the radius of corner for carrying out curve adjustment to the border in obtained region;
Curve adjustment is carried out to the border in obtained region using the radius of corner, obtains the song of the pending figure Face figure.
As seen from the above, in scheme provided in an embodiment of the present invention, after determining crop box, crop box is placed in pending The upper strata of figure, and cutting processing is carried out to pending figure using crop box, obtain pending figure and be located in crop box Region, then carries out curve adjustment using definite radius of corner to the border of obtained above-mentioned zone, and then obtains waiting to locate Manage the curved surface figure of figure.Compared with prior art, in scheme provided in an embodiment of the present invention, it is not necessary to which technical staff is by a People's experience utilizes functions such as " pens ", and curve is drawn on pending curved surface figure and obtains desired curved surface figure, but is utilized Graphics Clipping, carry out the mode such as curve adjustment using radius of corner and obtain curved surface figure, therefore is applied during graphic designs When scheme provided in an embodiment of the present invention carries out graphics process, the preferable curved surface figure of effect can be processed.
As shown in Figure 1, be the flow diagram of the first graphic processing method provided in an embodiment of the present invention, this method bag Include:
S101:Obtain pending figure;
Wherein, above-mentioned pending figure can be a regular figure, for example, square, circle, triangle etc.; Can be an irregular figure, such as three sides are straight line, Article 4 side is quadrangle of curve etc..
In a kind of implementation, above-mentioned pending figure can be:The figure that at least two figures combine, for example, As shown in figure 8, the curved surface figure that three circular portions are overlaped.
S102:Determine crop box;
In a kind of implementation, S102 determines crop box, including:
Step 1:Obtain movement locus of the cursor on above-mentioned pending figure;
Step 2:Crop box is determined according to the movement locus.
Specifically, the curve that above-mentioned movement locus is formed directly can be determined as crop box, it is of course also possible to will be above-mentioned The minimum enclosed rectangle of movement locus institute forming curves is determined as crop box.The present invention is only illustrated as example, not Limit the concrete mode that crop box is determined according to movement locus.
In another implementation, S102 determines crop box, including:
Step 1:Obtain the position of two point of the cursor on above-mentioned pending figure;
Step 2:Using obtained two points as diagonal fixed point, quadrangle is determined, using the quadrangle as crop box.
In another implementation, S102 determines crop box, including:
Step 1:The graphic plotting function of being provided using used PaintShop, draws a figure;
Step 2:According to the size for needing to adjust the graphing of practical application, crop box is determined.
S103:Above-mentioned crop box is placed in the upper strata of above-mentioned pending figure, and waits to locate to above-mentioned using above-mentioned crop box Reason figure carries out cutting processing, obtains the region that above-mentioned pending figure is located in the crop box;
When cut processing to pending figure using crop box, the region of the pending figure outside crop box It can disappear, only retain the region in crop box.
S104:Determine the radius of corner for carrying out curve adjustment to the border in obtained region;
Wherein it is determined that the mode of radius of corner can be determined by obtaining radius of corner input by user, can also It is to be determined by obtaining radius of corner that user selects in the radius of corner option of offer, can also be by obtaining user The radius of corner selected by sliding radius of corner data scrolling bar determines, the application not to the determination mode of radius of corner into Row limits.
S105:Curve adjustment is carried out to the border in obtained region using the radius of corner, obtains the pending figure The curved surface figure of shape.
Use definite radius of corner by the boundary adjustment in obtained region for curve, obtain curved surface figure.
As seen from the above, in scheme provided in an embodiment of the present invention, after determining crop box, crop box is placed in pending The upper strata of figure, and cutting processing is carried out to pending figure using crop box, obtain pending figure and be located in crop box Region, then carries out curve adjustment using definite radius of corner to the border of obtained above-mentioned zone, and then obtains waiting to locate Manage the curved surface figure of figure.Compared with prior art, in scheme provided in an embodiment of the present invention, it is not necessary to which technical staff is by a People's experience utilizes functions such as " pens ", and curve is drawn on pending curved surface figure and obtains desired curved surface figure, but is utilized Graphics Clipping, carry out the mode such as curve adjustment using radius of corner and obtain curved surface figure, therefore is applied during graphic designs When scheme provided in an embodiment of the present invention carries out graphics process, the preferable curved surface figure of effect can be processed.
In a kind of implementation, as shown in Fig. 2, be second of graphic processing method provided in an embodiment of the present invention, the party Method includes:
Before the step of S104 is determined for carrying out the radius of corner of curve adjustment to the border in obtained region, also wrap Include:
S104A:Determine to obtain the subregion treated in region to the adjustment of border march line;
During some graphic designs, it is only necessary to carry out curve adjustment to some borders in obtained region, it is not necessary to Curve adjustment is carried out to all borders in obtained region, it is therefore desirable to determine to obtain to need in region to border march line The subregion of adjustment.
Wherein it is determined that the method for subregion can be the movement locus for obtaining cursor on obtained region, according to the fortune Dynamic rail mark determines subregion;It can also be the graphic plotting function of being provided according to used PaintShop, draw one Figure, then according to the size for needing to adjust the graphing of practical application, the region obtained painting after adjustment Region in shape of charting is definite subregion;The application is not defined the definite method of subregion.
In this case, S104 determines the step of the radius of corner for carrying out curve adjustment to the border in obtained region Suddenly, it is specially:
S104B:Determine the radius of corner for carrying out curve adjustment to the border of the subregion;
S105 carries out curve adjustment using above-mentioned radius of corner to the border in obtained region, obtains above-mentioned pending figure Curved surface figure the step of, be specially:
S105A:Curve adjustment is carried out to the border of the subregion using the radius of corner, obtains the pending figure The curved surface figure of shape.
, can be targetedly in the region that the pending figure obtained is located in crop box in this implementation Subregion is obtained, curve adjustment then is carried out to the border of subregion, so as to so as to treat processing figure march surface treatment Process more flexibly, conveniently.
In a kind of implementation, as shown in figure 3, the flow for the third graphic processing method provided in an embodiment of the present invention Schematic diagram, this method further include:
S106:The preset pattern of user's selection is added on above-mentioned curved surface figure;
Wherein, the method for adding preset pattern can be the figure determined according to movement locus of the cursor on curved surface figure The figure of shape or the graphic plotting draw provided using used PaintShop, can be with after drafting Need to adjust the feature size according to practical application;The application is not defined the method for adding preset pattern.
S107:Receive for the edit instruction for adding figure;
In a kind of implementation, above-mentioned edit instruction can include:To the size of figure, position, border curve shape, The instruction that at least one of Fill Color, the shape of frame line, color of frame are adjusted.
S108:To the figure that is added into edlin.
In this implementation, the processing such as it can further be designed the curved surface figure of acquisition, be beautified, being made final The curved surface figure arrived has more preferable bandwagon effect.
The graphic processing method that embodiment provides for a better understanding of the present invention, is carried out specifically by following example It is bright:
For example, as shown in figs9-12, illustrate the actual effect figure of an instantiation for the embodiment of the present invention, the tool Body example is:A cat face figure is designed using Axure,.
Axure is a dedicated for carrying out the instrument of prototype, is not required staff to have in use Any programming basis, are generally applied to the fields such as internet product design, webpage design.It is used for creating compared to general The instrument of static prototype, such as PS (photoshop, PaintShop) etc., Axure are more quick, efficient, and Axure can support multiple person cooperational design and version control management at the same time.
As shown in figure 9, obtaining three circular pending figures formed first, and determine and the pending figure is carried out Crop box used by cutting is handled, wherein, above-mentioned crop box is the black squares frame in Fig. 9, meanwhile, in crop box Default figure, including circular, rectangle and curve etc. are added on region, and these figures are adjusted into edlin to these figures The shape of the frame line of shape, the size of figure, position etc..
As shown in Figure 10, the region in crop box after being cut, is that three sides are straight line, while being curve Quadrangle.
As shown in figure 11, in rectangle frame for the subregion of pending boundary adjustment in acquisition quadrangle, it is definite to the son The border in region carries out the radius of corner of curve adjustment, and carries out curve tune to the border of the subregion using the radius of corner It is whole, likewise, the subregion comprising another right angle carries out curve adjustment in obtained quadrangle.
As shown in figure 12, the cat face shape of final design completion is obtained.
Corresponding to a kind of above-mentioned graphic processing method, as shown in figure 4, being a kind of graphics process provided in an embodiment of the present invention The structure diagram of device, the device include:
Figure obtains module 410, for obtaining pending figure;
Frame determining module 420, for determining crop box;
Region obtains module 430, for above-mentioned crop box to be placed in the upper strata of the pending figure, and uses above-mentioned sanction Cut frame and cutting processing is carried out to above-mentioned pending figure, obtain the region that above-mentioned pending figure is located in above-mentioned crop box;
Radius of corner determining module 440, for determining the fillet for carrying out curve adjustment to the border in obtained region Radius;
Curved surface figure obtains module 450, for carrying out curve tune to the border in obtained region using the radius of corner It is whole, obtain the curved surface figure of above-mentioned pending figure.
As seen from the above, in scheme provided in an embodiment of the present invention, after determining crop box, crop box is placed in pending The upper strata of figure, and cutting processing is carried out to pending figure using crop box, obtain pending figure and be located in crop box Region, then carries out curve adjustment using definite radius of corner to the border of obtained above-mentioned zone, and then obtains waiting to locate Manage the curved surface figure of figure.Compared with prior art, in scheme provided in an embodiment of the present invention, it is not necessary to which technical staff is by a People's experience utilizes functions such as " pens ", and curve is drawn on pending curved surface figure and obtains desired curved surface figure, but is utilized Graphics Clipping, carry out the mode such as curve adjustment using radius of corner and obtain curved surface figure, therefore is applied during graphic designs When scheme provided in an embodiment of the present invention carries out graphics process, the preferable curved surface figure of effect can be processed.
In a kind of implementation, before above-mentioned radius of corner determining module 440, as shown in figure 5, being the embodiment of the present invention The structure diagram of second of the graphic processing facility provided, the device further include:
Subregion determining module 440A, for determining to obtain the subregion treated in region to the adjustment of border march line;
In this case, above-mentioned radius of corner determining module 440, specifically for determining for the side to above-mentioned subregion Boundary carries out the radius of corner of curve adjustment;
Above-mentioned curved surface figure obtains module 450, specifically for using above-mentioned radius of corner to the border of above-mentioned subregion into Row curve adjusts, and obtains the curved surface figure of above-mentioned pending figure.
, can be targetedly in the region that the pending figure obtained is located in crop box in this implementation Subregion is obtained, curve adjustment then is carried out to the border of subregion, so as to so as to treat processing figure march surface treatment Process more flexibly, conveniently.
In a kind of implementation, above-mentioned frame determining module 420, including:
Track obtains submodule 4201, for obtaining movement locus of the cursor on above-mentioned pending figure;
Frame determination sub-module 4202, for determining crop box according to above-mentioned movement locus.
In a kind of implementation, as shown in fig. 6, the structure for the third graphic processing facility provided in an embodiment of the present invention Schematic diagram, the device further include:
Figure add module 460, for adding the preset pattern of user's selection on above-mentioned curved surface figure;
Command reception module 470, for receiving for the edit instruction for adding figure;
Graphics edition module 480, for the figure to being added into edlin.
In this implementation, the processing such as it can further be designed the curved surface figure of acquisition, be beautified, being made final The curved surface figure arrived has more preferable bandwagon effect.
In a kind of implementation, above-mentioned edit instruction includes:To the size of figure, position, the curve shape on border, filling The instruction that at least one of color, the shape of frame line, color of frame are adjusted.
In a kind of implementation, above-mentioned pending figure is:The figure that at least two figures combine.
The embodiment of the present invention additionally provides a kind of electronic equipment, as shown in fig. 7, comprises processor 710, communication interface 720, Memory 730 and communication bus 740, wherein, processor 710, communication interface 720, memory 730 is complete by communication bus 740 Into mutual communication,
Memory 730, for storing computer program;
Processor 710, during for performing the program stored on memory 730, realizes that the embodiments of the present invention provide Graphic processing method.
Specifically, above-mentioned image processing method, including:
Obtain pending figure;
Determine crop box;
Above-mentioned crop box is placed in the upper strata of above-mentioned pending figure, and using above-mentioned crop box to above-mentioned pending figure Cutting processing is carried out, obtains the region that above-mentioned pending figure is located in above-mentioned crop box;
Determine the radius of corner for carrying out curve adjustment to the border in obtained region;
Curve adjustment is carried out to the border in obtained region using above-mentioned radius of corner, obtains the song of above-mentioned pending figure Face figure.
It should be noted that it should be noted that above-mentioned processor 710 performs the program stored on memory 730 and reality Other implementations of existing graphical method, it is identical with the graphic processing method embodiment that preceding method embodiment part provides, Which is not described herein again.
As seen from the above, in scheme provided in an embodiment of the present invention, after electronic equipment determines crop box, crop box is put Cutting processing is carried out to pending figure in the upper strata of pending figure, and using crop box, obtains pending figure positioned at sanction The region in frame is cut, curve adjustment then is carried out to the border of obtained above-mentioned zone using definite radius of corner, and then Obtain the curved surface figure of pending figure.Compared with prior art, in scheme provided in an embodiment of the present invention, it is not necessary to technology people Member utilizes functions such as " pens " by personal experience, and curve is drawn on pending curved surface figure and obtains desired curved surface figure, But carry out the modes such as curve adjustment using Graphics Clipping, using radius of corner and obtain curved surface figure, therefore in graphic designs mistake When carrying out graphics process using scheme provided in an embodiment of the present invention in journey, the preferable curved surface figure of effect can be processed.
The communication bus that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, controlling bus etc..For just Only represented in expression, figure with a thick line, it is not intended that an only bus or a type of bus.
Communication interface is used for the communication between above-mentioned electronic equipment and other equipment.
Memory can include random access memory (Random Access Memory, RAM), can also include non-easy The property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used also To be at least one storage device for being located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal Processing, DSP), it is application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete Door or transistor logic, discrete hardware components.
The embodiment of the present invention additionally provides a kind of computer-readable recording medium, it is characterised in that described computer-readable Storage medium memory contains computer program, and the computer program realizes that the embodiments of the present invention carry when being executed by processor The graphic processing method of confession.
Specifically, above-mentioned image processing method, including:
Obtain pending figure;
Determine crop box;
Above-mentioned crop box is placed in the upper strata of above-mentioned pending figure, and using above-mentioned crop box to above-mentioned pending figure Cutting processing is carried out, obtains the region that above-mentioned pending figure is located in above-mentioned crop box;
Determine the radius of corner for carrying out curve adjustment to the border in obtained region;
Curve adjustment is carried out to the border in obtained region using above-mentioned radius of corner, obtains the song of above-mentioned pending figure Face figure.
It should be noted that other realities for the graphic processing method realized when above computer program is executed by processor Existing mode, identical with the graphic processing method embodiment that preceding method embodiment part provides, which is not described herein again.
As seen from the above, in scheme provided in an embodiment of the present invention, processor is deposited in execution computer-readable recording medium During the computer program of storage, after determining crop box, crop box is placed in the upper strata of pending figure, and treat using crop box Processing figure carries out cutting processing, obtains the region that pending figure is located in crop box, then utilizes definite radius of corner Curve adjustment is carried out to the border of obtained above-mentioned zone, and then obtains the curved surface figure of pending figure.With the prior art Compare, in scheme provided in an embodiment of the present invention, it is not necessary to which technical staff utilizes functions such as " pens " by personal experience, is treating Curve is drawn on processing curved surface figure and obtains desired curved surface figure, but utilizes Graphics Clipping, utilize radius of corner march The modes such as line adjustment obtain curved surface figure, therefore carry out figure using scheme provided in an embodiment of the present invention during graphic designs During shape processing, the preferable curved surface figure of effect can be processed.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to Non-exclusive inclusion, so that process, method, article or equipment including a series of elements not only will including those Element, but also including other elements that are not explicitly listed, or further include as this process, method, article or equipment Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that Also there are other identical element in process, method, article or equipment including the key element.
Each embodiment in this specification is described using relevant mode, identical similar portion between each embodiment Divide mutually referring to what each embodiment stressed is the difference with other embodiment.It is real especially for device For applying example, electronic equipment embodiment and computer-readable recording medium, since it is substantially similar to embodiment of the method, so retouching That states is fairly simple, and the relevent part can refer to the partial explaination of embodiments of method.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (10)

  1. A kind of 1. graphic processing method, it is characterised in that the described method includes:
    Obtain pending figure;
    Determine crop box;
    The crop box is placed in the upper strata of the pending figure, and the pending figure is carried out using the crop box Cutting is handled, and obtains the region that the pending figure is located in the crop box;
    Determine the radius of corner for carrying out curve adjustment to the border in obtained region;
    Curve adjustment is carried out to the border in obtained region using the radius of corner, obtains the surface chart of the pending figure Shape.
  2. 2. according to the method described in claim 1, it is characterized in that, determined described for the border progress to obtained region Before the step of radius of corner of curve adjustment, further include:
    Determine to obtain the subregion treated in region to the adjustment of border march line;
    The radius of corner determined for carrying out curve adjustment to the border in obtained region, including:
    Determine the radius of corner for carrying out curve adjustment to the border of the subregion;
    It is described that curve adjustment is carried out to the border in obtained region using the radius of corner, obtain the song of the pending figure Face figure, including:
    Curve adjustment is carried out to the border of the subregion using the radius of corner, obtains the surface chart of the pending figure Shape.
  3. 3. according to the method described in claim 1, it is characterized in that, the definite crop box, including:
    Obtain movement locus of the cursor on the pending figure;
    Crop box is determined according to the movement locus.
  4. 4. according to the method described in claim 1-3, it is characterised in that the method further includes:
    The preset pattern of user's selection is added on the curved surface figure;
    Receive for the edit instruction for adding figure;
    To the figure that is added into edlin.
  5. 5. according to any method of claim 4, it is characterised in that the edit instruction includes:
    To in the size of figure, position, the curve shape on border, Fill Color, the shape of frame line, the color of frame at least A kind of instruction being adjusted.
  6. 6. according to the method described in claim 1, it is characterized in that, the pending figure is:At least two figures combine The figure arrived.
  7. 7. a kind of graphic processing facility, it is characterised in that described device includes:
    Figure obtains module, for obtaining pending figure;
    Frame determining module, for determining crop box;
    Region obtains module, for the crop box to be placed in the upper strata of the pending figure, and uses the crop box pair The pending figure carries out cutting processing, obtains the region that the pending figure is located in the crop box;
    Radius of corner determining module, for determining the radius of corner for carrying out curve adjustment to the border in obtained region;
    Curved surface figure obtains module, for carrying out curve adjustment to the border in obtained region using the radius of corner, obtains The curved surface figure of the pending figure.
  8. 8. device according to claim 7, it is characterised in that before the radius of corner determining module, described device Further include:
    Subregion determining module, for determining to obtain the subregion treated in region to the adjustment of border march line;
    The radius of corner determining module, specifically for determining the fillet for carrying out curve adjustment to the border of the subregion Radius;
    The curved surface figure obtains module, specifically for carrying out curve tune to the border of the subregion using the radius of corner It is whole, obtain the curved surface figure of the pending figure.
  9. 9. a kind of electronic equipment, it is characterised in that including processor, communication interface, memory and communication bus, wherein, processing Device, communication interface, memory complete mutual communication by communication bus;
    Memory, for storing computer program;
    Processor, during for performing the program stored on memory, realizes any method and steps of claim 1-6.
  10. 10. a kind of computer-readable recording medium, it is characterised in that the computer-readable recording medium memory contains computer Program, the computer program realize claim 1-6 any method and steps when being executed by processor.
CN201711465548.3A 2017-12-28 2017-12-28 A kind of graphic processing method and device Pending CN108038891A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711465548.3A CN108038891A (en) 2017-12-28 2017-12-28 A kind of graphic processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711465548.3A CN108038891A (en) 2017-12-28 2017-12-28 A kind of graphic processing method and device

Publications (1)

Publication Number Publication Date
CN108038891A true CN108038891A (en) 2018-05-15

Family

ID=62097847

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711465548.3A Pending CN108038891A (en) 2017-12-28 2017-12-28 A kind of graphic processing method and device

Country Status (1)

Country Link
CN (1) CN108038891A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109447072A (en) * 2018-11-08 2019-03-08 北京金山安全软件有限公司 Thumbnail clipping method and device, electronic equipment and readable storage medium
CN109583070A (en) * 2018-11-23 2019-04-05 拓卡奔马机电科技有限公司 A kind of method and system, computer readable storage medium, terminal optimizing trimmed curve quality
CN110392294A (en) * 2019-07-01 2019-10-29 安徽华米信息科技有限公司 Human body detecting method, device, electronic equipment and storage medium
CN112529923A (en) * 2020-12-15 2021-03-19 北京爱奇艺科技有限公司 Control identification method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0887773A2 (en) * 1997-06-25 1998-12-30 Adobe Systems, Inc. Curve smoothing
US20090201295A1 (en) * 2008-02-08 2009-08-13 Autodesk, Inc. Associative fillet
CN101583973A (en) * 2006-09-07 2009-11-18 奥多比公司 Dynamic feedback and interaction for parametric curves
CN101887366A (en) * 2010-06-01 2010-11-17 云南大学 Digital simulation and synthesis technology with artistic style of Yunnan heavy-color painting
CN106204688A (en) * 2016-07-21 2016-12-07 青岛兰信医学科技有限公司 A kind of dental arch curve generates method
CN107194885A (en) * 2017-05-02 2017-09-22 拓卡奔马机电科技有限公司 A kind of CAD diagram Intelligent Portable Correcting System and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0887773A2 (en) * 1997-06-25 1998-12-30 Adobe Systems, Inc. Curve smoothing
CN101583973A (en) * 2006-09-07 2009-11-18 奥多比公司 Dynamic feedback and interaction for parametric curves
US20090201295A1 (en) * 2008-02-08 2009-08-13 Autodesk, Inc. Associative fillet
CN101887366A (en) * 2010-06-01 2010-11-17 云南大学 Digital simulation and synthesis technology with artistic style of Yunnan heavy-color painting
CN106204688A (en) * 2016-07-21 2016-12-07 青岛兰信医学科技有限公司 A kind of dental arch curve generates method
CN107194885A (en) * 2017-05-02 2017-09-22 拓卡奔马机电科技有限公司 A kind of CAD diagram Intelligent Portable Correcting System and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
岳彩旭 等: "曲线编辑及曲线操作", 《UG NX 9从入门到精通》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109447072A (en) * 2018-11-08 2019-03-08 北京金山安全软件有限公司 Thumbnail clipping method and device, electronic equipment and readable storage medium
CN109583070A (en) * 2018-11-23 2019-04-05 拓卡奔马机电科技有限公司 A kind of method and system, computer readable storage medium, terminal optimizing trimmed curve quality
CN110392294A (en) * 2019-07-01 2019-10-29 安徽华米信息科技有限公司 Human body detecting method, device, electronic equipment and storage medium
CN112529923A (en) * 2020-12-15 2021-03-19 北京爱奇艺科技有限公司 Control identification method and device
CN112529923B (en) * 2020-12-15 2024-09-03 北京爱奇艺科技有限公司 Control identification method and device

Similar Documents

Publication Publication Date Title
CN108038891A (en) A kind of graphic processing method and device
CN108228169B (en) Chart making method, device, equipment and medium based on eCharts tool
CN108279964B (en) Method and device for realizing covering layer rendering, intelligent equipment and storage medium
CN109753641B (en) Method and device for changing object position, electronic equipment and storage medium
EP1612655A2 (en) Aligned behaviour in templated lists
CN103577030B (en) Browser interface window exhibiting method and system
CN105224163B (en) interface display method and device
US20150026637A1 (en) Providing Selection Areas for Selectable Objects in Graphical Interface
CN108369485A (en) Arc-shaped keyboard is laid out
CN107643866B (en) Method and device for operating different-level pictures, terminal equipment and storage medium
CN110286971A (en) Processing method and system, medium and calculating equipment
CN112884781A (en) Image cropping method and device, electronic equipment and storage medium
CN105513006B (en) A kind of TrueType font profile thickness method of adjustment and device
CN108279956B (en) Progress indicating method, progress indicating device, storage medium and electronic equipment
CN106297477A (en) A kind of method and device generating digitized copybook
CN107450904A (en) The method for drafting and device of title bar
CN104978118B (en) A kind of graphical interface of user display methods, device and terminal device
JP2006074224A5 (en)
CN109308345A (en) A kind of character displaying method, device, electronic equipment and storage medium
CN106873860A (en) The network information comments on method and device
US9779529B2 (en) Generating multi-image content for online services using a single image
CN104216818A (en) Display control method and device of computer processing progress
CN110992438B (en) Picture editing method and device
CN103077272A (en) Method and device for establishing package warehouse of shielding cover
US9196226B2 (en) Computer-implemented methods and systems for laying out electronic content elements

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180515