CN110427236A - A kind of rendering method and device - Google Patents
A kind of rendering method and device Download PDFInfo
- Publication number
- CN110427236A CN110427236A CN201910630465.8A CN201910630465A CN110427236A CN 110427236 A CN110427236 A CN 110427236A CN 201910630465 A CN201910630465 A CN 201910630465A CN 110427236 A CN110427236 A CN 110427236A
- Authority
- CN
- China
- Prior art keywords
- rendering
- view
- mode
- rendering mode
- drawn
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T15/00—3D [Three Dimensional] image rendering
- G06T15/005—General purpose rendering architectures
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Graphics (AREA)
- Human Computer Interaction (AREA)
- General Engineering & Computer Science (AREA)
- User Interface Of Digital Computer (AREA)
- Processing Or Creating Images (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
The invention discloses a kind of rendering methods, comprising: first view and the second view are configured on the painting canvas of writing software;Wherein, the first view and the second view cover the painting canvas, and the first view and the background of second view are set as transparent;Mode is rendered according to Object Selection to be drawn;If selection draws specified object using the first rendering mode in the first view using the first rendering mode;If selection draws specified object using the second rendering mode on second view using the second rendering mode.Correspondingly, the invention also discloses a kind of rendering devices.The present invention is according to demand drawn object a part to be drawn using the first rendering mode, another part is drawn using the second rendering mode, so that demanding to smooth effect be attained by ideal rendering effect to rendered object to rendered object and to rendering speed is demanding, the defect of single rendering mode is overcome to limit.
Description
The application is divisional application, original application application No. is 201610911029.4, the applying date is October 18 in 2016
Day, it is entitled " a kind of rendering method and device ".
Technical field
The present invention relates to field of computer technology more particularly to a kind of rendering method and devices.
Background technique
In the writing software of Android system, there are two types of common rendering modes: SurfaceView rendering and OpenGL wash with watercolours
Dye.Wherein, SurfaceView rendering is due to API (Application Programming Interface, application programming
Interface) to support fairly perfect, person's handwriting can achieve good smooth effect, therefore, it is usually used in amiable description written handwriting, with
And the insert pictures in painting canvas, but when carrying out movement, the scaling of continuous person's handwriting or picture in the painting canvas in writing software,
Since SurfaceView rendering speed does not catch up with the speed of operation, the phenomenon that will lead to Caton, user experience is influenced.Especially
When carrying out global movement, scaling, each person's handwriting or picture are needed to be traversed for, drafting update is carried out one by one and exists
On the view of SurfaceView, entire rendering speed is slack-off with person's handwriting or increasing for picture number, and picture increasingly blocks
.
And OpenGL rendering speed is very fast, be widely used in game and some animation effects it is magnificent application in.Make
When being rendered with OpenGL, the rendering speed of mobile, scaling person's handwriting or picture at least accelerates 10 times (with the quantity of person's handwriting and picture
Increase, effect is more obvious, it might even be possible to which reaching rendering speed OpenGL is a millisecond rank, and SurfaceView rendering is second grade
Not).Especially for the OpenGL rendering of picture, the data texturing of picture is stored in video memory, when carrying out OpenGL rendering
Hardly need time-consuming.So OpenGL rendering does not have the feeling of Caton completely.But OpenGL also has its limitation,
OpenGL does not have lines round and smooth effect, and when lines are very thick, it is unacceptable to draw shape.
Therefore, in the prior art, using single rendering mode, the beneficial effect of different rendering modes can not be provided simultaneously with
Fruit can not also overcome the defect of single rendering mode to limit.It is limited to the API support of operating system, it also can not be in a view
It is upper to use two kinds of rendering modes.
Summary of the invention
The purpose of the present invention is to provide a kind of rendering method and devices, can use two kinds of rendering modes, be provided simultaneously with
The beneficial effect of different rendering modes overcomes the defect of single rendering mode to limit.
To achieve the goals above, one aspect of the present invention provides a kind of rendering method, comprising:
First view and the second view are configured on the painting canvas of writing software;Wherein, the first view and the second view
The painting canvas is covered, and the first view and the background of second view are set as transparent;
Mode is rendered according to Object Selection to be drawn;
If selection draws specified pair using the first rendering mode in the first view using the first rendering mode
As;
If selection draws specified pair using the second rendering mode on second view using the second rendering mode
As.
The invention has the following beneficial effects:
The present invention is configured with first view and the second view on the painting canvas of writing software, due to view background transparent, because
This two view superpositions, user can see the content that two views are rendered simultaneously.According to demand by object one to be drawn
Part is drawn using the first rendering mode, and another part is drawn using the second rendering mode, so that demanding to smooth effect
It is attained by ideal rendering effect to rendered object to rendered object and to rendering speed is demanding, overcomes single rendering side
The defect of formula limits.
Basis Object Selection to be drawn renders mode in one of the embodiments, comprising:
The attribute of object to be drawn is determined by the current operating mode of writing software;Wherein, book is in writing software
When WriteMode, the object to be drawn is to write the object generated according to the touch operation of user;It is in and moves in writing software
Under dynamic model formula or zoom mode, the object to be drawn is according to the touch operation movement of user or the object of scaling;
If object to be drawn is to write the object generated according to the touch operation of user, select using the first rendering side
Formula;
If object to be drawn is to be selected according to the touch operation movement of user or the object of scaling using the second rendering
Mode.
Further, if the selection uses the first rendering side using the first rendering mode in the first view
Formula draws specified object, specifically includes:
If selection is recorded the second object data, is emptied second view using the first rendering mode;Wherein, described
Second object data is the corresponding data of all objects on presently described second view;
In the first view, the corresponding object of second object data is drawn using the first rendering mode;
The touch operation of monitoring users is drawn using the first rendering mode according to the touch in the first view
The object generated is write in operation;
If the selection renders mode using second, the second rendering mode is used to draw on second view specified
Object specifically includes:
If selection is recorded the first object data, is emptied the first view using the second rendering mode;Wherein, described
First object data is the corresponding data of all objects in presently described first view;
On second view, the corresponding object of first object data is drawn using the second rendering mode;
The touch operation of monitoring users is drawn using the second rendering mode according to the touch on second view
The object of operation movement or scaling.
Further, the first rendering mode is SurfaceView rendering, and the second rendering mode is OpenGL wash with watercolours
Dye.
Further, the object includes picture and person's handwriting;Then drawn on second view using the second rendering mode
When making specified object, if the object is person's handwriting, the person's handwriting is drawn according to preset line width using the second rendering mode.
In one of the embodiments, when writing software is in write mode, due to following the touch operation of user raw
Rendering speed is required at written handwriting or insert pictures it is not high, it is good using smooth effect but rendering speed is general
SurfaceView rendering can reach ideal rendering effect;And in movement, the scaling objects such as person's handwriting or picture, using rendering
Fireballing OpenGL rendering, the speed for avoiding rendering speed from not catching up with operation lead to Caton, can also reach ideal rendering effect
Fruit.The same object needs to be drawn on two views with different rendering modes respectively under different working modes, in switching work
When operation mode, all objects are switched on another view to the problem of can avoid image overlapping error.
In further scheme, when using OpenGL color applying drawing person's handwriting, imitated since OpenGL rendering renders thick lines
Fruit is bad, can be achieved the effect that using fixed line width drafting person's handwriting more smooth.
In another embodiment, the basis selects rendering mode to rendered object, comprising:
If being sizing handles to rendered object, select using the first rendering mode;Wherein, the sizing handles are defined as
The control point for being used to control picture size generated on picture edge according to the clicking operation of user;
If being picture to rendered object, select using the second rendering mode.
In another embodiment, rendering mode is directly determined according to the type of rendered object.When rendered object is picture
When, since picture insertion, scaling or movement are all very fast to rate request, the fast rendering mode of rendering speed can be used, and scheme
The sizing handles generated on piece edge are due to relatively low with hand requirement, using the rendering that speed is general but other effects are good
Mode, which renders, to be met the requirements.According to actual needs use different rendering modes, be conducive to the writing software speed of service and
The balance of effect.
Another aspect of the present invention provides a kind of rendering device, comprising:
View configuration module, for configuring first view and the second view on the painting canvas of writing software;Wherein, described
One view and the second view cover the painting canvas, and the first view and the background of second view are set as transparent;
Selecting module is rendered, for rendering mode according to Object Selection to be drawn;
First rendering module, if for selecting to use the first wash with watercolours in the first view using the first rendering mode
Dye mode draws specified object;
Second rendering module, if for selecting to use the second wash with watercolours on second view using the second rendering mode
Dye mode draws specified object.
The rendering selecting module includes: in one of the embodiments,
Mode confirmation unit, for determining the attribute of object to be drawn by the current operating mode of writing software;Wherein,
When writing software is in write mode, the object to be drawn is to write the object generated according to the touch operation of user;
In the case where writing software is in Move Mode or zoom mode, the object to be drawn be according to the touch operation of user it is mobile or
The object of scaling;
First selecting unit, if being to write the object generated according to the touch operation of user for object to be drawn,
Selection uses the first rendering mode;
Second selecting unit, if for object to be drawn be according to the touch operation of user is mobile or the object of scaling,
It then selects using the second rendering mode.
Further, first rendering module includes:
First empties view unit, if for selecting to be recorded the second object data using the first rendering mode, emptied institute
State the second view;Wherein, second object data is the corresponding data of all objects on presently described second view;
First duplication view unit, for drawing described second pair using the first rendering mode in the first view
The corresponding object of image data;
Generation unit is write, for the touch operation of monitoring users, in the first view, uses the first rendering mode
It draws and the object generated is write according to the touch operation;
Second rendering module includes:
Second empties view unit, if for selecting to be recorded the first object data using the second rendering mode, emptied institute
State first view;Wherein, first object data is the corresponding data of all objects in presently described first view;
Second duplication view unit, for drawing described first pair using the second rendering mode in second view
The corresponding object of image data;
Mobile unit for scaling on second view, uses the second rendering mode for the touch operation of monitoring users
It draws according to the object that the touch operation is mobile or scales.
In another embodiment, the rendering selecting module includes:
Sizing handles rendering unit, if selecting for being sizing handles to rendered object using the first rendering mode;Its
In, the sizing handles are defined as the control for being used to control picture size generated on picture edge according to the clicking operation of user
Point;
Picture rendering unit, if selecting for being picture to rendered object using the second rendering mode.
Detailed description of the invention
Fig. 1 is the flow chart of the embodiment one of rendering method provided by the invention;
Fig. 2 is the specific flow chart of the one step S2 of embodiment of rendering method provided by the invention;
Fig. 3 is the specific flow chart of the two step S2 of embodiment of rendering method provided by the invention;
Fig. 4 is the specific flow chart of the three step S2 of embodiment of rendering method provided by the invention;
Fig. 5 is the structural block diagram of rendering device provided by the invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
It is the flow chart of the embodiment one of rendering method provided by the invention referring to Fig. 1.In embodiment one, rendering method
Include:
S1, first view and the second view are configured on the painting canvas of writing software;Wherein, the first view and the second view
Figure covers the painting canvas, and the first view and the background of second view are set as transparent;
S2, mode is rendered according to Object Selection to be drawn;
If S3, selection render mode using first, the first rendering mode is used to draw in the first view specified
Object;
If S4, selection render mode using second, the second rendering mode is used to draw on second view specified
Object.
The embodiment one of rendering method provided by the invention, is configured with first view and second on the painting canvas of writing software
View, due to view background transparent, two view superpositions, user can see the content that two views are rendered simultaneously.
Object a part to be drawn is drawn using the first rendering mode according to demand, another part is drawn using the second rendering mode
System, so that demanding to smooth effect be attained by ideal to rendered object to rendered object and to rendering speed is demanding
Rendering effect, overcome the defect of single rendering mode to limit.
Referring to fig. 2, be rendering method provided by the invention one step S2 of embodiment specific flow chart.In embodiment one
Step S2 specifically include:
S211, the attribute that object to be drawn is determined by the current operating mode of writing software;Wherein, at writing software
When write mode, the object to be drawn is to write the object generated according to the touch operation of user;At writing software
Under Move Mode or zoom mode, the object to be drawn is according to the touch operation movement of user or the object of scaling;
If S212, object to be drawn are to write the object generated according to the touch operation of user, select using first
Rendering mode;
If S213, object to be drawn are to select to use the according to the touch operation of user is mobile or the object of scaling
Two rendering modes.
It should be noted that the operating mode of the writing software of touch screen terminal includes write mode, Move Mode and scaling
Mode, skilled person will appreciate that, under write mode, user executes touch operation on touch screen terminal, grasps according to touching
Person's handwriting object can be generated in the track of work, and user can also be on touch screen terminal, insert pictures;In transport mode, user is touching
Touch operation is executed in screen terminal, according to the track of touch operation, object corresponding to touch point can be moved;In zoom mode
Under, user executes touch operation to the edge of object on touch screen terminal, and it is right can to scale this according to the track of touch operation
As;In addition, Move Mode and zoom mode can be set to same mode.
Writing software can be triggered by various ways enters different operating modes.For example, the writing on touch screen terminal is soft
Part, default enters write mode when writing software starts, and mobile and zoom mode can be entered using specific gesture, specifically
Gesture can be 3 points of triggerings, i.e. three fingers of user are pressed simultaneously, then enters mobile and zoom mode, pair to be drawn at this time
As being switched to according to the touch operation movement of user or the object of scaling, i.e., according to mobile and zoom operations, upgating object;When with
After mobile and scaling is completed at family, then enter write mode when lifting hand.In addition it is also possible to which mould is arranged on the toolbar of writing software
Formula selectionbar, user pass through operation model selection column switching working mode.
Step S3 is specifically included:
If S311, selection are recorded the second object data, are emptied second view using the first rendering mode;Wherein,
Second object data is the corresponding data of all objects on presently described second view;
S312, in the first view, draw the corresponding object of second object data using the first rendering mode;
The touch operation of S313, monitoring users are drawn according in the first view using the first rendering mode
The object generated is write in touch operation;
Step S4 is specifically included:
If S411, selection are recorded the first object data, are emptied the first view using the second rendering mode;Wherein,
First object data is the corresponding data of all objects in presently described first view;
S412, on second view, draw the corresponding object of first object data using the second rendering mode;
The touch operation of S413, monitoring users are drawn according on second view using the second rendering mode
The object of touch operation movement or scaling.
When writing software is in write mode, due to following the touch operation of user to generate written handwriting or insertion figure
Piece requires rendering speed not high, can be used that a kind of smooth effect is good but the general rendering mode of rendering speed, can reach
Ideal rendering effect;And in movement, the scaling objects such as person's handwriting or picture, using the fast rendering side of another rendering speed
Formula is avoided that rendering speed does not catch up with the speed of operation and leads to Caton, can also reach ideal rendering effect.In Android system
On, the good rendering mode of smooth effect is preferably SurfaceView rendering, and the fast rendering mode of rendering speed is preferably OpenGL
Rendering, i.e. the first rendering mode are preferably SurfaceView rendering, and the second rendering mode is preferably OpenGL rendering.At other
In operating system, it can choose other rendering modes as the first rendering mode and the second rendering mode.
When using OpenGL color applying drawing person's handwriting, since OpenGL rendering is bad to thick lines rendering effect, using solid
Fixed line width drafting person's handwriting can achieve the effect that more smooth.That is:
Further, the object includes picture and person's handwriting;Then drawn on second view using the second rendering mode
When making specified object, if the object is person's handwriting, the person's handwriting is drawn according to preset line width using the second rendering mode.
The same object needs to be drawn on two views with different rendering modes respectively under different working modes, is cutting
When the mode that changes jobs, all objects are switched on another view to the problem of can avoid image overlapping error.
The embodiment two of rendering method provided by the invention, rendering method include:
S1, first view and the second view are configured on the painting canvas of writing software;Wherein, the first view and the second view
Figure covers the painting canvas, and the first view and the background of second view are set as transparent;
S2, mode is rendered according to Object Selection to be drawn;
If S3, selection render mode using first, the first rendering mode is used to draw in the first view specified
Object;
If S4, selection render mode using second, the second rendering mode is used to draw on second view specified
Object.
Fig. 3 is the specific flow chart of the two step S2 of embodiment of rendering method provided by the invention.Step S2 is specifically included:
If S221, to rendered object be sizing handles, select using the first rendering mode;Wherein, the sizing handles
It is defined as the control point for being used to control picture size generated on picture edge according to the clicking operation of user;
If S222, to rendered object be picture, select using the second rendering mode.
In embodiment two, in Android system, the first rendering mode is preferably SurfaceView rendering, the second rendering mode
Preferably OpenGL rendering.In other operating systems, it can choose other rendering modes as the first rendering mode and
Two rendering modes.Embodiment two uses rendering mode according to the selection of the type of rendered object.Such as, the object picture in writing software
When selected, it may appear that the control point for generating 8 control picture sizes on picture edge can contract to picture by controlling point
It puts, at this time SurfaceView color applying drawing can be used in this 8 control points, because control point is relatively low with hand requirement,
SurfaceView rendering is also easier to be drawn;And the scaling of picture is just drawn using OpenGL rendering, to avoid
The case where Caton.Under the premise of view is transparent, the content that user sees is the content of two views superposition.In addition, person's handwriting pair
As SurfaceView color applying drawing also can be used, the rendering effect for avoiding OpenGL rendering from identifying the handwriting is bad, i.e. step S2 is also
Include:
If S223, to rendered object be person's handwriting, select using the first rendering mode.
The embodiment three of rendering method provided by the invention, rendering method include:
S1, first view and the second view are configured on the painting canvas of writing software;Wherein, the first view and the second view
Figure covers the painting canvas, and the first view and the background of second view are set as transparent;
S2, mode is rendered according to Object Selection to be drawn;
If S3, selection render mode using first, the first rendering mode is used to draw in the first view specified
Object;
If S4, selection render mode using second, the second rendering mode is used to draw on second view specified
Object.
Referring to fig. 4, be rendering mode provided by the invention three step S2 of embodiment specific flow chart.
Step S2 includes:
S231, according to whether receive from when front opening page jump to the page-turning instruction of target pages, judge wait draw
Object whether be page-turning effect target pages;
If S232, it is described to rendered object be not page-turning effect target pages, select using the first rendering mode;
If S233, it is described to rendered object be page-turning effect target pages, select using the second rendering mode;
Step S3 specifically: if selection uses the first rendering side using the first rendering mode in the first view
Formula is drawn by the object of the touch operation generation of user, movement or scaling;
Step S4 specifically: if selection empties the first view, in second view using the second rendering mode
It is upper to draw the target pages using the second rendering mode.
In embodiment three, in Android system, the first rendering mode is preferably SurfaceView rendering, the second rendering mode
Preferably OpenGL rendering.In other operating systems, it can choose other rendering modes as the first rendering mode and
Two rendering modes.Embodiment three renders page-turning effect using OpenGL, improves the speed of page turning.
It is the structural block diagram of rendering device provided by the invention referring to Fig. 5.Another aspect of the present invention provides a kind of rendering dress
It sets, comprising:
View configuration module 1, for configuring first view and the second view on the painting canvas of writing software;Wherein, described
First view and the second view cover the painting canvas, and the first view and the background of second view are set as
It is bright;
Selecting module 2 is rendered, for rendering mode according to Object Selection to be drawn;
First rendering module 3, if for selecting to use the first wash with watercolours in the first view using the first rendering mode
Dye mode draws specified object;
Second rendering module 4, if for selecting to use the second wash with watercolours on second view using the second rendering mode
Dye mode draws specified object.
The rendering selecting module includes: in one of the embodiments,
Mode confirmation unit, for determining the attribute of object to be drawn by the current operating mode of writing software;Wherein,
When writing software is in write mode, the object to be drawn is to write the object generated according to the touch operation of user;
In the case where writing software is in Move Mode or zoom mode, the object to be drawn be according to the touch operation of user it is mobile or
The object of scaling;
First selecting unit, if being to write the object generated according to the touch operation of user for object to be drawn,
Selection uses the first rendering mode;
Second selecting unit, if for object to be drawn be according to the touch operation of user is mobile or the object of scaling,
It then selects using the second rendering mode.
Further, first rendering module includes:
First empties view unit, if for selecting to be recorded the second object data using the first rendering mode, emptied institute
State the second view;Wherein, second object data is the corresponding data of all objects on presently described second view;
First duplication view unit, for drawing described second pair using the first rendering mode in the first view
The corresponding object of image data;
Generation unit is write, for the touch operation of monitoring users, in the first view, uses the first rendering mode
It draws and the object generated is write according to the touch operation;
Second rendering module includes:
Second empties view unit, if for selecting to be recorded the first object data using the second rendering mode, emptied institute
State first view;Wherein, first object data is the corresponding data of all objects in presently described first view;
Second duplication view unit, for drawing described first pair using the second rendering mode in second view
The corresponding object of image data;
Mobile unit for scaling on second view, uses the second rendering mode for the touch operation of monitoring users
It draws according to the object that the touch operation is mobile or scales.
In another embodiment, the rendering selecting module includes:
Sizing handles rendering unit, if selecting for being sizing handles to rendered object using the first rendering mode;Its
In, the sizing handles are defined as the control for being used to control picture size generated on picture edge according to the clicking operation of user
Point;
Picture rendering unit, if selecting for being picture to rendered object using the second rendering mode.
The present invention is configured with first view and the second view on the painting canvas of writing software, due to view background transparent, because
This two view superpositions, user can see the content that two views are rendered simultaneously.According to demand by object one to be drawn
Part is drawn using the first rendering mode, and another part is drawn using the second rendering mode, so that demanding to smooth effect
It is attained by ideal rendering effect to rendered object to rendered object and to rendering speed is demanding, overcomes single rendering side
The defect of formula limits.
It is the preferred embodiment of the present invention above, it is noted that for those skilled in the art,
Without departing from the principle of the present invention, several improvement and deformations can also be made, these improvement and deformations are also considered as this hair
Bright protection scope.
Claims (16)
1. a kind of rendering method characterized by comprising
First view and the second view are configured on the painting canvas of writing software;Wherein, the first view and the second view cover
The painting canvas is covered, and the first view and the background of second view are set as transparent;
Mode is rendered according to Object Selection to be drawn;
If selection draws specified object using the first rendering mode in the first view using the first rendering mode;
If selection draws specified object using the second rendering mode on second view using the second rendering mode;
The rendering speed of the second rendering mode is higher than the rendering speed of the first rendering mode.
2. rendering method as described in claim 1, which is characterized in that basis Object Selection to be drawn renders mode,
Include:
The attribute of object to be drawn is determined by the current operating mode of writing software;Wherein, it is in writing software and writes mould
When formula, the object to be drawn is to write the object generated according to the touch operation of user;Mobile mould is in writing software
Under formula or zoom mode, the object to be drawn is according to the touch operation movement of user or the object of scaling;
If object to be drawn is to write the object generated according to the touch operation of user, select using the first rendering mode;
If object to be drawn is to be selected according to the touch operation movement of user or the object of scaling using the second rendering side
Formula.
3. rendering method as claimed in claim 2, which is characterized in that if the selection renders mode using first, in institute
It states and draws specified object using the first rendering mode in first view, specifically include:
If selection is recorded the second object data, is emptied second view using the first rendering mode;Wherein, described second
Object data is the corresponding data of all objects on presently described second view;
In the first view, the corresponding object of second object data is drawn using the first rendering mode;
The touch operation of monitoring users is drawn using the first rendering mode according to the touch operation in the first view
Write the object generated;
If the selection draws specified pair using the second rendering mode on second view using the second rendering mode
As specifically including:
If selection is recorded the first object data, is emptied the first view using the second rendering mode;Wherein, described first
Object data is the corresponding data of all objects in presently described first view;
On second view, the corresponding object of first object data is drawn using the second rendering mode;
The touch operation of monitoring users is drawn using the second rendering mode according to the touch operation on second view
Mobile or scaling object.
4. rendering method as described in any one of claims 1 to 3, which is characterized in that the first rendering mode is
SurfaceView rendering, the second rendering mode are OpenGL rendering.
5. rendering method as claimed in claim 4, which is characterized in that the object includes picture and person's handwriting;Then described
When drawing specified object using the second rendering mode on two views, if the object is person's handwriting, pressed using the second rendering mode
The person's handwriting is drawn according to preset line width.
6. rendering method as claimed in claim 5, spy's card is, the picture is that the user is inserted under write mode
, the person's handwriting is to be write to generate according to the touch operation of user under write mode.
7. rendering method as described in claim 1, which is characterized in that the basis selects rendering mode, packet to rendered object
It includes:
If being sizing handles to rendered object, select using the first rendering mode;Wherein, the sizing handles are defined as basis
The control point for being used to control picture size that the clicking operation of user generates on picture edge;
If being picture to rendered object, select using the second rendering mode.
8. rendering method as claimed in claim 7, which is characterized in that the basis selects rendering mode, also to rendered object
Include:
If being person's handwriting to rendered object, select using the first rendering mode.
9. rendering method as described in claim 1, which is characterized in that basis Object Selection to be drawn renders mode packet
It includes:
According to whether receive from when front opening page jump to target pages page-turning instruction, judge to rendered object whether be
The target pages of page-turning effect;
If described is not the target pages of page-turning effect to rendered object, select using the first rendering mode;
If described is the target pages of page-turning effect to rendered object, select using the second rendering mode.
10. rendering method as claimed in claim 9, which is characterized in that if the selection renders mode using first, in institute
It states and draws specified object using the first rendering mode in first view and include:
If selection is using the first rendering mode, described right using the first rendering mode rendered object in the first view
As if it is generated by the touch operation of user, mobile or scaling object.
11. rendering method as claimed in claim 9, which is characterized in that if the selection renders mode using second, in institute
It states and draws specified object using the second rendering mode on the second view and include:
If selection is emptied the first view, the second rendering side is used on second view using the second rendering mode
Formula draws the target pages.
12. rendering method as described in claim 1, which is characterized in that the writing software is the software of Android system.
13. a kind of rendering device characterized by comprising
View configuration module, for configuring first view and the second view on the painting canvas of writing software;Wherein, first view
Figure and the second view cover the painting canvas, and the first view and the background of second view are set as transparent;
Selecting module is rendered, for rendering mode according to Object Selection to be drawn;
First rendering module, if for selecting to use the first rendering side in the first view using the first rendering mode
Formula draws specified object;
Second rendering module, if for selecting to use the second rendering side on second view using the second rendering mode
Formula draws specified object;
The rendering speed of the second rendering mode is higher than the rendering speed of the first rendering mode.
14. rendering device as claimed in claim 13, which is characterized in that the rendering selecting module includes:
Mode confirmation unit, for determining the attribute of object to be drawn by the current operating mode of writing software;Wherein, in book
When writing software and being in write mode, the object to be drawn is to write the object generated according to the touch operation of user;In book
It writes software to be under Move Mode or zoom mode, the object to be drawn is according to the touch operation movement of user or scaling
Object;
First selecting unit selects if being to write the object generated according to the touch operation of user for object to be drawn
Use the first rendering mode;
Second selecting unit, if being to be selected according to the touch operation movement of user or the object of scaling for object to be drawn
It selects and uses the second rendering mode.
15. rendering device as claimed in claim 14, which is characterized in that first rendering module includes:
First empties view unit, if for selecting to be recorded the second object data using the first rendering mode, emptied described the
Two views;Wherein, second object data is the corresponding data of all objects on presently described second view;
First duplication view unit, for drawing second number of objects using the first rendering mode in the first view
According to corresponding object;
Generation unit is write in the first view, to draw using the first rendering mode for the touch operation of monitoring users
The object generated is write according to the touch operation;
Second rendering module includes:
Second empties view unit, if for selecting to be recorded the first object data using the second rendering mode, emptied described the
One view;Wherein, first object data is the corresponding data of all objects in presently described first view;
Second duplication view unit, for drawing first number of objects using the second rendering mode in second view
According to corresponding object;
Mobile unit for scaling on second view, is drawn for the touch operation of monitoring users using the second rendering mode
According to the object that the touch operation is mobile or scales.
16. rendering device as claimed in claim 13, which is characterized in that the rendering selecting module includes:
Sizing handles rendering unit, if selecting for being sizing handles to rendered object using the first rendering mode;Wherein,
The sizing handles are defined as the control point for being used to control picture size generated on picture edge according to the clicking operation of user;
Picture rendering unit, if selecting for being picture to rendered object using the second rendering mode.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910630465.8A CN110427236B (en) | 2016-10-18 | 2016-10-18 | Rendering method and device |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610911029.4A CN106502667B (en) | 2016-10-18 | 2016-10-18 | A kind of rendering method and device |
CN201910630465.8A CN110427236B (en) | 2016-10-18 | 2016-10-18 | Rendering method and device |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610911029.4A Division CN106502667B (en) | 2016-10-18 | 2016-10-18 | A kind of rendering method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110427236A true CN110427236A (en) | 2019-11-08 |
CN110427236B CN110427236B (en) | 2023-06-09 |
Family
ID=58295349
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610911029.4A Active CN106502667B (en) | 2016-10-18 | 2016-10-18 | A kind of rendering method and device |
CN201910630465.8A Active CN110427236B (en) | 2016-10-18 | 2016-10-18 | Rendering method and device |
Family Applications Before (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610911029.4A Active CN106502667B (en) | 2016-10-18 | 2016-10-18 | A kind of rendering method and device |
Country Status (2)
Country | Link |
---|---|
CN (2) | CN106502667B (en) |
WO (1) | WO2018072386A1 (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106502667B (en) * | 2016-10-18 | 2019-09-03 | 广州视睿电子科技有限公司 | A kind of rendering method and device |
CN109032710B (en) * | 2017-06-09 | 2022-05-24 | 斑马智行网络(香港)有限公司 | Interface adjusting method, device, equipment and storage medium |
CN109448088B (en) * | 2018-10-22 | 2023-02-21 | 广州视源电子科技股份有限公司 | Method and device for rendering three-dimensional graphic wire frame, computer equipment and storage medium |
CN110152291A (en) * | 2018-12-13 | 2019-08-23 | 腾讯科技(深圳)有限公司 | Rendering method, device, terminal and the storage medium of game picture |
CN109960543B (en) * | 2019-03-18 | 2022-07-19 | 广州视源电子科技股份有限公司 | Writing operation processing method and device |
CN112565839B (en) * | 2020-11-23 | 2022-11-29 | 青岛海信传媒网络技术有限公司 | Display method and display device of screen projection image |
CN114170368A (en) * | 2021-12-10 | 2022-03-11 | 京东方科技集团股份有限公司 | Method and system for rendering quadrilateral wire frame of model and model rendering equipment |
CN115550713B (en) * | 2022-11-29 | 2023-04-28 | 杭州星犀科技有限公司 | Audio and video live broadcast rendering method, device, equipment and medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060291749A1 (en) * | 2005-06-07 | 2006-12-28 | Ralf Scheidhauer | Systems and methods for rendering symbols using non-linear scaling |
WO2014019127A1 (en) * | 2012-07-31 | 2014-02-06 | Intel Corporation (A Corporation Of Delaware) | Hybrid rendering systems and methods |
CN104081439A (en) * | 2012-01-31 | 2014-10-01 | 三菱电机株式会社 | Map drawing device, navigation device and map drawing method |
CN104331297A (en) * | 2014-11-28 | 2015-02-04 | 广东威创视讯科技股份有限公司 | Drawing method and drawing device for render engine |
CN104407865A (en) * | 2014-11-25 | 2015-03-11 | 广州酷狗计算机科技有限公司 | Method and device for displaying window |
CN104750473A (en) * | 2013-12-31 | 2015-07-01 | 鸿合科技有限公司 | Android system based writing superposition method |
CN105046740A (en) * | 2015-06-25 | 2015-11-11 | 上海卓悠网络科技有限公司 | 3D graph processing method based on OpenGL ES and device thereof |
CN105574925A (en) * | 2015-12-11 | 2016-05-11 | 中国航空工业集团公司西安航空计算技术研究所 | Self-adaptive dynamic selection strategy of light treatment algorithm |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103164839B (en) * | 2013-03-07 | 2019-06-21 | 华为技术有限公司 | A kind of drawing practice, device and terminal |
US9275493B2 (en) * | 2013-05-14 | 2016-03-01 | Google Inc. | Rendering vector maps in a geographic information system |
CN105096373B (en) * | 2015-06-30 | 2020-04-28 | 华为技术有限公司 | Media content rendering method, user equipment and system |
CN105405159A (en) * | 2015-10-27 | 2016-03-16 | 深圳市东向同人科技有限公司 | Handwriting display method and device |
CN105760073B (en) * | 2016-02-01 | 2018-11-06 | 锐达互动科技股份有限公司 | A method of realizing graphical perspectives in interactive electric whiteboard software |
CN105916023B (en) * | 2016-05-16 | 2019-04-23 | 武汉斗鱼网络科技有限公司 | A kind of Video Rendering method and system based on GPU |
CN106502667B (en) * | 2016-10-18 | 2019-09-03 | 广州视睿电子科技有限公司 | A kind of rendering method and device |
-
2016
- 2016-10-18 CN CN201610911029.4A patent/CN106502667B/en active Active
- 2016-10-18 CN CN201910630465.8A patent/CN110427236B/en active Active
-
2017
- 2017-03-17 WO PCT/CN2017/077141 patent/WO2018072386A1/en active Application Filing
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060291749A1 (en) * | 2005-06-07 | 2006-12-28 | Ralf Scheidhauer | Systems and methods for rendering symbols using non-linear scaling |
CN104081439A (en) * | 2012-01-31 | 2014-10-01 | 三菱电机株式会社 | Map drawing device, navigation device and map drawing method |
WO2014019127A1 (en) * | 2012-07-31 | 2014-02-06 | Intel Corporation (A Corporation Of Delaware) | Hybrid rendering systems and methods |
CN104750473A (en) * | 2013-12-31 | 2015-07-01 | 鸿合科技有限公司 | Android system based writing superposition method |
CN104407865A (en) * | 2014-11-25 | 2015-03-11 | 广州酷狗计算机科技有限公司 | Method and device for displaying window |
CN104331297A (en) * | 2014-11-28 | 2015-02-04 | 广东威创视讯科技股份有限公司 | Drawing method and drawing device for render engine |
CN105046740A (en) * | 2015-06-25 | 2015-11-11 | 上海卓悠网络科技有限公司 | 3D graph processing method based on OpenGL ES and device thereof |
CN105574925A (en) * | 2015-12-11 | 2016-05-11 | 中国航空工业集团公司西安航空计算技术研究所 | Self-adaptive dynamic selection strategy of light treatment algorithm |
Non-Patent Citations (1)
Title |
---|
周志惠: "嵌入式浏览器移植与图形库优化", 《信息科技辑》 * |
Also Published As
Publication number | Publication date |
---|---|
CN106502667B (en) | 2019-09-03 |
CN106502667A (en) | 2017-03-15 |
CN110427236B (en) | 2023-06-09 |
WO2018072386A1 (en) | 2018-04-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106502667B (en) | A kind of rendering method and device | |
CN110716680B (en) | Control method and device of intelligent interactive panel | |
US9489040B2 (en) | Interactive input system having a 3D input space | |
CN102725711B (en) | Edge gesture | |
US9619104B2 (en) | Interactive input system having a 3D input space | |
US20180024719A1 (en) | User interface systems and methods for manipulating and viewing digital documents | |
CN105976417A (en) | Animation generating method and apparatus | |
CN106484242A (en) | The method for information display at interface and device | |
US20100277422A1 (en) | Touchpad display | |
US9110512B2 (en) | Interactive input system having a 3D input space | |
JP2003303047A (en) | Image input and display system, usage of user interface as well as product including computer usable medium | |
US9013509B2 (en) | System and method for manipulating digital images on a computer display | |
CN103605461A (en) | Method and terminal for displaying application interfaces | |
CN108509142A (en) | A kind of writing software exchange method, device, terminal device and storage medium | |
CN103399629A (en) | Method and device for capturing gesture displaying coordinates | |
CN110471587A (en) | Exchange method, interactive device, terminal and computer readable storage medium | |
EP4268913A1 (en) | Position adjustment method and apparatus for operation controls, and terminal, and storage medium | |
JP5875262B2 (en) | Display control device | |
JP6131004B2 (en) | Object display method, program, and apparatus | |
EP2712433B1 (en) | User interface for drawing with electronic devices | |
KR101211178B1 (en) | System and method for playing contents of augmented reality | |
US20200341607A1 (en) | Scrolling interface control for computer display | |
CN113741775A (en) | Image processing method and device and electronic equipment | |
CN108932054A (en) | The recording medium of display device, display methods and non-transitory | |
JP6192793B2 (en) | Object display method, program, and apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |