CN109808406A - The online method for mounting of painting and calligraphy pieces, system and storage medium - Google Patents
The online method for mounting of painting and calligraphy pieces, system and storage medium Download PDFInfo
- Publication number
- CN109808406A CN109808406A CN201910278812.5A CN201910278812A CN109808406A CN 109808406 A CN109808406 A CN 109808406A CN 201910278812 A CN201910278812 A CN 201910278812A CN 109808406 A CN109808406 A CN 109808406A
- Authority
- CN
- China
- Prior art keywords
- layer
- picture frame
- picture
- core
- mounting
- 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
Links
Landscapes
- Processing Or Creating Images (AREA)
Abstract
The invention discloses the online method for mounting of painting and calligraphy pieces, system and storage mediums, mount method includes mounting effect manufacturing process: predetermined registration operation region, picture core is selected and scaled, the picture core after scaling is plotted on a painting canvas with picture core comparable size, as picture core figure layer;It selects picture frame figure as first figure layer, adjusts picture frame figure dimension scale and arrive consistent with core is drawn, according to core the ratio of width to height scaling picture frame figure is drawn, picture frame figure after scaling is plotted on a painting canvas with picture frame figure comparable size, as picture frame figure layer;It selects paper jam figure as second figure layer, is stacked on picture frame figure, fill up its hollow-out part, according to hollow-out part size scaling paper jam figure, paper jam figure after scaling is plotted on a painting canvas with picture frame figure hollow-out part comparable size, as paper jam figure layer;It is overlapped the central point of picture core figure layer, picture frame figure layer and paper jam figure layer, synthesizes a mounting figure.The present invention can facilitate selection picture frame, and paper jam size and color is adjusted flexibly.
Description
Technical field
The present invention relates to image processing techniques, and the method, system and storage of online mounting are carried out for a kind of pair of painting and calligraphy pieces
Medium.
Background technique
It for calligraphy artwork, traditionally generally requires and is framed into various forms of pictures, on the one hand make painting and calligraphy pieces firm
Gu ornamental convenient for collection and arrangement without easily damaged, for another aspect painting and calligraphy pieces after mounting, pen and ink, color etc. can be richer
Richness is prominent, can increase the artistry of works.Thus, painting and calligraphy pieces can all select appropriate mounting mode before auction or exhibition,
The artistry of painting and calligraphy pieces is set off.
In recent years, with the development of internet technology, more and more artists or painting and calligraphy sale businessman auction on line
Painting and calligraphy pieces.Before auctioning or put on display on line, the mountings such as picture frame processing can be also added to the soft copy of painting and calligraphy pieces;Mounting
Processing is mostly corresponding professional drawing knowledge to be needed, to operation such as photoshop software using the image processing tool of profession
Personnel's is more demanding.Application for a patent for invention CN106327551A (publication date on January 11st, 2017) is disclosed to be examined based on edge
It surveys and the painting and calligraphy of image mosaic matches frame method automatically, picture frame image is cut using edge detecting technology, after cutting
Picture frame image carries out horizontal direction, vertical direction and the symmetry transformation at center, obtains the picture frame image handled well;One is created again
For the blank image of splicing, the length of blank image and it is wide respectively equal to cut after picture frame image length and wide twice,
Area-of-interest is set in blank image, the picture frame image handled well is sequentially placed into splicing synthesis picture in area-of-interest
Block diagram picture.The patent of invention, which provides, a kind of realizes calligraphy artwork addition picture frame independent of professional image tool
Method, but it realizes that process is complex, using upper color, the shape etc. for being inconvenient to replace picture frame of operation, can not give book
Paintings product add paper jam, also can not carry out suspension display to the image after mounting.
Summary of the invention
To solve technical problem present in the prior art, the present invention provides the online method for mounting of painting and calligraphy pieces, facilitates choosing
Picture frame is selected, paper jam size and color is adjusted flexibly, the artistry of painting and calligraphy pieces is effectively set off.
Method for mounting of the present invention is realized using following technical scheme: the online method for mounting of painting and calligraphy pieces, including mounting effect
Fruit manufacturing process;Mounting effect manufacturing process the following steps are included:
(11) presetting a width is w0, a height of h0Operating area establish coordinate using operating area upper left angle point as origin
System is to the left positive x-axis, is downwards positive y-axis, calculates the center point coordinate (x of operating area0,y0), there is x0=w0/
2, y0=h0/2;
After selecting picture core, suitable size of the picture core size scaling into operating area, if finally drawing core size width is w1、
A height of h1, then w1<w0, h1<h0;Picture core after scaling is plotted on a painting canvas with picture core comparable size, as picture core figure
Layer;
(12) select a default picture frame figure as first figure layer, and adjust the dimension scale of picture frame figure to draw core phase
Unanimously;
There is identical border width m on four side of picture frame figure3, centre is hollow-out part;To picture frame figure according to draw core the ratio of width to height into
Row scaling, until the width w of picture frame figure3, height h3Meet simultaneously: w0>w3>w1、h0>h3>h1、w3-m3*2>w1、h3-m3*2>h1;
Picture frame figure after scaling is plotted on a painting canvas with picture frame figure comparable size, as picture frame figure layer;
(13) it selects a default paper jam figure as second figure layer, is stacked on picture frame figure, fills up the hollow out of picture frame figure
Part;
Paper jam figure is zoomed in and out according to the hollow-out part size of picture frame figure, until paper jam figure width w4, height h4It is full simultaneously
Foot: w4+2*m3=w3、h4+2*m3=h3;Paper jam figure after scaling is plotted to one and picture frame figure hollow-out part comparable size
On painting canvas, as paper jam figure layer;
(14) guarantee that the central point of picture core figure layer, picture frame figure layer and paper jam figure layer is overlapped by calculating, synthesize a mounting
Figure, as final mounting effect.
The present invention also provides the online mounting systems of painting and calligraphy pieces, comprising:
Operating area presetting module is w for presetting a width0, a height of h0Operating area, with the operating area upper left corner
Point is origin, establishes coordinate system, is to the left positive x-axis, is downwards positive y-axis, the central point for calculating operating area is sat
Mark (x0,y0), there is x0=w0/ 2, y0=h0/2;After selecting picture core, suitable size of the picture core size scaling into operating area,
If finally drawing core size width is w1, a height of h1, then w1<w0, h1<h0;Picture core after scaling is plotted to one and the picture same ruler of core
On very little painting canvas, as picture core figure layer;
Picture frame figure layer makes module, for selecting a default picture frame figure as first figure layer, and adjusts picture frame figure
Dimension scale to draw core it is consistent;There is identical border width m on four side of picture frame figure3, centre is hollow-out part;To picture frame figure root
It is zoomed in and out according to core the ratio of width to height is drawn, until the width w of picture frame figure3, height h3Meet simultaneously: w0>w3>w1、h0>h3>h1、w3-m3*2
>w1、h3-m3*2>h1;Picture frame figure after scaling is plotted on a painting canvas with picture frame figure comparable size, as picture frame figure
Layer;
Paper jam figure layer makes module, is used to select a default paper jam figure as second figure layer, be stacked on picture frame figure,
Fill up the hollow-out part of picture frame figure;Paper jam figure is zoomed in and out according to the hollow-out part size of picture frame figure, until paper jam figure width
w4, height h4Meet simultaneously: w4+2*m3=w3、h4+2*m3=h3;Paper jam figure after scaling is plotted to one and picture frame figure hollow out
On the painting canvas of part comparable size, as paper jam figure layer;
Mounting figure synthesis module, for guaranteeing picture core figure layer, picture frame figure layer and paper jam figure layer these three figure layers by calculating
Central point be overlapped, synthesize a mounting figure, as final mounting effect, show in the center of operating area.
The present invention also provides storage mediums, are stored thereon with computer program, and the computer program is executed by processor
The step of Shi Shixian painting and calligraphy pieces online method for mounting.
Compared with the prior art, the invention has the following advantages and beneficial effects:
1, present invention uses automatic suspension effect algorithm and a keys to replace mounting effect method, reduce learning adjustment at
This.It is equipped with a variety of walls, picture frame (i.e. frame) in operation interface for user's selection, paper jam size and its face can be adjusted flexibly
Color;Since wall, picture frame, paper jam effect element are available, artist can more be helped to find suitable mounting and suspension effect
Fruit.
2, for automatically generate mounting, suspension figure, can also further by gesture operation adjust, facilitate production
More diversified mounting effect out.
3, due to reducing and operating with cost, can all make whenever and wherever possible using mobile device production and cloud storage
And acquisition.
Detailed description of the invention
Fig. 1 is mounting effect production flow diagram of the invention;
Fig. 2 is suspension decorative effect production flow diagram of the invention;
Fig. 3 is more figure mounting suspension production flow diagrams of the invention.
Specific embodiment
Present invention will now be described in further detail with reference to the embodiments and the accompanying drawings, but embodiments of the present invention are unlimited
In this.
Embodiment
The online method for mounting of painting and calligraphy pieces can be by artistic work picture, paper jam picture, frame picture in the embodiment of the present invention
Totally three figure layers synthesize an artistic work, emulate mounting effect figure, or are further combined one layer of scene figure as background, system
After making artistic work mounting, hang on indoor effect picture.As shown in Figure 1, specifically comprising the following steps:
1, mounting effect makes
(11) presetting a width is w0, a height of h0Operating area, the operation (scaling, dragging, replacement) of All Layers exists
It is carried out in this operating area, and the boundary of All Layers is no more than the boundary of the operating area.With the operating area upper left corner
Point is origin, establishes coordinate system, is to the left positive x-axis, is downwards positive y-axis, the central point for calculating operating area is sat
Mark (x0,y0), there is x0=w0/ 2, y0=h0/2。
After user selects artistic work photo (i.e. picture core), suitable size of the picture core size scaling into operating area.
Drawing core can be the rectangle artistic work picture of any wide high proportion.It is original wide high according to core is drawn, equal proportion contracting is carried out to core is drawn
Put, zoom to picture core longest edge be less than operating area corresponding direction on side length until, if final picture core size width is
w1, a height of h1, then must simultaneously meet: w1<w0, h1<h0.Picture core after scaling is plotted to the picture of one with picture core comparable size
On cloth, in this, as picture core figure layer.
(12) select a default picture frame figure as first figure layer, and adjust the dimension scale of picture frame figure to draw core phase
Unanimously.
Picture frame figure is all initially square, and there is identical border width m on four sides3, there is pattern, opaque;Centre is that do not have
Pattern, transparent rectangular area are hollow-out part.
Picture frame figure is zoomed in and out according to core the ratio of width to height is drawn, until the width w of picture frame figure3, height h3Meet simultaneously: w0>w3
>w1、h0>h3>h1、w3-m3*2>w1、h3-m3*2>h1.Picture frame figure after scaling is plotted to one and picture frame figure comparable size
On painting canvas, in this, as picture frame figure layer.
(13) it selects a default paper jam figure as second figure layer, is stacked on picture frame figure, just fills up picture frame figure
Hollow-out part.
Paper jam figure is a Zhang Chunse, opaque rectangle picture.To paper jam figure according to the transparent rectangular areas of picture frame figure (i.e.
Hollow-out part) size zooms in and out, until paper jam figure width w4, height h4Meet simultaneously: w4+2*m3=w3、h4+2*m3=h3.?
Paper jam figure after scaling is plotted on a painting canvas with picture frame figure hollow-out part comparable size, in this, as paper jam figure layer.
(14) by calculate guarantee picture core figure layer, the central point of picture frame figure layer and paper jam figure layer these three figure layers is overlapped, close
It is shown as final mounting effect in the center of operating area at a mounting figure.
Picture frame figure layer upper left angle point is calculated in the coordinate (l of operating area3, t3), it is desirable that picture frame figure layer central point (x3,y3)
It is identical as operating area center point coordinate, i.e. x3=x0,y3=y0, it is calculated: l3=x0-w3/2,t3=y0-y3/2.With same
Mode calculate paper jam figure layer, draw upper left angular coordinate of the core figure layer in operating area.
Picture frame figure layer is first plotted to operating area on the basis of its upper left angular coordinate, then paper jam figure layer with its left side
It is plotted to operating area on the basis of upper angle point, picture core figure layer is finally plotted to operating area on the basis of its upper left angle point.It arrives
This just completes the production of mounting effect.
(15) user respectively can independently replace picture frame figure layer, paper jam figure layer, picture core figure layer, replace any one layer
Afterwards, require to repeat the above steps the calculating process of (11)-(14).
For replacing the picture of picture frame figure layer, there are four types of adjustment modes: I) can remove this layer;II) it is changed to default
When default picture;III) button can be clicked to switch at random;IV) formulation picture can be selected in system picture frame library.
For the picture of paper jam figure layer, there are two types of adjustment modes: I) can replace paper jam color;II) adjustable paper jam
In the width for drawing core surrounding, it is achieved in that and equal proportion scaling is carried out by basic point of central point to picture core figure layer, and must satisfy
w3-m3* 2 >=w1、h3-m3>=h1。
(16) mounting effect figure can be dragged by gesture in operating area.The central point of three figure layers,
Follow moving distance and direction of the finger on mobile terminal screen, synchronizing moving.
In dragging process, four sides of mounting effect figure cannot cross any one side of operating area.It adds and moves to operating area
Gesture of starting is monitored, and the moving direction and distance of gesture are collected.Then the coordinate for modifying operating area central point, gives same side
To with apart from movement, the calculating process of (11)-(14) is repeated, three figure layers are repainted in operating area.Moving process
In, need to judge whether the coordinate of four apex angles of picture frame layer crosses operating area;There is the coordinate touching of any one apex angle up to operation
Zone boundary just stops moving process immediately.
(17) mounting effect figure can be zoomed in and out by gesture in operating area.During scaling, mounting figure
Four sides cannot cross any one side of operating area.Scaling gesture is added to operating area to monitor.When scaling, to draw core figure layer center
Point is basic point, first carries out the scaling with the same dynamics of gesture to picture core figure layer, draws picture core figure layer again after scaling;Then card is calculated
The scaling of paper keeps paper jam surrounding to be basically unchanged before and after scaling at a distance from picture core, paper jam figure layer is repainted after scaling;Most
Picture frame picture is carried out and draws the scaling of core in proportion afterwards, repaints picture frame figure layer after scaling.
In amplification process, need to judge whether the coordinate of four apex angles of picture frame figure layer crosses operating area.There is any one
The coordinate touching of apex angle reaches boundaries, just stops amplification process immediately.
After completing, system generates a final effect figure by carrying out automatic screenshot to operating area All Layers.
2, suspension decorative effect production
(21) system default selects the picture (i.e. scene figure) of an identical size, operating area is plotted to, as scene
Figure layer.Upper left angular coordinate, the wide high level in region of the best placement region of mounting figure have been marked out on scene figure.In this, as system
Make pseudo operation region when mounting effect, the upper left angular coordinate of mark is exactly the origin in pseudo operation region, and mounting figure is most
The central point of good placement region is exactly the central point in pseudo operation region.
(22) step (11)-(14) in above-mentioned mounting effect manufacturing process are executed, mounting figure is plotted to pseudo operation
Region.Mounting effect manufacturing process is executed in pseudo operation region, picture frame figure layer is calculated separately out, paper jam figure layer, draws core figure layer
Size and they in the position in pseudo operation region, successively drawn according to picture frame figure layer, paper jam figure layer, the sequence for drawing core figure layer
To pseudo operation region, presented in this, as mounting effect.
(23) user can replace scene figure, and system can be according to the best rest area marked in new scene figure after replacement
Domain recalculates position to mounting figure and scaling adjusts.There are four types of the modes for replacing scene figure: I) clicking button with machine-cut
It changes;II) designated pictures are selected in the scene picture library of system;III) mobile device camera is called to shoot a picture;IV) from shifting
Dynamic equipment photograph album chooses a picture.
(24) user can continue the manufacturing process for operating entire mounting figure on the basis of replacing scene figure.Such as
The addition of scene figure layer is mobile, scaling gesture is monitored, and is dragged, is scaled to mounting figure, implementation is the same as mounting figure manufacturing process
(16)-(17).After completing, system generates a final effect by carrying out automatic screenshot to operating area All Layers
Figure.
3, the production of more figure mounting suspensions.The process of more figure production, after mainly single mounting effect is made,
It is synthesized again by adding the different scene figures for drawing core quantity type.
(31) system provides the different scene figures for drawing core quantity type such as 2 width draw core, 3 width draw core, 4 width picture core, as not
The production entrance of same more figure mounting suspensions selects corresponding scene figure to enter production interface.Some type is chosen to enter
After making interface, drawing core quantity cannot increase and decrease.
(32) upper left angle point, the show area field width that multiple best illustrated regions for drawing core are marked in scene figure are high, are used in combination
Visual way is shown in scene figure.These display areas are equivalent to multiple pseudo operation regions.
(33) the best illustrated region marked in scene figure is clicked, selects artistic work figure to make from the mobile terminals such as mobile phone
To draw core filling.Here picture core filling process is the same as mounting effect making step (11)-(14).
(34) continue to operate mounting effect figure, can replace frame figure (i.e. picture frame figure), adjust paper jam size and color, more
Carry over scape figure.In replacement process, multiple frame figures drawn between core, paper jam color are consistent, but immovable frame position
It sets, frame cannot be zoomed in and out.
After completing, system generates a final effect figure by carrying out automatic screenshot to operating area All Layers.
After mounting effect, suspension decorative effect complete, it can continue in effect picture bottom plus sharing two dimensional code.Most
Whole effect picture can be published to platform, be saved in mobile phone, share to other APP.
The online mounting system of painting and calligraphy pieces can carry out mounting effect production, suspension decorative effect production in the embodiment of the present invention
With the production of more figure mounting suspensions, specifically include:
Operating area presetting module is w for presetting a width0, a height of h0Operating area, All Layers operation (contracting
Put, drag, replace) carried out in this operating area, and the boundary of All Layers is no more than the boundary of the operating area;
Using operating area upper left angle point as origin, coordinate system is established, is to the left positive x-axis, is downwards positive y-axis, calculating is gone out for drill
Make the center point coordinate (x in region0,y0), there is x0=w0/ 2, y0=h0/2。
Picture frame figure layer makes module, for selecting a default picture frame figure as first figure layer, and adjusts picture frame figure
Dimension scale to draw core it is consistent.Picture frame figure is all initially square, and there is identical border width m on four sides3, there is pattern, no
It is transparent;Centre is no pattern, transparent rectangular area, is hollow-out part.Picture frame figure is zoomed in and out according to core the ratio of width to height is drawn,
Until the width w of picture frame figure3, height h3Meet simultaneously: w0>w3>w1、h0>h3>h1、w3-m3*2>w1、h3-m3*2>h1.After scaling
Picture frame figure be plotted on a painting canvas with picture frame figure comparable size, in this, as picture frame figure layer.
Paper jam figure layer makes module, is used to select a default paper jam figure as second figure layer, be stacked on picture frame figure,
Just fill up the hollow-out part of picture frame figure.Paper jam figure is carried out according to transparent rectangular areas (i.e. hollow-out part) size of picture frame figure
Scaling, until paper jam figure width w4, height h4Meet simultaneously: w4+2*m3=w3、h4+2*m3=h3.Paper jam figure after scaling is drawn
It makes onto a painting canvas with picture frame figure hollow-out part comparable size, in this, as paper jam figure layer.
Mounting figure synthesis module, for guaranteeing picture core figure layer, picture frame figure layer and paper jam figure layer these three figure layers by calculating
Central point be overlapped, synthesize a mounting figure, as final mounting effect, show in the center of operating area;It calculates
Coordinate (l of the picture frame figure layer upper left angle point in operating area3, t3), it is desirable that picture frame figure layer central point (x3,y3) with operating area in
Heart point coordinate is identical, i.e. x3=x0,y3=y0, it is calculated: l3=x0-w3/2,t3=y0-y3/2;It calculates in the same way
Paper jam figure layer draws upper left angular coordinate of the core figure layer in operating area.First picture frame figure layer using its upper left angular coordinate as base
Standard is plotted to operating area, paper jam figure layer is then plotted to operating area on the basis of its upper left angle point, finally picture core figure
Layer is plotted to operating area on the basis of its upper left angle point.The production of mounting effect is just completed to this.
Figure layer replaces module, and for respectively independently replacing to picture frame figure layer, paper jam figure layer, picture core figure layer, replacement is appointed
After one layer of meaning, require to re-start default aforesaid operations region, the production of picture frame figure layer, the production of paper jam figure layer and the synthesis of mounting figure
Operation.For replacing the picture of picture frame figure layer, there are four types of adjustment modes: I) can remove this layer;II) when being changed to default
Default picture;III) button can be clicked to switch at random;IV) formulation picture can be selected in system picture frame library.For paper jam
The picture of figure layer, there are two types of adjustment modes: I) can replace paper jam color;II) adjustable paper jam draw core surrounding width,
It is achieved in that and equal proportion scaling is carried out by basic point of central point to picture core figure layer, and must satisfy w3-m3* 2 >=w1、h3-m3>
=h1。
Zoom module is dragged, for mounting effect figure to be dragged or scaled by gesture in operating area.
Scene figure layer drafting module selects the picture (i.e. scene figure) of an identical size for system default, is plotted to
On pseudo operation region, as scene figure layer.
Scene figure layer replaces module, and for replacing scene figure, system can mark most according in new scene figure after replacement
Good placement region recalculates position to mounting figure and scaling adjusts.There are four types of the modes for replacing scene figure: I) clicking and press
Button switches at random;II) designated pictures are selected in the scene picture library of system;III) mobile device camera is called to shoot a picture;
IV) slave mobile device photograph album chooses a picture.
More figure mounting suspensions make module, draw the scene figure of core or 2 width or more picture core as different for providing 2 width
More figure mounting suspensions production entrance, select corresponding scene figure enter production interface, marked in scene figure multiple
Upper left angle point, the show area field width for drawing the best illustrated region of core are high, and are shown in scene figure with visual way;Click scene
The best illustrated region marked in figure selects artistic work figure to fill as picture core from the mobile terminals such as mobile phone.More figure mountings
Suspension production module is also used to replace picture frame figure, adjusts paper jam size and color, replaces scene figure.
The embodiment of the present invention also provides computer readable storage medium, which can be memory
Included in computer readable storage medium, be also possible to the computer readable storage medium of individualism.The present embodiment
Computer-readable recording medium storage has one or more computer programs, after running on a processor, is used by processor
To execute each step of the online method for mounting of painting and calligraphy pieces of the present invention.
The above embodiment is a preferred embodiment of the present invention, but embodiments of the present invention are not by above-described embodiment
Limitation, other any changes, modifications, substitutions, combinations, simplifications made without departing from the spirit and principles of the present invention,
It should be equivalent substitute mode, be included within the scope of the present invention.
Claims (10)
1. the online method for mounting of painting and calligraphy pieces, which is characterized in that including mounting effect manufacturing process;Mounting effect manufacturing process packet
Include following steps:
(11) presetting a width is w0, a height of h0Operating area establish coordinate system using operating area upper left angle point as origin, to
A left side is positive x-axis, is downwards positive y-axis, calculates the center point coordinate (x of operating area0,y0), there is x0=w0/ 2, y0=
h0/2;
After selecting picture core, suitable size of the picture core size scaling into operating area, if finally drawing core size width is w1, it is a height of
h1, then w1<w0, h1<h0;Picture core after scaling is plotted on a painting canvas with picture core comparable size, as picture core figure layer;
(12) select a default picture frame figure as first figure layer, and adjust the dimension scale of picture frame figure to draw core phase one
It causes;
There is identical border width m on four side of picture frame figure3, centre is hollow-out part;It contracts to picture frame figure according to core the ratio of width to height is drawn
It puts, until the width w of picture frame figure3, height h3Meet simultaneously: w0>w3>w1、h0>h3>h1、w3-m3*2>w1、h3-m3*2>h1;Contracting
Picture frame figure after putting is plotted on a painting canvas with picture frame figure comparable size, as picture frame figure layer;
(13) it selects a default paper jam figure as second figure layer, is stacked on picture frame figure, fills up the hollow-out part of picture frame figure;
Paper jam figure is zoomed in and out according to the hollow-out part size of picture frame figure, until paper jam figure width w4, height h4Meet simultaneously:
w4+2*m3=w3、h4+2*m3=h3;Paper jam figure after scaling is plotted to the picture of one with picture frame figure hollow-out part comparable size
On cloth, as paper jam figure layer;
(14) guarantee that the central point of picture core figure layer, picture frame figure layer and paper jam figure layer is overlapped by calculating, synthesize a mounting figure, make
For final mounting effect.
2. the online method for mounting of painting and calligraphy pieces according to claim 1, which is characterized in that step (14) includes:
Picture frame figure layer upper left angle point is calculated in the coordinate (l of operating area3, t3), it is desirable that picture frame figure layer central point (x3,y3) and operation
Regional center point coordinate is identical, i.e. x3=x0,y3=y0, it is calculated: l3=x0-w3/2,t3=y0-y3/2;In the same way
It calculates paper jam figure layer, draw upper left angular coordinate of the core figure layer in operating area;
Picture frame figure layer is first plotted to operating area on the basis of its upper left angular coordinate, then paper jam figure layer with its upper left corner
It is plotted to operating area on the basis of point, picture core figure layer is finally plotted to operating area on the basis of its upper left angle point.
3. the online method for mounting of painting and calligraphy pieces according to claim 1, which is characterized in that mounting effect manufacturing process is also wrapped
Include following steps:
(15) picture frame figure layer, paper jam figure layer, picture core figure layer are respectively independently replaced;After replacing any one layer, weight is required
The calculating process of multiple step (11)-(14).
4. the online method for mounting of painting and calligraphy pieces according to claim 3, which is characterized in that for replacing the figure of picture frame figure layer
Piece, including four kinds of adjustment modes: I) remove this layer;II) it is changed to scarce timesaving default picture;III) button is clicked with machine-cut
It changes;IV) formulation picture is selected in system picture frame library;
For the picture of paper jam figure layer, including two kinds of adjustment modes: I) replacing paper jam color;II) adjustment paper jam is drawing core surrounding
Width, be achieved in that core figure layer is drawn using central point be basic point progress equal proportion scaling, and must satisfy w3-m3* 2 >=
w1、h3-m3>=h1。
5. the online method for mounting of painting and calligraphy pieces according to claim 1, which is characterized in that mounting effect manufacturing process is also wrapped
Include following steps:
(16) in operating area, mounting effect figure is dragged by gesture;The central point of three figure layers, finger is followed
Moving distance and direction on mobile terminal screen, synchronizing moving;
(17) in operating area, mounting effect figure is zoomed in and out by gesture;It is first right to draw core figure layer central point as basic point
The scaling of core figure layer progress and the same dynamics of gesture is drawn, draws picture core figure layer again after scaling;Then the scaling for calculating paper jam, keeps
Paper jam surrounding is basically unchanged before and after scaling at a distance from picture core, and paper jam figure layer is repainted after scaling;Finally to picture frame picture
It carries out and draws the scaling of core in proportion, repaint picture frame figure layer after scaling.
6. the online method for mounting of painting and calligraphy pieces according to claim 1, which is characterized in that further include suspension decorative effect system
Make process;Hang decorative effect manufacturing process the following steps are included:
(21) the scene figure for selecting an identical size, is plotted to operating area, as scene figure layer;It is marked out on scene figure
The upper left angular coordinate of the best placement region of mounting figure, the wide high level in region, pseudo operation area when as production mounting effect
Domain, the upper left angular coordinate of mark are the origin in pseudo operation region, and the central point of the best placement region of mounting figure is virtual behaviour
Make the central point in region;
(22) step (11)-(14) in mounting effect manufacturing process are executed, mounting figure is plotted to pseudo operation region;In void
Quasi- operating area executes mounting effect manufacturing process, calculate separately out picture frame figure layer, paper jam figure layer, the size for drawing core figure layer and it
In the position in pseudo operation region, be successively plotted to pseudo operation according to picture frame figure layer, paper jam figure layer, the sequence for drawing core figure layer
Region is presented as mounting effect.
7. the online method for mounting of painting and calligraphy pieces according to claim 1, which is characterized in that further include more figure mounting suspension effects
The manufacturing process of fruit;The manufacturing process of more figure mounting suspensions the following steps are included:
(31) system provides the scene figure that 2 width draw core or 2 width draw core or more, the production as different more figure mounting suspensions
Entrance selects corresponding scene figure to enter production interface;
(32) it is high that multiple upper left angle points in best illustrated regions for drawing cores, show area field width are marked in scene figure, and with visible
Mode is shown in scene figure;
(33) the best illustrated region marked in scene figure is clicked, artistic work figure is selected to fill out from mobile terminal as picture core
It fills;Core filling process is drawn with mounting effect making step (11)-(14).
8. the online mounting system of painting and calligraphy pieces characterized by comprising
Operating area presetting module is w for presetting a width0, a height of h0Operating area, be with operating area upper left angle point
Origin establishes coordinate system, is to the left positive x-axis, is downwards positive y-axis, calculates the center point coordinate of operating area
(x0,y0), there is x0=w0/ 2, y0=h0/2;After selecting picture core, suitable size of the picture core size scaling into operating area, if
Final core size width of drawing is w1, a height of h1, then w1<w0, h1<h0;Picture core after scaling is plotted to one and picture core comparable size
Painting canvas on, as draw core figure layer;
Picture frame figure layer makes module, for selecting a default picture frame figure as first figure layer, and adjusts the size of picture frame figure
Ratio to draw core it is consistent;There is identical border width m on four side of picture frame figure3, centre is hollow-out part;To picture frame figure according to picture
Core the ratio of width to height zooms in and out, until the width w of picture frame figure3, height h3Meet simultaneously: w0>w3>w1、h0>h3>h1、w3-m3*2>w1、
h3-m3*2>h1;Picture frame figure after scaling is plotted on a painting canvas with picture frame figure comparable size, as picture frame figure layer;
Paper jam figure layer makes module, for selecting a default paper jam figure as second figure layer, is stacked on picture frame figure, fills up
The hollow-out part of picture frame figure;Paper jam figure is zoomed in and out according to the hollow-out part size of picture frame figure, until paper jam figure width w4, it is high
Spend h4Meet simultaneously: w4+2*m3=w3、h4+2*m3=h3;Paper jam figure after scaling is plotted to one and picture frame figure hollow-out part
On the painting canvas of comparable size, as paper jam figure layer;
Mounting figure synthesis module, for being guaranteed in picture core figure layer, picture frame figure layer and paper jam figure layer these three figure layers by calculating
Heart point is overlapped, and synthesizes a mounting figure, as final mounting effect, is shown in the center of operating area.
9. the online mounting system of painting and calligraphy pieces according to claim 8, which is characterized in that further include:
Figure layer replaces module, for respectively independently replacing to picture frame figure layer, paper jam figure layer, picture core figure layer, replaces any one
After layer, require to re-start the behaviour that the default operating area, the production of picture frame figure layer, the production of paper jam figure layer and mounting figure synthesize
Make;
Zoom module is dragged, for mounting effect figure to be dragged or scaled by gesture in operating area;
Scene figure layer drafting module selects the scene figure of an identical size for system default, is plotted to pseudo operation region
On, as scene figure layer;
Scene figure layer replaces module, and for replacing scene figure, system is according to the best placement marked in new scene figure after replacement
Region recalculates position to mounting figure and scaling adjusts;
More figure mounting suspensions make modules, draw the scene figure of core or 2 width or more picture core as different more for providing 2 width
The production entrance of figure mounting suspension selects corresponding scene figure to enter production interface, multiple picture cores is marked in scene figure
The upper left angle point in best illustrated region, show area field width it is high, and shown in scene figure with visual way;It clicks in scene figure
The best illustrated region of mark selects artistic work figure to fill as picture core from mobile terminal.
10. storage medium is stored thereon with computer program, which is characterized in that when the computer program is executed by processor
The step of realizing the online method for mounting of painting and calligraphy pieces described in any one of claim 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910278812.5A CN109808406A (en) | 2019-04-09 | 2019-04-09 | The online method for mounting of painting and calligraphy pieces, system and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910278812.5A CN109808406A (en) | 2019-04-09 | 2019-04-09 | The online method for mounting of painting and calligraphy pieces, system and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109808406A true CN109808406A (en) | 2019-05-28 |
Family
ID=66611700
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910278812.5A Pending CN109808406A (en) | 2019-04-09 | 2019-04-09 | The online method for mounting of painting and calligraphy pieces, system and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109808406A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112907695A (en) * | 2020-03-20 | 2021-06-04 | 上海程烁网络科技有限公司 | Method and system for generating decorative picture matching frame, electronic equipment and storage medium |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1570968A (en) * | 2004-01-18 | 2005-01-26 | 马堃 | Digital image synthesizing method by reusing electronic photo frame |
CN1598878A (en) * | 2003-09-15 | 2005-03-23 | 英华达(上海)电子有限公司 | Digital image processing method combined with frame and photograph |
JP2009015540A (en) * | 2007-07-04 | 2009-01-22 | San Metsuse Kk | Page layout system |
CN101430791A (en) * | 2008-11-14 | 2009-05-13 | 深圳市迅雷网络技术有限公司 | Method and apparatus for synthesizing photo frame on picture |
JP2010129068A (en) * | 2008-12-01 | 2010-06-10 | Spicysoft Kk | Image group editing device and electronic device |
CN102156999A (en) * | 2010-02-11 | 2011-08-17 | 腾讯科技(深圳)有限公司 | Generation method and device thereof for user interface |
US20150302889A1 (en) * | 2012-11-05 | 2015-10-22 | Nexstreaming Corporation | Method for editing motion picture, terminal for same and recording medium |
CN105447267A (en) * | 2015-12-15 | 2016-03-30 | 厉小润 | Image identification technology based picture frame and picture core synthesis method |
JP2017174286A (en) * | 2016-03-25 | 2017-09-28 | ブラザー工業株式会社 | Program and terminal device |
CN107392974A (en) * | 2017-07-13 | 2017-11-24 | 北京金山安全软件有限公司 | Picture generation method and device and terminal equipment |
-
2019
- 2019-04-09 CN CN201910278812.5A patent/CN109808406A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1598878A (en) * | 2003-09-15 | 2005-03-23 | 英华达(上海)电子有限公司 | Digital image processing method combined with frame and photograph |
CN1570968A (en) * | 2004-01-18 | 2005-01-26 | 马堃 | Digital image synthesizing method by reusing electronic photo frame |
JP2009015540A (en) * | 2007-07-04 | 2009-01-22 | San Metsuse Kk | Page layout system |
CN101430791A (en) * | 2008-11-14 | 2009-05-13 | 深圳市迅雷网络技术有限公司 | Method and apparatus for synthesizing photo frame on picture |
JP2010129068A (en) * | 2008-12-01 | 2010-06-10 | Spicysoft Kk | Image group editing device and electronic device |
CN102156999A (en) * | 2010-02-11 | 2011-08-17 | 腾讯科技(深圳)有限公司 | Generation method and device thereof for user interface |
US20150302889A1 (en) * | 2012-11-05 | 2015-10-22 | Nexstreaming Corporation | Method for editing motion picture, terminal for same and recording medium |
CN105447267A (en) * | 2015-12-15 | 2016-03-30 | 厉小润 | Image identification technology based picture frame and picture core synthesis method |
JP2017174286A (en) * | 2016-03-25 | 2017-09-28 | ブラザー工業株式会社 | Program and terminal device |
CN107392974A (en) * | 2017-07-13 | 2017-11-24 | 北京金山安全软件有限公司 | Picture generation method and device and terminal equipment |
Non-Patent Citations (4)
Title |
---|
匿名用户: "《https://wenwen.sogou.com/z/q797954606.htm?ch=fromnewwenwen.pc》", 18 June 2017 * |
国家旅游局人事劳动教育司: "《装饰与布置艺术》", 30 November 1994, 旅游教育出版社 * |
陈凯,黄进青编著: "《中文版Photoshop CS6入门与提高》", 31 October 2012, 北京希望电子出版社 * |
陶晓云: "《玩转智能手机 iphone Android》", 31 July 2017, 东南大学出版社 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112907695A (en) * | 2020-03-20 | 2021-06-04 | 上海程烁网络科技有限公司 | Method and system for generating decorative picture matching frame, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108460840A (en) | The methods of exhibiting and displaying device of virtual house decoration | |
US7346408B2 (en) | Two-dimensional graphics for incorporating on three-dimensional objects | |
CN105392065A (en) | Method and system for arranging page content of intelligent television | |
CN111803945B (en) | Interface rendering method and device, electronic equipment and storage medium | |
US20080018665A1 (en) | System and method for visualizing drawing style layer combinations | |
CN103208225A (en) | Tile map manufacturing method and system | |
US20140063063A1 (en) | Spatial Calibration System for Augmented Reality Display | |
JP2009509248A (en) | Framed art visualization software | |
CN107918549B (en) | Marking method and device for three-dimensional expansion drawing, computer equipment and storage medium | |
WO2022141887A1 (en) | Home decoration plan automatic design method and apparatus, computer device, and storage medium | |
CN115049811B (en) | Editing method, system and storage medium for digital twin virtual three-dimensional scene | |
US20200221849A1 (en) | Printing method and system of a nail printing apparatus, and a medium thereof | |
WO2022141888A1 (en) | Home decoration material moving method and apparatus, and computer device and storage medium | |
CN105045587B (en) | A kind of picture display method and device | |
CN108846893A (en) | Trivector ground drawing generating method and device | |
CN103279902A (en) | Electronic menu display method | |
CN106445439B (en) | A kind of method of online exhibiting pictures | |
CN105094615B (en) | A kind of information processing method and electronic equipment | |
WO2022141886A1 (en) | Home decoration material adjustment method and apparatus, and computer device and storage medium | |
CN107909654A (en) | Home Fashion & Design Shanghai experiencing system based on AR technologies | |
CN109808406A (en) | The online method for mounting of painting and calligraphy pieces, system and storage medium | |
JP2004046326A (en) | Device and method for displaying picture and program | |
CN114612641A (en) | Material migration method and device and data processing method | |
CN102073468B (en) | Method for realizing image edge blending based on window system | |
CN101930340A (en) | Method for generating lighting effect by simulating real page turning for electronic book |
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 |