CN110427236B - Rendering method and device - Google Patents

Rendering method and device Download PDF

Info

Publication number
CN110427236B
CN110427236B CN201910630465.8A CN201910630465A CN110427236B CN 110427236 B CN110427236 B CN 110427236B CN 201910630465 A CN201910630465 A CN 201910630465A CN 110427236 B CN110427236 B CN 110427236B
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.)
Active
Application number
CN201910630465.8A
Other languages
Chinese (zh)
Other versions
CN110427236A (en
Inventor
扶宇琳
陈双龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201910630465.8A priority Critical patent/CN110427236B/en
Publication of CN110427236A publication Critical patent/CN110427236A/en
Application granted granted Critical
Publication of CN110427236B publication Critical patent/CN110427236B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/005General 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 rendering method, which comprises the following steps: configuring a first view and a second view on a canvas of the writing software; wherein the first view and the second view both cover the canvas, and the backgrounds of the first view and the second view are transparent; selecting a rendering mode according to an object to be drawn; if the first rendering mode is selected to be used, drawing a specified object on the first view by using the first rendering mode; and if the second rendering mode is selected to be used, drawing the specified object on the second view by using the second rendering mode. Correspondingly, the invention also discloses a rendering device. According to the invention, one part of the objects to be drawn is drawn by using a first rendering mode and the other part is drawn by using a second rendering mode according to the requirements, so that the objects to be drawn with high requirements on smooth effect and the objects to be drawn with high requirements on rendering speed can achieve ideal rendering effect, and the defect limitation of a single rendering mode is overcome.

Description

Rendering method and device
The application is a divisional application, the application number of the original application is 201610911029.4, the application date is 10 months and 18 days in 2016, and the name of the application is a rendering method and device.
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a rendering method and apparatus.
Background
In the writing software of the android system, two common rendering modes are surface view rendering and OpenGL rendering. The SurfaceView rendering is well supported by an API (Application Programming Interface ), and the handwriting can achieve a good smooth effect, so that the SurfaceView rendering is commonly used for following and drawing the handwriting and inserting pictures into a canvas, but when continuous handwriting or picture moving and scaling are performed in the canvas of the writing software, the SurfaceView rendering speed cannot keep up with the operation speed, so that the phenomenon of blocking is caused, and the user experience is affected. Particularly, when global movement and scaling are performed, each handwriting or picture needs to be traversed, drawing updating is performed one by one on the view of the surface view, the whole rendering speed is reduced along with the increase of the number of the handwriting or picture, and the picture is blocked more and more.
The OpenGL rendering speed is very fast, and the OpenGL rendering method is widely applied to games and applications with gorgeous animation effects. When OpenGL rendering is used, the rendering speed of moving, scaling the handwriting or picture is increased by at least 10 times (as the number of handwriting and picture increases, the effect is more obvious, and even the rendering speed OpenGL can be reached to be in the millisecond level, while the surfview rendering is in the second level). In particular, for OpenGL rendering of a picture, texture data of the picture is stored in a video memory, and time consumption is hardly required when OpenGL rendering is performed. The OpenGL rendering does not have a click feel at all. However, openGL has its limitation that OpenGL has no smooth effect on lines, and drawing shape is not acceptable when lines are thick.
Therefore, in the prior art, a single rendering mode is adopted, so that the beneficial effects of different rendering modes cannot be achieved at the same time, and the defect limitation of the single rendering mode cannot be overcome. It is also not possible to use two rendering modes on one view, subject to API support by the operating system.
Disclosure of Invention
The invention aims to provide a rendering method and a rendering device, which can use two rendering modes, have the beneficial effects of different rendering modes and overcome the defect limitation of a single rendering mode.
In order to achieve the above object, an aspect of the present invention provides a rendering method, including:
configuring a first view and a second view on a canvas of the writing software; wherein the first view and the second view both cover the canvas, and the backgrounds of the first view and the second view are transparent;
selecting a rendering mode according to an object to be drawn;
if the first rendering mode is selected to be used, drawing a specified object on the first view by using the first rendering mode;
and if the second rendering mode is selected to be used, drawing the specified object on the second view by using the second rendering mode.
The implementation of the invention has the following beneficial effects:
the invention configures the first view and the second view on the canvas of the writing software, and because the view background is transparent, the two views are overlapped, and a user can simultaneously see the contents rendered by the two views. And according to the requirements, one part of the objects to be drawn is drawn by using a first rendering mode, and the other part of the objects to be drawn is drawn by using a second rendering mode, so that the objects to be drawn with high requirements on the smooth effect and the objects to be drawn with high requirements on the rendering speed can achieve ideal rendering effects, and the defect limitation of a single rendering mode is overcome.
In one embodiment, the selecting a rendering mode according to the object to be drawn includes:
determining the attribute of an object to be drawn according to the current working mode of writing software; when the writing software is in a writing mode, the object to be drawn is an object generated by writing according to touch operation of a user; in the case that the writing software is in a moving mode or a zooming mode, the object to be drawn is an object which moves or zooms according to the touch operation of a user;
if the object to be drawn is an object generated by writing according to touch operation of a user, selecting to use a first rendering mode;
and if the object to be drawn is the object which is moved or zoomed according to the touch operation of the user, selecting to use the second rendering mode.
Further, if the first rendering mode is selected, drawing the specified object on the first view by using the first rendering mode, which specifically includes:
if the first rendering mode is selected to be used, recording second object data, and emptying the second view; the second object data are data corresponding to all objects in the second view at present;
drawing an object corresponding to the second object data on the first view by using a first rendering mode;
monitoring touch operation of a user, and drawing an object generated according to the touch operation writing in a first rendering mode on the first view;
if the second rendering mode is selected, drawing the specified object on the second view by using the second rendering mode, wherein the method specifically comprises the following steps:
if the second rendering mode is selected to be used, recording first object data, and emptying the first view; the first object data are data corresponding to all objects in the first view at present;
drawing an object corresponding to the first object data in the second view by using a second rendering mode;
and monitoring touch operation of a user, and drawing an object which is moved or zoomed according to the touch operation in the second view by using a second rendering mode.
Further, the first rendering mode is surface view rendering, and the second rendering mode is OpenGL rendering.
Further, the object comprises a picture and handwriting; and when the appointed object is drawn on the second view by using a second rendering mode, if the object is handwriting, drawing the handwriting according to a preset line width by using the second rendering mode.
In one embodiment, when the writing software is in a writing mode, the writing handwriting or the insertion picture generated by following the touch operation of the user has low requirement on the rendering speed, and ideal rendering effect can be achieved by adopting surface view rendering with good smooth effect and general rendering speed; when moving and zooming objects such as handwriting or pictures, the OpenGL rendering with high rendering speed is adopted, so that the phenomenon that the rendering speed is blocked due to the fact that the rendering speed cannot keep pace with the operation speed is avoided, and an ideal rendering effect can be achieved. When the working mode is switched, all objects are switched to the other view, so that the problem of image overlapping errors can be avoided.
In the further scheme, when the OpenGL is used for rendering and drawing the handwriting, the OpenGL is poor in rendering effect on the thick line, and the smooth effect can be achieved by adopting the fixed line width for drawing the handwriting.
In another embodiment, the selecting a rendering mode according to the object to be drawn includes:
if the object to be drawn is a zoom control point, selecting a first rendering mode; the scaling control point is defined as a control point which is generated on the edge of the picture according to clicking operation of a user and used for controlling the size of the picture;
and if the object to be drawn is a picture, selecting a second rendering mode.
In another embodiment, the rendering mode is determined directly according to the type of the drawing object. When the drawing object is a picture, as the speed requirement of picture insertion, scaling or movement is faster, a rendering mode with fast rendering speed can be used, and the scaling control point generated on the edge of the picture is relatively lower in following hand requirement, so that rendering in a rendering mode with normal speed but good other effects is adopted to meet the requirement. Different rendering modes are used according to actual demands, so that the running speed and the effect balance of the writing software are facilitated.
Another aspect of the present invention provides a rendering apparatus, including:
a view configuration module for configuring a first view and a second view on a canvas of the writing software; wherein the first view and the second view both cover the canvas, and the backgrounds of the first view and the second view are transparent;
the rendering selection module is used for selecting a rendering mode according to the object to be drawn;
the first rendering module is used for drawing the specified object on the first view by using the first rendering mode if the first rendering mode is selected to be used;
and the second rendering module is used for drawing the specified object on the second view by using the second rendering mode if the second rendering mode is selected to be used.
In one embodiment, the rendering selection module includes:
a mode confirmation unit for determining the attribute of the object to be drawn by the current working mode of the writing software; when the writing software is in a writing mode, the object to be drawn is an object generated by writing according to touch operation of a user; in the case that the writing software is in a moving mode or a zooming mode, the object to be drawn is an object which moves or zooms according to the touch operation of a user;
the first selection unit is used for selecting a first rendering mode if the object to be drawn is an object generated by writing according to touch operation of a user;
and the second selection unit is used for selecting a second rendering mode to be used if the object to be drawn is the object which is moved or zoomed according to the touch operation of the user.
Further, the first rendering module includes:
a first emptying view unit, configured to record second object data and empty the second view if the first rendering mode is selected to be used; the second object data are data corresponding to all objects in the second view at present;
the first copying view unit is used for drawing an object corresponding to the second object data in a first rendering mode on the first view;
the writing generating unit is used for monitoring touch operation of a user, and drawing an object generated according to the touch operation writing in the first view by using a first rendering mode;
the second rendering module includes:
the second emptying view unit is used for recording the first object data and emptying the first view if the second rendering mode is selected to be used; the first object data are data corresponding to all objects in the first view at present;
a second copy view unit, configured to draw, on the second view, an object corresponding to the first object data using a second rendering manner;
and the mobile scaling unit is used for monitoring touch operation of a user, and drawing an object which is moved or scaled according to the touch operation by using a second rendering mode on the second view.
In another embodiment, the rendering selection module includes:
the scaling control point rendering unit is used for selecting a first rendering mode if the object to be drawn is a scaling control point; the scaling control point is defined as a control point which is generated on the edge of the picture according to clicking operation of a user and used for controlling the size of the picture;
and the picture rendering unit is used for selecting a second rendering mode if the object to be drawn is a picture.
Drawings
FIG. 1 is a flow chart of a first embodiment of a rendering method provided by the present invention;
FIG. 2 is a flowchart showing a step S2 of the rendering method according to the embodiment of the present invention;
FIG. 3 is a flowchart showing a second step S2 of the rendering method according to the embodiment of the present invention;
fig. 4 is a specific flowchart of a third step S2 of the embodiment of the rendering method provided by the present invention;
fig. 5 is a block diagram of a rendering apparatus according to the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, a flowchart of a first embodiment of a rendering method provided by the present invention is shown. In a first embodiment, a rendering method includes:
s1, configuring a first view and a second view on a canvas of writing software; wherein the first view and the second view both cover the canvas, and the backgrounds of the first view and the second view are transparent;
s2, selecting a rendering mode according to the object to be drawn;
s3, if the first rendering mode is selected to be used, drawing a specified object on the first view by using the first rendering mode;
and S4, if the second rendering mode is selected to be used, drawing the specified object on the second view by using the second rendering mode.
According to the first embodiment of the rendering method, the first view and the second view are configured on the canvas of the writing software, and the two views are overlapped due to transparent view background, so that a user can see the content rendered by the two views at the same time. And according to the requirements, one part of the objects to be drawn is drawn by using a first rendering mode, and the other part of the objects to be drawn is drawn by using a second rendering mode, so that the objects to be drawn with high requirements on the smooth effect and the objects to be drawn with high requirements on the rendering speed can achieve ideal rendering effects, and the defect limitation of a single rendering mode is overcome.
Referring to fig. 2, a specific flowchart of step S2 in an embodiment of the rendering method provided by the present invention is shown. Step S2 in the first embodiment specifically includes:
s211, determining the attribute of an object to be drawn according to the current working mode of writing software; when the writing software is in a writing mode, the object to be drawn is an object generated by writing according to touch operation of a user; in the case that the writing software is in a moving mode or a zooming mode, the object to be drawn is an object which moves or zooms according to the touch operation of a user;
s212, if the object to be drawn is an object generated by writing according to touch operation of a user, selecting to use a first rendering mode;
s213, if the object to be drawn is the object which is moved or zoomed according to the touch operation of the user, selecting to use the second rendering mode.
It should be noted that, the working modes of the writing software of the touch screen terminal include a writing mode, a moving mode and a zooming mode, and those skilled in the art can know that in the writing mode, a user performs a touch operation on the touch screen terminal, and according to the track of the touch operation, a handwriting object can be generated, and the user can insert a picture on the touch screen terminal; in a moving mode, a user executes touch operation on the touch screen terminal, and an object corresponding to a touch point can be moved according to a track of the touch operation; in a zoom mode, a user performs touch operation on the edge of an object on the touch screen terminal, and the object can be zoomed according to the track of the touch operation; further, the movement mode and the scaling mode may be set to the same mode.
The writing software may be triggered into different modes of operation in a number of ways. For example, writing software on a touch screen terminal enters a writing mode by default when the writing software is started, a specific gesture can be adopted to enter a moving and zooming mode, the specific gesture can be triggered by three points, namely, three fingers of a user are simultaneously pressed down, the moving and zooming mode is entered, at the moment, an object to be drawn is switched to an object which moves or zooms according to the touch operation of the user, namely, the object is updated according to the moving and zooming operation; when the user finishes moving and zooming, the user can enter a writing mode when lifting the hand. In addition, a mode selection field may be provided on a toolbar of the writing software, and the user may switch the operation mode by operating the mode selection field.
The step S3 specifically comprises the following steps:
s311, if the first rendering mode is selected to be used, recording second object data, and emptying the second view; the second object data are data corresponding to all objects in the second view at present;
s312, drawing an object corresponding to the second object data on the first view by using a first rendering mode;
s313, monitoring touch operation of a user, and drawing an object which is written and generated according to the touch operation in the first view by using a first rendering mode;
the step S4 specifically comprises the following steps:
s411, if a second rendering mode is selected to be used, recording first object data, and emptying the first view; the first object data are data corresponding to all objects in the first view at present;
s412, drawing the object corresponding to the first object data on the second view by using a second rendering mode;
s413, monitoring touch operation of a user, and drawing an object which moves or zooms according to the touch operation by using a second rendering mode on the second view.
When the writing software is in a writing mode, as the writing handwriting generated by following the touch operation of a user or the picture inserted is not high in the requirement on the rendering speed, a rendering mode with good smooth effect and general rendering speed can be adopted, and the ideal rendering effect can be achieved; when moving, zooming the handwriting or picture and other objects, another rendering mode with high rendering speed is adopted, so that the problem that the rendering speed is blocked due to the fact that the rendering speed cannot keep pace with the operation speed can be avoided, and an ideal rendering effect can be achieved. On the android system, the rendering mode with good smooth effect is preferably surface view rendering, the rendering mode with fast rendering speed is preferably OpenGL rendering, namely the first rendering mode is preferably surface view rendering, and the second rendering mode is preferably OpenGL rendering. On other operating systems, other rendering modes may be selected as the first rendering mode and the second rendering mode.
When the OpenGL is used for rendering and drawing the handwriting, the OpenGL rendering has poor effect on the rough line rendering, and the smooth effect can be achieved by adopting the fixed line width for drawing and drawing the handwriting. Namely:
further, the object comprises a picture and handwriting; and when the appointed object is drawn on the second view by using a second rendering mode, if the object is handwriting, drawing the handwriting according to a preset line width by using the second rendering mode.
When the working mode is switched, all objects are switched to the other view, so that the problem of image overlapping errors can be avoided.
In a second embodiment of the rendering method provided by the present invention, the rendering method includes:
s1, configuring a first view and a second view on a canvas of writing software; wherein the first view and the second view both cover the canvas, and the backgrounds of the first view and the second view are transparent;
s2, selecting a rendering mode according to the object to be drawn;
s3, if the first rendering mode is selected to be used, drawing a specified object on the first view by using the first rendering mode;
and S4, if the second rendering mode is selected to be used, drawing the specified object on the second view by using the second rendering mode.
Fig. 3 is a specific flowchart of a second step S2 of the rendering method according to the present invention. The step S2 specifically comprises the following steps:
s221, if the object to be drawn is a zoom control point, selecting a first rendering mode; the scaling control point is defined as a control point which is generated on the edge of the picture according to clicking operation of a user and used for controlling the size of the picture;
s222, if the object to be drawn is a picture, selecting a second rendering mode for use.
In the second embodiment, in the android system, the first rendering mode is preferably surface view rendering, and the second rendering mode is preferably OpenGL rendering. On other operating systems, other rendering modes may be selected as the first rendering mode and the second rendering mode. In the second embodiment, a rendering mode is selected and used according to the type of the drawing object. For example, when a picture object in writing software is selected, 8 control points for controlling the size of a picture can be generated on the edge of the picture, the picture can be scaled through the control points, and the 8 control points can be rendered by using surface view rendering because the control points have relatively low requirements on hands, and the surface view rendering is easier to render; and the scaling of the picture is performed by using OpenGL rendering to avoid the condition of clamping. On the premise that the view is transparent, the content seen by the user is the overlapped content of the two views. In addition, the handwriting object can be rendered by using surface view rendering, so that the problem that the rendering effect of OpenGL rendering on handwriting is poor is avoided, namely, the step S2 further comprises:
s223, if the object to be drawn is handwriting, selecting to use a first rendering mode.
In a third embodiment of the rendering method provided by the present invention, the rendering method includes:
s1, configuring a first view and a second view on a canvas of writing software; wherein the first view and the second view both cover the canvas, and the backgrounds of the first view and the second view are transparent;
s2, selecting a rendering mode according to the object to be drawn;
s3, if the first rendering mode is selected to be used, drawing a specified object on the first view by using the first rendering mode;
and S4, if the second rendering mode is selected to be used, drawing the specified object on the second view by using the second rendering mode.
Referring to fig. 4, a specific flowchart of a three-step S2 of the rendering method according to the present invention is shown.
The step S2 comprises the following steps:
s231, judging whether an object to be drawn is a target page with a page turning effect according to whether a page turning instruction for jumping from a current opened page to the target page is received;
s232, if the object to be drawn is not a target page with the page turning effect, selecting a first rendering mode;
s233, if the object to be drawn is a target page with a page turning effect, selecting a second rendering mode;
the step S3 specifically comprises the following steps: if the first rendering mode is selected to be used, drawing an object generated, moved or zoomed by touch operation of a user on the first view by using the first rendering mode;
the step S4 specifically comprises the following steps: and if the second rendering mode is selected to be used, the first view is emptied, and the target page is drawn on the second view by using the second rendering mode.
In the third embodiment, in the android system, the first rendering mode is preferably surface view rendering, and the second rendering mode is preferably OpenGL rendering. On other operating systems, other rendering modes may be selected as the first rendering mode and the second rendering mode. In the third embodiment, openGL rendering is used for the page turning effect, so that the page turning speed is improved.
Referring to fig. 5, a block diagram of a rendering apparatus according to the present invention is shown. Another aspect of the present invention provides a rendering apparatus, including:
a view configuration module 1, configured to configure a first view and a second view on a canvas of writing software; wherein the first view and the second view both cover the canvas, and the backgrounds of the first view and the second view are transparent;
a rendering selection module 2, configured to select a rendering mode according to an object to be drawn;
a first rendering module 3, configured to draw a specified object on the first view using a first rendering mode if the first rendering mode is selected to be used;
and the second rendering module 4 is configured to draw the specified object on the second view by using the second rendering mode if the second rendering mode is selected.
In one embodiment, the rendering selection module includes:
a mode confirmation unit for determining the attribute of the object to be drawn by the current working mode of the writing software; when the writing software is in a writing mode, the object to be drawn is an object generated by writing according to touch operation of a user; in the case that the writing software is in a moving mode or a zooming mode, the object to be drawn is an object which moves or zooms according to the touch operation of a user;
the first selection unit is used for selecting a first rendering mode if the object to be drawn is an object generated by writing according to touch operation of a user;
and the second selection unit is used for selecting a second rendering mode to be used if the object to be drawn is the object which is moved or zoomed according to the touch operation of the user.
Further, the first rendering module includes:
a first emptying view unit, configured to record second object data and empty the second view if the first rendering mode is selected to be used; the second object data are data corresponding to all objects in the second view at present;
the first copying view unit is used for drawing an object corresponding to the second object data in a first rendering mode on the first view;
the writing generating unit is used for monitoring touch operation of a user, and drawing an object generated according to the touch operation writing in the first view by using a first rendering mode;
the second rendering module includes:
the second emptying view unit is used for recording the first object data and emptying the first view if the second rendering mode is selected to be used; the first object data are data corresponding to all objects in the first view at present;
a second copy view unit, configured to draw, on the second view, an object corresponding to the first object data using a second rendering manner;
and the mobile scaling unit is used for monitoring touch operation of a user, and drawing an object which is moved or scaled according to the touch operation by using a second rendering mode on the second view.
In another embodiment, the rendering selection module includes:
the scaling control point rendering unit is used for selecting a first rendering mode if the object to be drawn is a scaling control point; the scaling control point is defined as a control point which is generated on the edge of the picture according to clicking operation of a user and used for controlling the size of the picture;
and the picture rendering unit is used for selecting a second rendering mode if the object to be drawn is a picture.
The invention configures the first view and the second view on the canvas of the writing software, and because the view background is transparent, the two views are overlapped, and a user can simultaneously see the contents rendered by the two views. And according to the requirements, one part of the objects to be drawn is drawn by using a first rendering mode, and the other part of the objects to be drawn is drawn by using a second rendering mode, so that the objects to be drawn with high requirements on the smooth effect and the objects to be drawn with high requirements on the rendering speed can achieve ideal rendering effects, and the defect limitation of a single rendering mode is overcome.
The foregoing is a preferred embodiment of the present invention and it should be noted that modifications and variations could be made by those skilled in the art without departing from the principles of the present invention, and such modifications and variations are also considered to be within the scope of the present invention.

Claims (16)

1. A rendering method, comprising:
configuring a first view and a second view on a canvas of the writing software; wherein the first view and the second view both cover the canvas, and the backgrounds of the first view and the second view are transparent;
selecting a rendering mode according to an object to be drawn;
if the first rendering mode is selected to be used, drawing a specified object on the first view by using the first rendering mode;
if the second rendering mode is selected to be used, drawing the appointed object on the second view by using the second rendering mode;
the second rendering mode is higher in rendering speed than the first rendering mode.
2. The rendering method according to claim 1, wherein the selecting a rendering mode according to the object to be drawn includes:
determining the attribute of an object to be drawn according to the current working mode of writing software; when the writing software is in a writing mode, the object to be drawn is an object generated by writing according to touch operation of a user; in the case that the writing software is in a moving mode or a zooming mode, the object to be drawn is an object which moves or zooms according to the touch operation of a user;
if the object to be drawn is an object generated by writing according to touch operation of a user, selecting to use a first rendering mode;
and if the object to be drawn is the object which is moved or zoomed according to the touch operation of the user, selecting to use the second rendering mode.
3. The rendering method according to claim 2, wherein if the first rendering method is selected, the specific object is drawn on the first view by using the first rendering method, which specifically includes:
if the first rendering mode is selected to be used, recording second object data, and emptying the second view; the second object data are data corresponding to all objects in the second view at present;
drawing an object corresponding to the second object data on the first view by using a first rendering mode;
monitoring touch operation of a user, and drawing an object generated according to the touch operation writing in a first rendering mode on the first view;
if the second rendering mode is selected, drawing the specified object on the second view by using the second rendering mode, wherein the method specifically comprises the following steps:
if the second rendering mode is selected to be used, recording first object data, and emptying the first view; the first object data are data corresponding to all objects in the first view at present;
drawing an object corresponding to the first object data in the second view by using a second rendering mode;
and monitoring touch operation of a user, and drawing an object which is moved or zoomed according to the touch operation in the second view by using a second rendering mode.
4. A rendering method according to claim 3, wherein the first rendering mode is surface view rendering and the second rendering mode is OpenGL rendering.
5. The rendering method of claim 4, wherein the object includes a picture and handwriting; and when the appointed object is drawn on the second view by using a second rendering mode, if the object is handwriting, drawing the handwriting according to a preset line width by using the second rendering mode.
6. The rendering method according to claim 5, wherein the picture is inserted into the writing software by the user in a writing mode, and the handwriting is generated by writing in the writing software according to a touch operation by the user in the writing mode.
7. The rendering method according to claim 1, wherein the selecting a rendering mode according to the object to be drawn includes:
if the object to be drawn is a zoom control point, selecting a first rendering mode; the scaling control point is defined as a control point which is generated on the edge of the picture according to clicking operation of a user and used for controlling the size of the picture;
and if the object to be drawn is a scaled picture, selecting a second rendering mode for use.
8. The rendering method of claim 7, wherein the selecting a rendering mode according to the object to be drawn, further comprises:
and if the object to be drawn is handwriting, selecting a first rendering mode.
9. The rendering method of claim 1, wherein the selecting a rendering mode according to the object to be drawn comprises:
judging whether an object to be drawn is a target page with a page turning effect according to whether a page turning instruction for jumping from a current opened page to the target page is received or not;
if the object to be drawn is not a target page with the page turning effect, selecting a first rendering mode;
and if the object to be drawn is the target page with the page turning effect, selecting a second rendering mode.
10. The rendering method of claim 9, wherein if the first rendering mode is selected to be used, drawing the specified object on the first view using the first rendering mode comprises:
if the first rendering mode is selected to be used, drawing an object on the first view by using the first rendering mode, wherein the object is generated, moved or zoomed by touch operation of a user.
11. The rendering method of claim 9, wherein if the second rendering mode is selected, drawing the specified object on the second view using the second rendering mode comprises:
and if the second rendering mode is selected to be used, the first view is emptied, and the target page is drawn on the second view by using the second rendering mode.
12. The rendering method of claim 1, wherein the writing software is software of an android system.
13. A rendering apparatus, comprising:
a view configuration module for configuring a first view and a second view on a canvas of the writing software; wherein the first view and the second view both cover the canvas, and the backgrounds of the first view and the second view are transparent;
the rendering selection module is used for selecting a rendering mode according to the object to be drawn;
the first rendering module is used for drawing the specified object on the first view by using the first rendering mode if the first rendering mode is selected to be used;
the second rendering module is used for drawing the appointed object on the second view by using a second rendering mode if the second rendering mode is selected to be used;
the second rendering mode is higher in rendering speed than the first rendering mode.
14. The rendering apparatus of claim 13, wherein the rendering selection module comprises:
a mode confirmation unit for determining the attribute of the object to be drawn by the current working mode of the writing software; when the writing software is in a writing mode, the object to be drawn is an object generated by writing according to touch operation of a user; in the case that the writing software is in a moving mode or a zooming mode, the object to be drawn is an object which moves or zooms according to the touch operation of a user;
the first selection unit is used for selecting a first rendering mode if the object to be drawn is an object generated by writing according to touch operation of a user;
and the second selection unit is used for selecting a second rendering mode to be used if the object to be drawn is the object which is moved or zoomed according to the touch operation of the user.
15. The rendering apparatus of claim 14, wherein the first rendering module comprises:
a first emptying view unit, configured to record second object data and empty the second view if the first rendering mode is selected to be used; the second object data are data corresponding to all objects in the second view at present;
the first copying view unit is used for drawing an object corresponding to the second object data in a first rendering mode on the first view;
the writing generating unit is used for monitoring touch operation of a user, and drawing an object generated according to the touch operation writing in the first view by using a first rendering mode;
the second rendering module includes:
the second emptying view unit is used for recording the first object data and emptying the first view if the second rendering mode is selected to be used; the first object data are data corresponding to all objects in the first view at present;
a second copy view unit, configured to draw, on the second view, an object corresponding to the first object data using a second rendering manner;
and the mobile scaling unit is used for monitoring touch operation of a user, and drawing an object which is moved or scaled according to the touch operation by using a second rendering mode on the second view.
16. The rendering apparatus of claim 13, wherein the rendering selection module comprises:
the scaling control point rendering unit is used for selecting a first rendering mode if the object to be drawn is a scaling control point; the scaling control point is defined as a control point which is generated on the edge of the picture according to clicking operation of a user and used for controlling the size of the picture;
and the picture rendering unit is used for selecting a second rendering mode if the object to be drawn is a scaled picture.
CN201910630465.8A 2016-10-18 2016-10-18 Rendering method and device Active CN110427236B (en)

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
CN201910630465.8A CN110427236B (en) 2016-10-18 2016-10-18 Rendering method and device
CN201610911029.4A CN106502667B (en) 2016-10-18 2016-10-18 A kind of 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 CN110427236A (en) 2019-11-08
CN110427236B true CN110427236B (en) 2023-06-09

Family

ID=58295349

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201910630465.8A Active CN110427236B (en) 2016-10-18 2016-10-18 Rendering method and device
CN201610911029.4A Active CN106502667B (en) 2016-10-18 2016-10-18 A kind of rendering method and device

Family Applications After (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) CN110427236B (en)
WO (1) WO2018072386A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110427236B (en) * 2016-10-18 2023-06-09 广州视睿电子科技有限公司 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
CN115550713B (en) * 2022-11-29 2023-04-28 杭州星犀科技有限公司 Audio and video live broadcast rendering method, device, equipment and medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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 (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7791620B2 (en) * 2005-06-07 2010-09-07 Ids Scheer Aktiengesellschaft Systems and methods for rendering symbols using non-linear scaling
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
CN110427236B (en) * 2016-10-18 2023-06-09 广州视睿电子科技有限公司 Rendering method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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)

* Cited by examiner, † Cited by third party
Title
嵌入式浏览器移植与图形库优化;周志惠;《信息科技辑》;20160315;全文 *

Also Published As

Publication number Publication date
CN106502667B (en) 2019-09-03
CN110427236A (en) 2019-11-08
CN106502667A (en) 2017-03-15
WO2018072386A1 (en) 2018-04-26

Similar Documents

Publication Publication Date Title
CN110427236B (en) Rendering method and device
US11706521B2 (en) User interfaces for capturing and managing visual media
US11223771B2 (en) User interfaces for capturing and managing visual media
US11770601B2 (en) User interfaces for capturing and managing visual media
EP3792738B1 (en) User interfaces for capturing and managing visual media
EP3835934B1 (en) Device, method, and graphical user interface for providing handwriting support in document editing
CN105278811B (en) Screen display device and method of intelligent terminal
US20220121354A1 (en) Method and device for controlling interactive white board
US20180024719A1 (en) User interface systems and methods for manipulating and viewing digital documents
AU2023203200A1 (en) Systems, methods, and graphical user interfaces for interacting with augmented and virtual reality environments
DK201870336A8 (en) Devices, methods, and graphical user interfaces for navigating between user interfaces and displaying a dock
WO2018057267A1 (en) Devices, methods, and graphical user interfaces for capturing and recording media in multiple modes
CN102622223A (en) Directly assigning desktop backgrounds
AU2019266126B2 (en) Devices, methods, and graphical user interfaces for navigating between user interfaces, displaying a dock, and displaying system user interface elements
JP5875262B2 (en) Display control device
WO2024088317A1 (en) Application interface display method and apparatus, electronic device, and storage medium
CN107526505B (en) Data processing method and electronic equipment
CN115509412A (en) Method, device, equipment and storage medium for special effect interaction
US20200341607A1 (en) Scrolling interface control for computer display
US9530183B1 (en) Elastic navigation for fixed layout content
WO2023220071A2 (en) Systems, methods, and graphical user interfaces for scanning and modeling environments
CN116301506A (en) Content display method, device, terminal and storage medium
CN115047998A (en) Copying method, copying device, computer equipment and storage medium
KR20160071907A (en) Method and apparatus for controlling e-book containing embedded content
JP2008176580A (en) Information processor and display control method

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