WO2018072386A1 - Rendering method and apparatus - Google Patents
Rendering method and apparatus Download PDFInfo
- Publication number
- WO2018072386A1 WO2018072386A1 PCT/CN2017/077141 CN2017077141W WO2018072386A1 WO 2018072386 A1 WO2018072386 A1 WO 2018072386A1 CN 2017077141 W CN2017077141 W CN 2017077141W WO 2018072386 A1 WO2018072386 A1 WO 2018072386A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- rendering
- view
- mode
- drawn
- touch operation
- Prior art date
Links
Images
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
Definitions
- the present invention relates to the field of computer technologies, and in particular, to a rendering method and apparatus.
- OpenGL renders very fast, and is widely used in games and some gorgeous animation applications.
- the rendering speed of moving, zooming, or drawing is at least 10 times faster (increasing the number of handwriting and images, the effect is more obvious, even reaching the rendering speed, OpenGL is a millisecond level, and SurfaceView rendering is a second level) .
- the texture data of the image is stored in the video memory, and it takes almost no time to perform OpenGL rendering. So OpenGL rendering doesn't feel like a stuck.
- OpenGL also has its limitations. OpenGL has no smooth effect on lines. When the line is very thick, the drawing shape is unacceptable.
- an aspect of the present invention provides a rendering method, including:
- the specified object is drawn on the second view using the second rendering mode.
- the invention configures the first view and the second view on the canvas of the writing software. Since the view background is transparent, the two views are superimposed, and the user can simultaneously see the content rendered by the two views. According to the requirements, part of the object to be drawn is drawn in the first rendering mode, and the other part is drawn in the second rendering mode, so that the object to be drawn with high smoothing effect and the object to be drawn with high rendering speed can achieve ideal rendering. The effect of overcoming the limitations of the single rendering approach.
- the selecting a rendering manner according to an object to be drawn includes:
- the object to be drawn is an object generated according to a user's touch operation; the writing software is in a moving mode or zooming In the mode, the object to be drawn is an object that is moved or scaled according to a touch operation of the user;
- the object to be drawn is an object generated according to a user's touch operation, then the first rendering mode is selected;
- the object to be drawn is an object that is moved or scaled according to a user's touch operation, then the second rendering mode is selected.
- the specified rendering object is drawn by using the first rendering manner on the first view, specifically:
- the second object data is recorded, and the second view is cleared; wherein the second object data is data corresponding to all objects on the current second view;
- the specified object is drawn by using the second rendering manner on the second view, which includes:
- the first object data is recorded, and the first view is cleared; wherein the first object data is data corresponding to all objects on the current first view;
- a user's touch operation is listened to, and on the second view, an object moved or scaled according to the touch operation is drawn using a second rendering manner.
- the first rendering mode is a SurfaceView rendering
- the second rendering mode is an OpenGL rendering.
- the object includes a picture and a handwriting; when the specified object is drawn by using the second rendering manner on the second view, if the object is a handwriting, the second rendering mode is used to draw the preset line width. Handwriting.
- the writing software when the writing software is in the writing mode, the writing of the writing hand or the insertion of the picture following the user's touch operation is not high in rendering speed, and the SurfaceView rendering with good smoothing effect and normal rendering speed can achieve the desired performance.
- Rendering effect when moving, zooming, or other objects, use OpenGL rendering with fast rendering speed, avoiding the rendering speed and the speed of the operation, causing the card to achieve the desired rendering effect.
- the same object needs to be drawn in different rendering modes on two views in different working modes. When switching the working mode, switching all objects to another view can avoid the problem of image overlap error.
- the selecting a rendering manner according to the object to be drawn includes:
- the zoom handle is defined as a handle for controlling the size of the image generated on the edge of the image according to a click operation of the user;
- the second rendering mode is selected.
- the rendering mode is determined directly based on the type of drawing object.
- a rendering method with a fast rendering speed can be used, and the zoom control point generated on the edge of the image is relatively low due to the requirement of the hand, so the speed is adopted.
- other rendering methods with good rendering can meet the requirements. Different rendering methods are used according to actual needs, which is beneficial to balance the running speed and effect of writing software.
- Another aspect of the present invention provides a rendering apparatus, including:
- a view configuration module configured to configure 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 first view and the second view
- the background is set to be transparent;
- a rendering selection module for selecting a rendering mode according to the object to be drawn
- a first rendering module configured to draw a specified object using the first rendering manner on the first view if the first rendering mode is selected to be used;
- a second rendering module configured to draw the specified object by using the second rendering manner on the second view if the second rendering mode is selected to be used.
- the rendering selection module includes:
- a mode confirmation unit configured to determine, by the current working mode of the writing software, an attribute of the object to be drawn; wherein, when the writing software is in the writing mode, the object to be drawn is an object generated according to a user's touch operation; The software is in a moving mode or a zoom mode, and the object to be drawn is an object that is moved or scaled according to a touch operation of the user;
- a first selecting unit configured to use the first rendering mode if the object to be drawn is an object generated according to a user's touch operation
- a second selecting unit configured to use the second rendering mode if the object to be drawn is an object that is moved or scaled according to a touch operation of the user.
- the first rendering module includes:
- a first clearing view unit configured to: when the first rendering mode is selected to be used, record the second object data, and clear the second view; wherein the second object data is corresponding to all objects on the current second view The data;
- a first copy view unit configured to draw an object corresponding to the second object data by using a first rendering manner on the first view
- a writing generating unit configured to monitor a touch operation of the user, and, on the first view, draw an object generated according to the touch operation by using a first rendering manner
- the second rendering module includes:
- a second clearing view unit configured to: when the second rendering mode is selected, record the first object data, and clear the first view; wherein the first object data is corresponding to all objects on the current first view The data;
- a second copy view unit configured to draw an object corresponding to the first object data by using a second rendering manner on the second view
- a mobile scaling unit configured to monitor a user's touch operation, and on the second view, draw an object moved or scaled according to the touch operation using a second rendering manner.
- the rendering selection module includes:
- a zoom control point rendering unit configured to use a first rendering mode if the object to be drawn is a zoom handle; wherein the zoom handle is defined as a size of the image generated on the edge of the image according to a click operation of the user Control point
- the picture rendering unit is configured to select the second rendering mode if the object to be drawn is a picture.
- Embodiment 1 is a flowchart of Embodiment 1 of a rendering method provided by the present invention
- step S2 of Embodiment 1 of the rendering method provided by the present invention is a specific flowchart of step S2 of Embodiment 1 of the rendering method provided by the present invention
- step S2 of Embodiment 2 of the rendering method provided by the present invention is a specific flowchart of step S2 of Embodiment 2 of the rendering method provided by the present invention
- FIG. 5 is a structural block diagram of a rendering apparatus provided by the present invention.
- the rendering method includes:
- the specified object is drawn by using the second rendering manner on the second view.
- the first view and the second view are configured on the canvas of the writing software. Since the view background is transparent, the two views are superimposed, and the user can simultaneously view the content rendered by the two views. . According to the requirements, part of the object to be drawn is drawn in the first rendering mode, and the other part is drawn in the second rendering mode, so that the object to be drawn with high smoothing effect and the object to be drawn with high rendering speed can achieve ideal rendering. The effect of overcoming the limitations of the single rendering approach.
- Step S2 in the first embodiment specifically includes:
- S211 Determine, by the current working mode of the writing software, an attribute of the object to be drawn; wherein, when the writing software is in the writing mode, the object to be drawn is an object generated according to a user's touch operation; and the writing software is in a moving mode. Or in the zoom mode, the object to be drawn is based on the user Touch operation to move or scale the object;
- the object to be drawn is an object generated according to a user's touch operation, select to use the first rendering mode
- the object to be drawn is an object that is moved or scaled according to a touch operation of the user, then the second rendering mode is selected to be used.
- the working mode of the writing software of the touch screen terminal includes a writing mode, a moving mode, and a zooming mode. It can be known by those skilled in the art that in the writing mode, the user performs a touch operation on the touch screen terminal according to the trajectory of the touch operation.
- the handwriting object can be generated, and the user can also insert a picture on the touch screen terminal; in the mobile mode, the user performs a touch operation on the touch screen terminal, and according to the track of the touch operation, the object corresponding to the touch point can be moved; In the mode, the user performs a touch operation on the edge of the object on the touch screen terminal, and the object can be scaled according to the trajectory of the touch operation; in addition, the movement mode and the zoom mode can be set to the same mode.
- Writing software can be triggered into different working modes in a variety of ways.
- the writing software enters the writing mode by default when starting, and can enter the moving and zooming mode with a specific gesture.
- the specific gesture can be three-point triggering, that is, when the user presses three fingers simultaneously, Entering the moving and zooming mode, the object to be drawn is switched to the object moved or zoomed according to the user's touch operation, that is, the object is updated according to the moving and zooming operation; when the user finishes moving and zooming, when the user raises the hand, the writing mode is entered.
- a mode selection bar may also be set on the toolbar of the writing software, and the user switches the working mode by operating the mode selection bar.
- Step S3 specifically includes:
- the object corresponding to the second object data is drawn by using a first rendering manner
- Step S4 specifically includes:
- the rendering method with good smoothing effect is preferably SurfaceView rendering.
- the rendering method with fast rendering speed is preferably OpenGL rendering, that is, the first rendering mode is preferably SurfaceView rendering, and the second rendering mode is preferably OpenGL rendering.
- other rendering modes can be selected as the first rendering mode and the second rendering mode.
- the object includes a picture and a handwriting; when the specified object is drawn by using the second rendering manner on the second view, if the object is a handwriting, the second rendering mode is used to draw the preset line width. Handwriting.
- the same object needs to be drawn in different rendering modes on two views in different working modes.
- switching all objects to another view can avoid the problem of image overlap error.
- Embodiment 2 of the rendering method provided by the present invention the rendering method includes:
- the specified object is drawn by using the second rendering manner on the second view.
- FIG. 3 is a specific flowchart of step S2 of Embodiment 2 of the rendering method provided by the present invention.
- Step S2 specifically includes:
- the object to be drawn is a zoom handle, select to use a first rendering manner; wherein the zoom handle is defined as a handle for controlling a size of the image generated on an edge of the image according to a click operation of the user;
- the first rendering mode is preferably a SurfaceView rendering
- the second rendering mode is preferably an OpenGL rendering.
- other rendering modes can be selected as the first rendering mode and the second rendering mode.
- Embodiment 2 selects a rendering mode according to the type of the drawing object. For example, when the picture object in the writing software is selected, eight control points for controlling the image size are generated on the edge of the picture, and the picture can be scaled by the control point. At this time, the eight handles can be rendered by using SurfaceView. Because the control points are relatively low, the SurfaceView rendering is easier to draw; the scaling of the image is drawn using OpenGL rendering to avoid stuttering.
- step S2 also includes:
- Embodiment 3 of the rendering method provided by the present invention the rendering method includes:
- the first rendering mode is used on the first view.
- Designated object
- the specified object is drawn by using the second rendering manner on the second view.
- FIG. 4 it is a specific flowchart of the third step S2 of the third embodiment of the present invention.
- Step S2 includes:
- Step S3 is specifically: if the first rendering is selected to be used, the object generated, moved, or scaled by the touch operation of the user is drawn on the first view by using the first rendering manner;
- Step S4 is specifically: if the second rendering mode is selected to be used, the first view is cleared, and the target page is drawn on the second view by using a second rendering manner.
- the first rendering mode is preferably a SurfaceView rendering
- the second rendering mode is preferably an OpenGL rendering.
- other rendering modes can be selected as the first rendering mode and the second rendering mode.
- the third embodiment of the page turning effect uses OpenGL rendering to improve the speed of page turning.
- FIG. 5 it is a structural block diagram of a rendering apparatus provided by the present invention.
- 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 the writing software; wherein the first view and the second view both cover the canvas, and the first view and the second view The background of the view is set to be transparent;
- a rendering selection module 2 configured to select a rendering mode according to the object to be drawn
- a first rendering module 3 configured to draw a specified object using the first rendering manner on the first view if the first rendering mode is selected to be used;
- the second rendering module 4 is configured to draw the specified object by using the second rendering manner on the second view if the second rendering mode is selected to be used.
- the rendering selection module includes:
- a mode confirmation unit configured to determine, by the current working mode of the writing software, an attribute of the object to be drawn; wherein, when the writing software is in the writing mode, the object to be drawn is an object generated according to a user's touch operation; The software is in a moving mode or a zoom mode, and the object to be drawn is an object that is moved or scaled according to a touch operation of the user;
- a first selecting unit configured to use the first rendering mode if the object to be drawn is an object generated according to a user's touch operation
- a second selecting unit configured to use the second rendering mode if the object to be drawn is an object that is moved or scaled according to a touch operation of the user.
- the first rendering module includes:
- a first clearing view unit configured to: when the first rendering mode is selected to be used, record the second object data, and clear the second view; wherein the second object data is corresponding to all objects on the current second view The data;
- a first copy view unit configured to draw an object corresponding to the second object data by using a first rendering manner on the first view
- a writing generating unit configured to monitor a touch operation of the user, and, on the first view, draw an object generated according to the touch operation by using a first rendering manner
- the second rendering module includes:
- a second clearing view unit configured to: when the second rendering mode is selected, record the first object data, and clear the first view; wherein the first object data is corresponding to all objects on the current first view The data;
- a second copy view unit configured to draw an object corresponding to the first object data by using a second rendering manner on the second view
- a mobile scaling unit configured to monitor a user's touch operation, and on the second view, draw an object moved or scaled according to the touch operation using a second rendering manner.
- the rendering selection module includes:
- a zoom control point rendering unit configured to use a first rendering mode if the object to be drawn is a zoom handle; wherein the zoom handle is defined as a size of the image generated on the edge of the image according to a click operation of the user Control point
- the picture rendering unit is configured to select the 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. Since the view background is transparent, the two views are superimposed, and the user can simultaneously see the content rendered by the two views. According to the requirements, part of the object to be drawn is drawn in the first rendering mode, and the other part is drawn in the second rendering mode, so that the object to be drawn with high smoothing effect and the object to be drawn with high rendering speed can achieve ideal rendering. The effect of overcoming the limitations of the single rendering approach.
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- General Engineering & Computer Science (AREA)
- Computer Graphics (AREA)
- Processing Or Creating Images (AREA)
- User Interface Of Digital Computer (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
Provided are a rendering method and an apparatus. The method comprises: configuring a first view and a second view on a canvas of a writing software (S11), wherein both the first view and the second view cover the canvas, and both backgrounds of the first view and the second view are made transparent; selecting a rendering mode according to a to-be-drawn object (S12); if a first rendering mode is selected, drawing a specified object on the first view by using the first rendering mode (S13); and if a second rendering mode is selected, then drawing the specified object on the second view by using the second rendering mode (S14). According to requirements, one part of the to-be-drawn object can be drawn by using the first rendering mode, the other part thereof can be drawn by using the second rendering mode, achieving ideal rendering effect both for the to-be-drawn objects with high requirement of smoothing effect and for the to-be-drawn objects with high requirement of rendering speed, and overcoming the limitation due to defects of a single rendering mode.
Description
本发明涉及计算机技术领域,尤其涉及一种渲染方法及装置。The present invention relates to the field of computer technologies, and in particular, to a rendering method and apparatus.
在安卓系统的书写软件中,常用的渲染方式有两种:SurfaceView渲染和OpenGL渲染。其中,SurfaceView渲染由于API(Application Programming Interface,应用程序编程接口)支持比较完善,笔迹可以达到很好的平滑效果,因此,常用于跟随和描绘书写笔迹,以及在画布中插入图片,但是当在书写软件的画布中进行连续的笔迹或图片的移动、缩放时,由于SurfaceView渲染速度跟不上操作的速度,会导致卡顿的现象,影响用户体验。特别是在进行全局的移动、缩放时,需要遍历每一个笔迹或图片,逐个进行绘制更新在SurfaceView的视图上,整个渲染速度随着笔迹或图片个数的增多而变慢,画面越来越卡顿。In the writing software of Android system, there are two commonly used rendering methods: SurfaceView rendering and OpenGL rendering. Among them, the SurfaceView rendering is well supported by the API (Application Programming Interface), and the handwriting can achieve a good smoothing effect. Therefore, it is often used to follow and depict writing strokes, and to insert pictures in the canvas, but when writing When the continuous handwriting or picture is moved and scaled in the canvas of the software, the speed of the SurfaceView cannot keep up with the speed of the operation, which may cause the phenomenon of the carton and affect the user experience. Especially when performing global movement and zooming, it is necessary to traverse each handwriting or picture, and draw and update one by one on the SurfaceView view. The whole rendering speed becomes slower as the number of handwriting or pictures increases, and the picture becomes more and more card. pause.
而OpenGL渲染速度非常快,广泛应用于游戏和一些动画效果华丽的应用中。在使用OpenGL渲染时,移动、缩放笔迹或图片的渲染速度至少加快了10倍(随笔迹和图片的数量增加,效果越明显,甚至可以达到渲染速度OpenGL是毫秒级别,而SurfaceView渲染是秒级别)。特别是对于图片的OpenGL渲染,图片的纹理数据被存储在显存中,进行OpenGL渲染时几乎不需要耗时。所以OpenGL渲染完全不会有卡顿的感觉。但是OpenGL也有它的局限性,OpenGL对于线条没有圆滑的效果,在线条很粗的时候,绘制形状不可接受。And OpenGL renders very fast, and is widely used in games and some gorgeous animation applications. When rendering with OpenGL, the rendering speed of moving, zooming, or drawing is at least 10 times faster (increasing the number of handwriting and images, the effect is more obvious, even reaching the rendering speed, OpenGL is a millisecond level, and SurfaceView rendering is a second level) . Especially for OpenGL rendering of images, the texture data of the image is stored in the video memory, and it takes almost no time to perform OpenGL rendering. So OpenGL rendering doesn't feel like a stuck. However, OpenGL also has its limitations. OpenGL has no smooth effect on lines. When the line is very thick, the drawing shape is unacceptable.
因此,现有技术中,采用单一的渲染方式,无法同时具备不同渲染方式的有益效果,也无法克服单一渲染方式的缺陷限制。受限于操作系统的API支持,也无法在一个视图上使用两种渲染方式。Therefore, in the prior art, a single rendering mode is adopted, and the beneficial effects of different rendering modes cannot be simultaneously achieved, and the defect limitation of the single rendering mode cannot be overcome. Limited to the operating system's API support, you can't use two rendering methods on one view.
发明内容Summary of the invention
本发明的目的在于提供一种渲染方法和装置,其能使用两种渲染方式,同时具备不同渲染方式的有益效果,克服单一渲染方式的缺陷限制。It is an object of the present invention to provide a rendering method and apparatus that can use two rendering modes, and at the same time 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 both set to be transparent ;
根据待绘制的对象选择渲染方式;Select the rendering mode according to the object to be drawn;
若选择使用第一渲染方式,则在所述第一视图上使用第一渲染方式绘制指定对象;If the first rendering mode is selected to be used, drawing the specified object by using the first rendering manner on the first view;
若选择使用第二渲染方式,则在所述第二视图上使用第二渲染方式绘制指定对象。If the second rendering mode is selected to be used, the specified object is drawn on the second view using the second rendering mode.
实施本发明,具有如下有益效果:The implementation of the present invention has the following beneficial effects:
本发明在书写软件的画布上配置了第一视图和第二视图,由于视图背景透明,因此两个视图叠加,用户可以同时看到两个视图所渲染的内容。根据需求将待绘制的对象一部分使用第一渲染方式绘制,另一部分使用第二渲染方式绘制,使得对平滑效果要求高的待绘制对象和对渲染速度要求高的待绘制对象都能达到理想的渲染效果,克服单一渲染方式的缺陷限制。The invention configures the first view and the second view on the canvas of the writing software. Since the view background is transparent, the two views are superimposed, and the user can simultaneously see the content rendered by the two views. According to the requirements, part of the object to be drawn is drawn in the first rendering mode, and the other part is drawn in the second rendering mode, so that the object to be drawn with high smoothing effect and the object to be drawn with high rendering speed can achieve ideal rendering. The effect of overcoming the limitations of the single rendering approach.
在其中一个实施例中,所述根据待绘制的对象选择渲染方式,包括:In one embodiment, the selecting a rendering manner according to an object to be drawn includes:
由书写软件当前的工作模式确定待绘制的对象的属性;其中,在书写软件处于书写模式时,所述待绘制的对象为根据用户的触摸操作书写生成的对象;在书写软件处于移动模式或缩放模式下,所述待绘制的对象为根据用户的触摸操作移动或缩放的对象;Determining an attribute of the object to be drawn by a current working mode of the writing software; wherein, when the writing software is in the writing mode, the object to be drawn is an object generated according to a user's touch operation; the writing software is in a moving mode or zooming In the mode, the object to be drawn is an object that is moved or scaled according to a touch operation of the user;
若待绘制的对象为根据用户的触摸操作书写生成的对象,则选择使用第一渲染方式;If the object to be drawn is an object generated according to a user's touch operation, then the first rendering mode is selected;
若待绘制的对象为根据用户的触摸操作移动或缩放的对象,则选择使用第二渲染方式。If the object to be drawn is an object that is moved or scaled according to a user's touch operation, then the second rendering mode is selected.
进一步地,所述若选择使用第一渲染方式,则在所述第一视图上使用第一渲染方式绘制指定对象,具体包括:
Further, if the first rendering mode is selected, the specified rendering object is drawn by using the first rendering manner on the first view, specifically:
若选择使用第一渲染方式,则记录第二对象数据,清空所述第二视图;其中,所述第二对象数据为当前所述第二视图上的所有对象对应的数据;If the first rendering mode is selected, the second object data is recorded, and the second view is cleared; wherein the second object data is data corresponding to all objects on the current second view;
在所述第一视图上,使用第一渲染方式绘制所述第二对象数据对应的对象;Drawing, on the first view, an object corresponding to the second object data by using a first rendering manner;
监听用户的触摸操作,在所述第一视图上,使用第一渲染方式绘制根据所述触摸操作书写生成的对象;Listening to a user's touch operation, on the first view, drawing an object generated according to the touch operation using a first rendering manner;
所述若选择使用第二渲染方式,则在所述第二视图上使用第二渲染方式绘制指定对象,具体包括:If the second rendering mode is selected, the specified object is drawn by using the second rendering manner on the second view, which includes:
若选择使用第二渲染方式,则记录第一对象数据,清空所述第一视图;其中,所述第一对象数据为当前所述第一视图上的所有对象对应的数据;If the second rendering mode is selected, the first object data is recorded, and the first view is cleared; wherein the first object data is data corresponding to all objects on the current first view;
在所述第二视图上,使用第二渲染方式绘制所述第一对象数据对应的对象;And drawing, on the second view, an object corresponding to the first object data by using a second rendering manner;
监听用户的触摸操作,在所述第二视图上,使用第二渲染方式绘制根据所述触摸操作移动或缩放的对象。A user's touch operation is listened to, and on the second view, an object moved or scaled according to the touch operation is drawn using a second rendering manner.
进一步地,所述第一渲染方式为SurfaceView渲染,所述第二渲染方式为OpenGL渲染。Further, the first rendering mode is a SurfaceView rendering, and the second rendering mode is an OpenGL rendering.
进一步地,所述对象包括图片和笔迹;则在所述第二视图上使用第二渲染方式绘制指定对象时,若所述对象为笔迹,则使用第二渲染方式按照预设的线宽绘制所述笔迹。Further, the object includes a picture and a handwriting; when the specified object is drawn by using the second rendering manner on the second view, if the object is a handwriting, the second rendering mode is used to draw the preset line width. Handwriting.
在其中一个实施例中,当书写软件处于书写模式时,由于跟随用户的触摸操作生成书写笔迹或者插入图片对于渲染速度要求并不高,采用平滑效果好但渲染速度一般的SurfaceView渲染能达到理想的渲染效果;而在移动、缩放笔迹或图片等对象时,采用渲染速度快的OpenGL渲染,避免渲染速度跟不上操作的速度导致卡顿,也能达到理想的渲染效果。同一个对象在不同工作模式下需分别在两个视图上用不同的渲染方式绘制,在切换工作模式时,将所有对象切换至另一视图上可避免图像重叠出错的问题。In one of the embodiments, when the writing software is in the writing mode, the writing of the writing hand or the insertion of the picture following the user's touch operation is not high in rendering speed, and the SurfaceView rendering with good smoothing effect and normal rendering speed can achieve the desired performance. Rendering effect; when moving, zooming, or other objects, use OpenGL rendering with fast rendering speed, avoiding the rendering speed and the speed of the operation, causing the card to achieve the desired rendering effect. The same object needs to be drawn in different rendering modes on two views in different working modes. When switching the working mode, switching all objects to another view can avoid the problem of image overlap error.
进一步方案中,在使用OpenGL渲染绘制笔迹时,由于OpenGL渲染对粗线条渲染效果不好,采用固定的线宽绘制笔迹能达到较为平滑的效果。In the further scheme, when using OpenGL to render the handwriting, since the OpenGL rendering does not have a good rendering effect on the thick lines, drawing the handwriting with a fixed line width can achieve a smoother effect.
在另一个实施例中,所述根据待绘制对象,选择渲染方式,包括:
In another embodiment, the selecting a rendering manner according to the object to be drawn includes:
若待绘制对象为缩放控点,则选择使用第一渲染方式;其中,所述缩放控点定义为根据用户的点击操作在图片边沿上生成的用于控制图片大小的控点;If the object to be drawn is a zoom handle, the first rendering mode is selected; wherein the zoom handle is defined as a handle for controlling the size of the image generated on the edge of the image according to a click operation of the user;
若待绘制对象为图片,则选择使用第二渲染方式。If the object to be drawn is a picture, then the second rendering mode is selected.
在另一个实施例中,直接根据绘制对象的类型,确定渲染方式。当绘制对象为图片时,由于图片插入、缩放或移动对速度要求都较快,可以使用渲染速度快的渲染方式,而图片边沿上生成的缩放控点由于跟手要求相对较低,因此采用速度一般但其他效果好的渲染方式渲染满足要求即可。根据实际需求使用不同的渲染方式,有利于书写软件运行速度和效果的平衡。In another embodiment, the rendering mode is determined directly based on the type of drawing object. When drawing an object as a picture, since the image insertion, scaling, or movement is faster than the speed requirement, a rendering method with a fast rendering speed can be used, and the zoom control point generated on the edge of the image is relatively low due to the requirement of the hand, so the speed is adopted. Generally, other rendering methods with good rendering can meet the requirements. Different rendering methods are used according to actual needs, which is beneficial to balance the running speed and effect of writing software.
本发明另一方面提供一种渲染装置,包括:Another aspect of the present invention provides a rendering apparatus, including:
视图配置模块,用于在书写软件的画布上配置第一视图和第二视图;其中,所述第一视图和第二视图均覆盖所述画布,且所述第一视图和所述第二视图的背景均设为透明;a view configuration module, configured to configure 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 first view and the second view The background is set to be transparent;
渲染选择模块,用于根据待绘制的对象选择渲染方式;a rendering selection module for selecting a rendering mode according to the object to be drawn;
第一渲染模块,用于若选择使用第一渲染方式,则在所述第一视图上使用第一渲染方式绘制指定对象;a first rendering module, configured to draw a specified object using the first rendering manner on the first view if the first rendering mode is selected to be used;
第二渲染模块,用于若选择使用第二渲染方式,则在所述第二视图上使用第二渲染方式绘制指定对象。And a second rendering module, configured to draw the specified object by using the second rendering manner on the second view if the second rendering mode is selected to be used.
在其中一个实施例中,所述渲染选择模块包括:In one embodiment, the rendering selection module includes:
模式确认单元,用于由书写软件当前的工作模式确定待绘制的对象的属性;其中,在书写软件处于书写模式时,所述待绘制的对象为根据用户的触摸操作书写生成的对象;在书写软件处于移动模式或缩放模式下,所述待绘制的对象为根据用户的触摸操作移动或缩放的对象;a mode confirmation unit, configured to determine, by the current working mode of the writing software, an attribute of the object to be drawn; wherein, when the writing software is in the writing mode, the object to be drawn is an object generated according to a user's touch operation; The software is in a moving mode or a zoom mode, and the object to be drawn is an object that is moved or scaled according to a touch operation of the user;
第一选择单元,用于若待绘制的对象为根据用户的触摸操作书写生成的对象,则选择使用第一渲染方式;a first selecting unit, configured to use the first rendering mode if the object to be drawn is an object generated according to a user's touch operation;
第二选择单元,用于若待绘制的对象为根据用户的触摸操作移动或缩放的对象,则选择使用第二渲染方式。And a second selecting unit, configured to use the second rendering mode if the object to be drawn is an object that is moved or scaled according to a touch operation of the user.
进一步地,所述第一渲染模块包括:
Further, the first rendering module includes:
第一清空视图单元,用于若选择使用第一渲染方式,则记录第二对象数据,清空所述第二视图;其中,所述第二对象数据为当前所述第二视图上的所有对象对应的数据;a first clearing view unit, configured to: when the first rendering mode is selected to be used, record the second object data, and clear the second view; wherein the second object data is corresponding to all objects on the current second view The data;
第一复制视图单元,用于在所述第一视图上,使用第一渲染方式绘制所述第二对象数据对应的对象;a first copy view unit, configured to draw an object corresponding to the second object data by using a first rendering manner on the first view;
书写生成单元,用于监听用户的触摸操作,在所述第一视图上,使用第一渲染方式绘制根据所述触摸操作书写生成的对象;a writing generating unit, configured to monitor a touch operation of the user, and, on the first view, draw an object generated according to the touch operation by using a first rendering manner;
所述第二渲染模块包括:The second rendering module includes:
第二清空视图单元,用于若选择使用第二渲染方式,则记录第一对象数据,清空所述第一视图;其中,所述第一对象数据为当前所述第一视图上的所有对象对应的数据;And a second clearing view unit, configured to: when the second rendering mode is selected, record the first object data, and clear the first view; wherein the first object data is corresponding to all objects on the current first view The data;
第二复制视图单元,用于在所述第二视图上,使用第二渲染方式绘制所述第一对象数据对应的对象;a second copy view unit, configured to draw an object corresponding to the first object data by using a second rendering manner on the second view;
移动缩放单元,用于监听用户的触摸操作,在所述第二视图上,使用第二渲染方式绘制根据所述触摸操作移动或缩放的对象。And a mobile scaling unit, configured to monitor a user's touch operation, and on the second view, draw an object moved or scaled according to the touch operation using a second rendering manner.
在另一个实施例中,所述渲染选择模块包括:In another embodiment, the rendering selection module includes:
缩放控点渲染单元,用于若待绘制对象为缩放控点,则选择使用第一渲染方式;其中,所述缩放控点定义为根据用户的点击操作在图片边沿上生成的用于控制图片大小的控点;a zoom control point rendering unit, configured to use a first rendering mode if the object to be drawn is a zoom handle; wherein the zoom handle is defined as a size of the image generated on the edge of the image according to a click operation of the user Control point
图片渲染单元,用于若待绘制对象为图片,则选择使用第二渲染方式。The picture rendering unit is configured to select the second rendering mode if the object to be drawn is a picture.
图1是本发明提供的渲染方法的实施例一的流程图;1 is a flowchart of Embodiment 1 of a rendering method provided by the present invention;
图2是本发明提供的渲染方法的实施例一步骤S2的具体流程图;2 is a specific flowchart of step S2 of Embodiment 1 of the rendering method provided by the present invention;
图3是本发明提供的渲染方法的实施例二步骤S2的具体流程图;3 is a specific flowchart of step S2 of Embodiment 2 of the rendering method provided by the present invention;
图4是本发明提供的渲染方法的实施例三步骤S2的具体流程图;4 is a specific flowchart of Embodiment 3 of the rendering method provided by the present invention;
图5是本发明提供的渲染装置的结构框图。
FIG. 5 is a structural block diagram of a rendering apparatus provided by the present invention.
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
参见图1,是本发明提供的渲染方法的实施例一的流程图。实施例一中,渲染方法包括:Referring to FIG. 1 , it is a flowchart of Embodiment 1 of a rendering method provided by the present invention. In the first embodiment, the rendering method includes:
S1、在书写软件的画布上配置第一视图和第二视图;其中,所述第一视图和第二视图均覆盖所述画布,且所述第一视图和所述第二视图的背景均设为透明;S1, configuring a first view and a second view on the 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 both set Transparent
S2、根据待绘制的对象选择渲染方式;S2, selecting a rendering mode according to the object to be drawn;
S3、若选择使用第一渲染方式,则在所述第一视图上使用第一渲染方式绘制指定对象;S3. If the first rendering mode is selected to be used, drawing the specified object by using the first rendering manner on the first view;
S4、若选择使用第二渲染方式,则在所述第二视图上使用第二渲染方式绘制指定对象。S4. If the second rendering mode is selected, the specified object is drawn by using the second rendering manner on the second view.
本发明提供的渲染方法的实施例一,在书写软件的画布上配置了第一视图和第二视图,由于视图背景透明,因此两个视图叠加,用户可以同时看到两个视图所渲染的内容。根据需求将待绘制的对象一部分使用第一渲染方式绘制,另一部分使用第二渲染方式绘制,使得对平滑效果要求高的待绘制对象和对渲染速度要求高的待绘制对象都能达到理想的渲染效果,克服单一渲染方式的缺陷限制。In the first embodiment of the rendering method provided by the present invention, the first view and the second view are configured on the canvas of the writing software. Since the view background is transparent, the two views are superimposed, and the user can simultaneously view the content rendered by the two views. . According to the requirements, part of the object to be drawn is drawn in the first rendering mode, and the other part is drawn in the second rendering mode, so that the object to be drawn with high smoothing effect and the object to be drawn with high rendering speed can achieve ideal rendering. The effect of overcoming the limitations of the single rendering approach.
参见图2,是本发明提供的渲染方法的实施例一步骤S2的具体流程图。实施例一中的步骤S2具体包括:Referring to FIG. 2, it is a specific flowchart of step S2 of Embodiment 1 of the rendering method provided by the present invention. Step S2 in the first embodiment specifically includes:
S211、由书写软件当前的工作模式确定待绘制的对象的属性;其中,在书写软件处于书写模式时,所述待绘制的对象为根据用户的触摸操作书写生成的对象;在书写软件处于移动模式或缩放模式下,所述待绘制的对象为根据用户
的触摸操作移动或缩放的对象;S211. Determine, by the current working mode of the writing software, an attribute of the object to be drawn; wherein, when the writing software is in the writing mode, the object to be drawn is an object generated according to a user's touch operation; and the writing software is in a moving mode. Or in the zoom mode, the object to be drawn is based on the user
Touch operation to move or scale the object;
S212、若待绘制的对象为根据用户的触摸操作书写生成的对象,则选择使用第一渲染方式;S212. If the object to be drawn is an object generated according to a user's touch operation, select to use the first rendering mode;
S213、若待绘制的对象为根据用户的触摸操作移动或缩放的对象,则选择使用第二渲染方式。S213. If the object to be drawn is an object that is moved or scaled according to a touch operation of the user, then the second rendering mode is selected to be used.
需要说明的是,触屏终端的书写软件的工作模式包括书写模式、移动模式和缩放模式,本领域技术人员可知,在书写模式下,用户在触屏终端上执行触摸操作,根据触摸操作的轨迹,可以生成笔迹对象,用户还可在触屏终端上,插入图片;在移动模式下,用户在触屏终端上执行触摸操作,根据触摸操作的轨迹,可以移动触摸点所对应的对象;在缩放模式下,用户在触屏终端上对对象的边沿执行触摸操作,根据触摸操作的轨迹,可以缩放该对象;此外,移动模式和缩放模式可以设置为同一种模式。It should be noted that the working mode of the writing software of the touch screen terminal includes a writing mode, a moving mode, and a zooming mode. It can be known by those skilled in the art that in the writing mode, the user performs a touch operation on the touch screen terminal according to the trajectory of the touch operation. The handwriting object can be generated, and the user can also insert a picture on the touch screen terminal; in the mobile mode, the user performs a touch operation on the touch screen terminal, and according to the track of the touch operation, the object corresponding to the touch point can be moved; In the mode, the user performs a touch operation on the edge of the object on the touch screen terminal, and the object can be scaled according to the trajectory of the touch operation; in addition, the movement mode and the zoom mode can be set to the same mode.
书写软件可由多种方式触发进入不同的工作模式。例如,在触屏终端上的书写软件,书写软件启动时默认进入书写模式,可以采用特定的手势进入移动和缩放模式,特定的手势可以是三点触发,即用户三个手指同时按下,则进入移动和缩放模式,此时待绘制的对象切换为根据用户的触摸操作移动或缩放的对象,即根据移动和缩放操作,更新对象;当用户完成移动和缩放后,抬手时则进入书写模式。此外,也可以在书写软件的工具栏上设置模式选择栏,用户通过操作所述模式选择栏切换工作模式。Writing software can be triggered into different working modes in a variety of ways. For example, in the writing software on the touch screen terminal, the writing software enters the writing mode by default when starting, and can enter the moving and zooming mode with a specific gesture. The specific gesture can be three-point triggering, that is, when the user presses three fingers simultaneously, Entering the moving and zooming mode, the object to be drawn is switched to the object moved or zoomed according to the user's touch operation, that is, the object is updated according to the moving and zooming operation; when the user finishes moving and zooming, when the user raises the hand, the writing mode is entered. . In addition, a mode selection bar may also be set on the toolbar of the writing software, and the user switches the working mode by operating the mode selection bar.
步骤S3具体包括:Step S3 specifically includes:
S311、若选择使用第一渲染方式,则记录第二对象数据,清空所述第二视图;其中,所述第二对象数据为当前所述第二视图上的所有对象对应的数据;S311, if the first rendering mode is selected, the second object data is recorded, and the second view is cleared; wherein the second object data is data corresponding to all objects on the current second view;
S312、在所述第一视图上,使用第一渲染方式绘制所述第二对象数据对应的对象;S312. On the first view, the object corresponding to the second object data is drawn by using a first rendering manner;
S313、监听用户的触摸操作,在所述第一视图上,使用第一渲染方式绘制根据所述触摸操作书写生成的对象;S313. Listen to a touch operation of the user, and draw, on the first view, an object generated according to the touch operation by using a first rendering manner;
步骤S4具体包括:
Step S4 specifically includes:
S411、若选择使用第二渲染方式,则记录第一对象数据,清空所述第一视图;其中,所述第一对象数据为当前所述第一视图上的所有对象对应的数据;S411, if the second rendering mode is selected, the first object data is recorded, and the first view is cleared; wherein the first object data is data corresponding to all objects on the current first view;
S412、在所述第二视图上,使用第二渲染方式绘制所述第一对象数据对应的对象;S412. On the second view, the object corresponding to the first object data is drawn by using a second rendering manner;
S413、监听用户的触摸操作,在所述第二视图上,使用第二渲染方式绘制根据所述触摸操作移动或缩放的对象。S413. Listen to a user's touch operation, and on the second view, draw an object moved or scaled according to the touch operation using a second rendering manner.
当书写软件处于书写模式时,由于跟随用户的触摸操作生成书写笔迹或者插入图片对于渲染速度要求并不高,可采用一种平滑效果好但渲染速度一般的渲染方式,能达到理想的渲染效果;而在移动、缩放笔迹或图片等对象时,采用另一种渲染速度快的渲染方式,能避免渲染速度跟不上操作的速度导致卡顿,也能达到理想的渲染效果。在安卓系统上,平滑效果好的渲染方式优选为SurfaceView渲染,渲染速度快的渲染方式优选为OpenGL渲染,即第一渲染方式优选为SurfaceView渲染,第二渲染方式优选为OpenGL渲染。在其他操作系统上,可以选择其他的渲染方式作为第一渲染方式和第二渲染方式。When the writing software is in the writing mode, since the writing stroke or the inserted picture is not required for the rendering speed following the user's touch operation, a rendering method with a good smoothing effect and a general rendering speed can be used to achieve an ideal rendering effect; When moving or zooming an object such as a handwriting or a picture, another rendering method with a fast rendering speed can avoid the rendering speed and the speed of the operation, resulting in an ideal rendering effect. On the Android system, the rendering method with good smoothing effect is preferably SurfaceView rendering. The rendering method with fast rendering speed is preferably OpenGL rendering, that is, the first rendering mode is preferably SurfaceView rendering, and the second rendering mode is preferably OpenGL rendering. On other operating systems, other rendering modes can be selected as the first rendering mode and the second rendering mode.
在使用OpenGL渲染绘制笔迹时,由于OpenGL渲染对粗线条渲染效果不好,采用固定的线宽绘制笔迹能达到较为平滑的效果。即:When drawing a handwriting using OpenGL, since OpenGL rendering does not work well for thick lines, drawing a handwriting with a fixed line width can achieve a smoother effect. which is:
进一步地,所述对象包括图片和笔迹;则在所述第二视图上使用第二渲染方式绘制指定对象时,若所述对象为笔迹,则使用第二渲染方式按照预设的线宽绘制所述笔迹。Further, the object includes a picture and a handwriting; when the specified object is drawn by using the second rendering manner on the second view, if the object is a handwriting, the second rendering mode is used to draw the preset line width. Handwriting.
同一个对象在不同工作模式下需分别在两个视图上用不同的渲染方式绘制,在切换工作模式时,将所有对象切换至另一视图上可避免图像重叠出错的问题。The same object needs to be drawn in different rendering modes on two views in different working modes. When switching the working mode, switching all objects to another view can avoid the problem of image overlap error.
本发明提供的渲染方法的实施例二,渲染方法包括: Embodiment 2 of the rendering method provided by the present invention, the rendering method includes:
S1、在书写软件的画布上配置第一视图和第二视图;其中,所述第一视图和第二视图均覆盖所述画布,且所述第一视图和所述第二视图的背景均设为透明;S1, configuring a first view and a second view on the 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 both set Transparent
S2、根据待绘制的对象选择渲染方式;
S2, selecting a rendering mode according to the object to be drawn;
S3、若选择使用第一渲染方式,则在所述第一视图上使用第一渲染方式绘制指定对象;S3. If the first rendering mode is selected to be used, drawing the specified object by using the first rendering manner on the first view;
S4、若选择使用第二渲染方式,则在所述第二视图上使用第二渲染方式绘制指定对象。S4. If the second rendering mode is selected, the specified object is drawn by using the second rendering manner on the second view.
图3是本发明提供的渲染方法的实施例二步骤S2的具体流程图。步骤S2具体包括:FIG. 3 is a specific flowchart of step S2 of Embodiment 2 of the rendering method provided by the present invention. Step S2 specifically includes:
S221、若待绘制对象为缩放控点,则选择使用第一渲染方式;其中,所述缩放控点定义为根据用户的点击操作在图片边沿上生成的用于控制图片大小的控点;S221: If the object to be drawn is a zoom handle, select to use a first rendering manner; wherein the zoom handle is defined as a handle for controlling a size of the image generated on an edge of the image according to a click operation of the user;
S222、若待绘制对象为图片,则选择使用第二渲染方式。S222. If the object to be drawn is a picture, select to use the second rendering mode.
实施例二中,在安卓系统,第一渲染方式优选为SurfaceView渲染,第二渲染方式优选为OpenGL渲染。在其他操作系统上,可以选择其他的渲染方式作为第一渲染方式和第二渲染方式。实施例二根据绘制对象的类型选择使用渲染方式。如,书写软件里的图片对象被选中时,会出现在图片边沿上生成8个控制图片大小的控点,通过控点可以对图片进行缩放,这时候这8个控点可以使用SurfaceView渲染绘制,因为控制点跟手要求相对低,SurfaceView渲染也比较容易进行绘制;而图片的缩放就使用OpenGL渲染进行绘制,来避免卡顿的情况。在视图透明的前提下,用户看到的内容是两个视图叠加的内容。此外,笔迹对象也可以使用SurfaceView渲染绘制,避免OpenGL渲染对笔迹的渲染效果不好,即步骤S2还包括:In the second embodiment, in the Android system, the first rendering mode is preferably a SurfaceView rendering, and the second rendering mode is preferably an OpenGL rendering. On other operating systems, other rendering modes can be selected as the first rendering mode and the second rendering mode. Embodiment 2 selects a rendering mode according to the type of the drawing object. For example, when the picture object in the writing software is selected, eight control points for controlling the image size are generated on the edge of the picture, and the picture can be scaled by the control point. At this time, the eight handles can be rendered by using SurfaceView. Because the control points are relatively low, the SurfaceView rendering is easier to draw; the scaling of the image is drawn using OpenGL rendering to avoid stuttering. Under the premise that the view is transparent, what the user sees is the content superimposed by the two views. In addition, the handwriting object can also be rendered using SurfaceView rendering, to avoid the rendering effect of the handwriting of OpenGL rendering is not good, that is, step S2 also includes:
S223、若待绘制对象为笔迹,则选择使用第一渲染方式。S223. If the object to be drawn is a handwriting, select to use the first rendering mode.
本发明提供的渲染方法的实施例三,渲染方法包括: Embodiment 3 of the rendering method provided by the present invention, the rendering method includes:
S1、在书写软件的画布上配置第一视图和第二视图;其中,所述第一视图和第二视图均覆盖所述画布,且所述第一视图和所述第二视图的背景均设为透明;S1, configuring a first view and a second view on the 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 both set Transparent
S2、根据待绘制的对象选择渲染方式;S2, selecting a rendering mode according to the object to be drawn;
S3、若选择使用第一渲染方式,则在所述第一视图上使用第一渲染方式绘
制指定对象;S3. If the first rendering mode is selected, the first rendering mode is used on the first view.
Designated object;
S4、若选择使用第二渲染方式,则在所述第二视图上使用第二渲染方式绘制指定对象。S4. If the second rendering mode is selected, the specified object is drawn by using the second rendering manner on the second view.
参见图4,是本发明提供的渲染方式的实施例三步骤S2的具体流程图。Referring to FIG. 4, it is a specific flowchart of the third step S2 of the third embodiment of the present invention.
步骤S2包括:Step S2 includes:
S231、根据是否接收到从当前打开页面跳转到目标页面的翻页指令,判断待绘制对象是否翻页效果的目标页面;S231. Determine, according to whether a page turning instruction that jumps from the currently open page to the target page is received, determine a target page of whether the object to be drawn has a page turning effect;
S232、若所述待绘制对象不是翻页效果的目标页面,则选择使用第一渲染方式;S232. If the object to be drawn is not the target page of the page turning effect, select to use the first rendering mode;
S233、若所述待绘制对象是翻页效果的目标页面,则选择使用第二渲染方式;S233. If the object to be drawn is a target page of a page turning effect, select to use a second rendering mode;
步骤S3具体为:若选择使用第一渲染,则在所述第一视图上使用第一渲染方式绘制由用户的触摸操作生成、移动或缩放的对象;Step S3 is specifically: if the first rendering is selected to be used, the object generated, moved, or scaled by the touch operation of the user is drawn on the first view by using the first rendering manner;
步骤S4具体为:若选择使用第二渲染方式,则清空所述第一视图,在所述第二视图上使用第二渲染方式绘制所述目标页面。Step S4 is specifically: if the second rendering mode is selected to be used, the first view is cleared, and the target page is drawn on the second view by using a second rendering manner.
实施例三中,在安卓系统,第一渲染方式优选为SurfaceView渲染,第二渲染方式优选为OpenGL渲染。在其他操作系统上,可以选择其他的渲染方式作为第一渲染方式和第二渲染方式。实施例三对翻页效果使用OpenGL渲染,提高翻页的速度。In the third embodiment, in the Android system, the first rendering mode is preferably a SurfaceView rendering, and the second rendering mode is preferably an OpenGL rendering. On other operating systems, other rendering modes can be selected as the first rendering mode and the second rendering mode. The third embodiment of the page turning effect uses OpenGL rendering to improve the speed of page turning.
参见图5,是本发明提供的渲染装置的结构框图。本发明另一方面提供一种渲染装置,包括:Referring to FIG. 5, it is a structural block diagram of a rendering apparatus provided by the present invention. Another aspect of the present invention provides a rendering apparatus, including:
视图配置模块1,用于在书写软件的画布上配置第一视图和第二视图;其中,所述第一视图和第二视图均覆盖所述画布,且所述第一视图和所述第二视图的背景均设为透明;a view configuration module 1 configured to configure 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 first view and the second view The background of the view is set to be transparent;
渲染选择模块2,用于根据待绘制的对象选择渲染方式;a rendering selection module 2, configured to select a rendering mode according to the object to be drawn;
第一渲染模块3,用于若选择使用第一渲染方式,则在所述第一视图上使用第一渲染方式绘制指定对象;
a first rendering module 3, configured to draw a specified object using the first rendering manner on the first view if the first rendering mode is selected to be used;
第二渲染模块4,用于若选择使用第二渲染方式,则在所述第二视图上使用第二渲染方式绘制指定对象。The second rendering module 4 is configured to draw the specified object by using the second rendering manner on the second view if the second rendering mode is selected to be used.
在其中一个实施例中,所述渲染选择模块包括:In one embodiment, the rendering selection module includes:
模式确认单元,用于由书写软件当前的工作模式确定待绘制的对象的属性;其中,在书写软件处于书写模式时,所述待绘制的对象为根据用户的触摸操作书写生成的对象;在书写软件处于移动模式或缩放模式下,所述待绘制的对象为根据用户的触摸操作移动或缩放的对象;a mode confirmation unit, configured to determine, by the current working mode of the writing software, an attribute of the object to be drawn; wherein, when the writing software is in the writing mode, the object to be drawn is an object generated according to a user's touch operation; The software is in a moving mode or a zoom mode, and the object to be drawn is an object that is moved or scaled according to a touch operation of the user;
第一选择单元,用于若待绘制的对象为根据用户的触摸操作书写生成的对象,则选择使用第一渲染方式;a first selecting unit, configured to use the first rendering mode if the object to be drawn is an object generated according to a user's touch operation;
第二选择单元,用于若待绘制的对象为根据用户的触摸操作移动或缩放的对象,则选择使用第二渲染方式。And a second selecting unit, configured to use the second rendering mode if the object to be drawn is an object that is moved or scaled according to a touch operation of the user.
进一步地,所述第一渲染模块包括:Further, the first rendering module includes:
第一清空视图单元,用于若选择使用第一渲染方式,则记录第二对象数据,清空所述第二视图;其中,所述第二对象数据为当前所述第二视图上的所有对象对应的数据;a first clearing view unit, configured to: when the first rendering mode is selected to be used, record the second object data, and clear the second view; wherein the second object data is corresponding to all objects on the current second view The data;
第一复制视图单元,用于在所述第一视图上,使用第一渲染方式绘制所述第二对象数据对应的对象;a first copy view unit, configured to draw an object corresponding to the second object data by using a first rendering manner on the first view;
书写生成单元,用于监听用户的触摸操作,在所述第一视图上,使用第一渲染方式绘制根据所述触摸操作书写生成的对象;a writing generating unit, configured to monitor a touch operation of the user, and, on the first view, draw an object generated according to the touch operation by using a first rendering manner;
所述第二渲染模块包括:The second rendering module includes:
第二清空视图单元,用于若选择使用第二渲染方式,则记录第一对象数据,清空所述第一视图;其中,所述第一对象数据为当前所述第一视图上的所有对象对应的数据;And a second clearing view unit, configured to: when the second rendering mode is selected, record the first object data, and clear the first view; wherein the first object data is corresponding to all objects on the current first view The data;
第二复制视图单元,用于在所述第二视图上,使用第二渲染方式绘制所述第一对象数据对应的对象;a second copy view unit, configured to draw an object corresponding to the first object data by using a second rendering manner on the second view;
移动缩放单元,用于监听用户的触摸操作,在所述第二视图上,使用第二渲染方式绘制根据所述触摸操作移动或缩放的对象。
And a mobile scaling unit, configured to monitor a user's touch operation, and on the second view, draw an object moved or scaled according to the touch operation using a second rendering manner.
在另一个实施例中,所述渲染选择模块包括:In another embodiment, the rendering selection module includes:
缩放控点渲染单元,用于若待绘制对象为缩放控点,则选择使用第一渲染方式;其中,所述缩放控点定义为根据用户的点击操作在图片边沿上生成的用于控制图片大小的控点;a zoom control point rendering unit, configured to use a first rendering mode if the object to be drawn is a zoom handle; wherein the zoom handle is defined as a size of the image generated on the edge of the image according to a click operation of the user Control point
图片渲染单元,用于若待绘制对象为图片,则选择使用第二渲染方式。The picture rendering unit is configured to select the 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. Since the view background is transparent, the two views are superimposed, and the user can simultaneously see the content rendered by the two views. According to the requirements, part of the object to be drawn is drawn in the first rendering mode, and the other part is drawn in the second rendering mode, so that the object to be drawn with high smoothing effect and the object to be drawn with high rendering speed can achieve ideal rendering. The effect of overcoming the limitations of the single rendering approach.
以上是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和变形,这些改进和变形也视为本发明的保护范围。
The above is a preferred embodiment of the present invention, and it should be noted that those skilled in the art can also make several improvements and modifications without departing from the principles of the present invention. The scope of protection of the invention.
Claims (10)
- 一种渲染方法,其特征在于,包括: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 both set to be transparent ;根据待绘制的对象选择渲染方式;Select the rendering mode according to the object to be drawn;若选择使用第一渲染方式,则在所述第一视图上使用第一渲染方式绘制指定对象;If the first rendering mode is selected to be used, drawing the specified object by using the first rendering manner on the first view;若选择使用第二渲染方式,则在所述第二视图上使用第二渲染方式绘制指定对象。If the second rendering mode is selected to be used, the specified object is drawn on the second view using the second rendering mode.
- 如权利要求1所述的渲染方法,其特征在于,所述根据待绘制的对象选择渲染方式,包括:The rendering method according to claim 1, wherein the selecting a rendering manner according to the object to be drawn comprises:由书写软件当前的工作模式确定待绘制的对象的属性;其中,在书写软件处于书写模式时,所述待绘制的对象为根据用户的触摸操作书写生成的对象;在书写软件处于移动模式或缩放模式下,所述待绘制的对象为根据用户的触摸操作移动或缩放的对象;Determining an attribute of the object to be drawn by a current working mode of the writing software; wherein, when the writing software is in the writing mode, the object to be drawn is an object generated according to a user's touch operation; the writing software is in a moving mode or zooming In the mode, the object to be drawn is an object that is moved or scaled according to a touch operation of the user;若待绘制的对象为根据用户的触摸操作书写生成的对象,则选择使用第一渲染方式;If the object to be drawn is an object generated according to a user's touch operation, then the first rendering mode is selected;若待绘制的对象为根据用户的触摸操作移动或缩放的对象,则选择使用第二渲染方式。If the object to be drawn is an object that is moved or scaled according to a user's touch operation, then the second rendering mode is selected.
- 如权利要求2所述的渲染方法,其特征在于,所述若选择使用第一渲染方式,则在所述第一视图上使用第一渲染方式绘制指定对象,具体包括:The rendering method of claim 2, wherein if the first rendering mode is selected, the specified rendering object is drawn by using the first rendering manner on the first view, specifically:若选择使用第一渲染方式,则记录第二对象数据,清空所述第二视图;其中,所述第二对象数据为当前所述第二视图上的所有对象对应的数据;If the first rendering mode is selected, the second object data is recorded, and the second view is cleared; wherein the second object data is data corresponding to all objects on the current second view;在所述第一视图上,使用第一渲染方式绘制所述第二对象数据对应的对象;Drawing, on the first view, an object corresponding to the second object data by using a first rendering manner;监听用户的触摸操作,在所述第一视图上,使用第一渲染方式绘制根据所 述触摸操作书写生成的对象;Listening to the user's touch operation, and using the first rendering method to draw the basis according to the first view The object generated by the touch operation writing;所述若选择使用第二渲染方式,则在所述第二视图上使用第二渲染方式绘制指定对象,具体包括:If the second rendering mode is selected, the specified object is drawn by using the second rendering manner on the second view, which includes:若选择使用第二渲染方式,则记录第一对象数据,清空所述第一视图;其中,所述第一对象数据为当前所述第一视图上的所有对象对应的数据;If the second rendering mode is selected, the first object data is recorded, and the first view is cleared; wherein the first object data is data corresponding to all objects on the current first view;在所述第二视图上,使用第二渲染方式绘制所述第一对象数据对应的对象;And drawing, on the second view, an object corresponding to the first object data by using a second rendering manner;监听用户的触摸操作,在所述第二视图上,使用第二渲染方式绘制根据所述触摸操作移动或缩放的对象。A user's touch operation is listened to, and on the second view, an object moved or scaled according to the touch operation is drawn using a second rendering manner.
- 如权利要求1至3任一项所述的渲染方法,其特征在于,所述第一渲染方式为SurfaceView渲染,所述第二渲染方式为OpenGL渲染。The rendering method according to any one of claims 1 to 3, wherein the first rendering mode is a SurfaceView rendering, and the second rendering mode is an OpenGL rendering.
- 如权利要求4所述的渲染方法,其特征在于,所述对象包括图片和笔迹;则在所述第二视图上使用第二渲染方式绘制指定对象时,若所述对象为笔迹,则使用第二渲染方式按照预设的线宽绘制所述笔迹。The rendering method according to claim 4, wherein the object includes a picture and a handwriting; and when the specified object is drawn using the second rendering mode on the second view, if the object is a handwriting, the first The second rendering mode draws the handwriting according to a preset line width.
- 如权利要求1所述的渲染方法,其特征在于,所述根据待绘制对象,选择渲染方式,包括:The rendering method according to claim 1, wherein the selecting a rendering mode according to the object to be drawn comprises:若待绘制对象为缩放控点,则选择使用第一渲染方式;其中,所述缩放控点定义为根据用户的点击操作在图片边沿上生成的用于控制图片大小的控点;If the object to be drawn is a zoom handle, the first rendering mode is selected; wherein the zoom handle is defined as a handle for controlling the size of the image generated on the edge of the image according to a click operation of the user;若待绘制对象为图片,则选择使用第二渲染方式。If the object to be drawn is a picture, then the second rendering mode is selected.
- 一种渲染装置,其特征在于,包括:A rendering device, comprising:视图配置模块,用于在书写软件的画布上配置第一视图和第二视图;其中,所述第一视图和第二视图均覆盖所述画布,且所述第一视图和所述第二视图的背景均设为透明;a view configuration module, configured to configure 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 first view and the second view The background is set to be transparent;渲染选择模块,用于根据待绘制的对象选择渲染方式; a rendering selection module for selecting a rendering mode according to the object to be drawn;第一渲染模块,用于若选择使用第一渲染方式,则在所述第一视图上使用第一渲染方式绘制指定对象;a first rendering module, configured to draw a specified object using the first rendering manner on the first view if the first rendering mode is selected to be used;第二渲染模块,用于若选择使用第二渲染方式,则在所述第二视图上使用第二渲染方式绘制指定对象。And a second rendering module, configured to draw the specified object by using the second rendering manner on the second view if the second rendering mode is selected to be used.
- 如权利要求7所述的渲染装置,其特征在于,所述渲染选择模块包括:The rendering apparatus of claim 7, wherein the rendering selection module comprises:模式确认单元,用于由书写软件当前的工作模式确定待绘制的对象的属性;其中,在书写软件处于书写模式时,所述待绘制的对象为根据用户的触摸操作书写生成的对象;在书写软件处于移动模式或缩放模式下,所述待绘制的对象为根据用户的触摸操作移动或缩放的对象;a mode confirmation unit, configured to determine, by the current working mode of the writing software, an attribute of the object to be drawn; wherein, when the writing software is in the writing mode, the object to be drawn is an object generated according to a user's touch operation; The software is in a moving mode or a zoom mode, and the object to be drawn is an object that is moved or scaled according to a touch operation of the user;第一选择单元,用于若待绘制的对象为根据用户的触摸操作书写生成的对象,则选择使用第一渲染方式;a first selecting unit, configured to use the first rendering mode if the object to be drawn is an object generated according to a user's touch operation;第二选择单元,用于若待绘制的对象为根据用户的触摸操作移动或缩放的对象,则选择使用第二渲染方式。And a second selecting unit, configured to use the second rendering mode if the object to be drawn is an object that is moved or scaled according to a touch operation of the user.
- 如权利要求8所述的渲染装置,其特征在于,所述第一渲染模块包括:The rendering device of claim 8, wherein the first rendering module comprises:第一清空视图单元,用于若选择使用第一渲染方式,则记录第二对象数据,清空所述第二视图;其中,所述第二对象数据为当前所述第二视图上的所有对象对应的数据;a first clearing view unit, configured to: when the first rendering mode is selected to be used, record the second object data, and clear the second view; wherein the second object data is corresponding to all objects on the current second view The data;第一复制视图单元,用于在所述第一视图上,使用第一渲染方式绘制所述第二对象数据对应的对象;a first copy view unit, configured to draw an object corresponding to the second object data by using a first rendering manner on the first view;书写生成单元,用于监听用户的触摸操作,在所述第一视图上,使用第一渲染方式绘制根据所述触摸操作书写生成的对象;a writing generating unit, configured to monitor a touch operation of the user, and, on the first view, draw an object generated according to the touch operation by using a first rendering manner;所述第二渲染模块包括:The second rendering module includes:第二清空视图单元,用于若选择使用第二渲染方式,则记录第一对象数据,清空所述第一视图;其中,所述第一对象数据为当前所述第一视图上的所有对象对应的数据; And a second clearing view unit, configured to: when the second rendering mode is selected, record the first object data, and clear the first view; wherein the first object data is corresponding to all objects on the current first view The data;第二复制视图单元,用于在所述第二视图上,使用第二渲染方式绘制所述第一对象数据对应的对象;a second copy view unit, configured to draw an object corresponding to the first object data by using a second rendering manner on the second view;移动缩放单元,用于监听用户的触摸操作,在所述第二视图上,使用第二渲染方式绘制根据所述触摸操作移动或缩放的对象。And a mobile scaling unit, configured to monitor a user's touch operation, and on the second view, draw an object moved or scaled according to the touch operation using a second rendering manner.
- 如权利要求7所述的渲染装置,其特征在于,所述渲染选择模块包括:The rendering apparatus of claim 7, wherein the rendering selection module comprises:缩放控点渲染单元,用于若待绘制对象为缩放控点,则选择使用第一渲染方式;其中,所述缩放控点定义为根据用户的点击操作在图片边沿上生成的用于控制图片大小的控点;a zoom control point rendering unit, configured to use a first rendering mode if the object to be drawn is a zoom handle; wherein the zoom handle is defined as a size of the image generated on the edge of the image according to a click operation of the user Control point图片渲染单元,用于若待绘制对象为图片,则选择使用第二渲染方式。 The picture rendering unit is configured to select the second rendering mode if the object to be drawn is a picture.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610911029.4A CN106502667B (en) | 2016-10-18 | 2016-10-18 | Rendering method and device |
CN201610911029.4 | 2016-10-18 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018072386A1 true WO2018072386A1 (en) | 2018-04-26 |
Family
ID=58295349
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/077141 WO2018072386A1 (en) | 2016-10-18 | 2017-03-17 | Rendering method and apparatus |
Country Status (2)
Country | Link |
---|---|
CN (2) | CN110427236B (en) |
WO (1) | WO2018072386A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112565839A (en) * | 2020-11-23 | 2021-03-26 | 青岛海信传媒网络技术有限公司 | Display method and display device of screen projection image |
Families Citing this family (7)
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 | 斑马智行网络(香港)有限公司 | An interface adjustment method, apparatus, device 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 |
CN114170368B (en) * | 2021-12-10 | 2024-08-23 | 京东方科技集团股份有限公司 | Rendering method and system of quadrilateral wireframe of model and model rendering device |
CN115550713B (en) * | 2022-11-29 | 2023-04-28 | 杭州星犀科技有限公司 | Audio and video live broadcast rendering method, device, equipment and medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103164839A (en) * | 2013-03-07 | 2013-06-19 | 华为技术有限公司 | Method, device and terminal for drawing |
US20150178977A1 (en) * | 2013-05-14 | 2015-06-25 | Google Inc. | Rendering Vector Maps in a Geographic Information System |
CN105096373A (en) * | 2015-06-30 | 2015-11-25 | 华为技术有限公司 | Media content rendering method, user device and rendering system |
CN106502667A (en) * | 2016-10-18 | 2017-03-15 | 广州视睿电子科技有限公司 | Rendering method and device |
Family Cites Families (11)
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 |
JP5777735B2 (en) * | 2012-01-31 | 2015-09-09 | 三菱電機株式会社 | Map drawing device, navigation device, and map drawing method |
US9262795B2 (en) * | 2012-07-31 | 2016-02-16 | Intel Corporation | Hybrid rendering systems and methods |
CN104750473A (en) * | 2013-12-31 | 2015-07-01 | 鸿合科技有限公司 | Android system based writing superposition method |
CN104407865B (en) * | 2014-11-25 | 2017-10-10 | 广州酷狗计算机科技有限公司 | The display methods and device of 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 |
CN105405159A (en) * | 2015-10-27 | 2016-03-16 | 深圳市东向同人科技有限公司 | Handwriting display method and device |
CN105574925A (en) * | 2015-12-11 | 2016-05-11 | 中国航空工业集团公司西安航空计算技术研究所 | Self-adaptive dynamic selection strategy of light treatment algorithm |
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 |
-
2016
- 2016-10-18 CN CN201910630465.8A patent/CN110427236B/en active Active
- 2016-10-18 CN CN201610911029.4A patent/CN106502667B/en active Active
-
2017
- 2017-03-17 WO PCT/CN2017/077141 patent/WO2018072386A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103164839A (en) * | 2013-03-07 | 2013-06-19 | 华为技术有限公司 | Method, device and terminal for drawing |
US20150178977A1 (en) * | 2013-05-14 | 2015-06-25 | Google Inc. | Rendering Vector Maps in a Geographic Information System |
CN105096373A (en) * | 2015-06-30 | 2015-11-25 | 华为技术有限公司 | Media content rendering method, user device and rendering system |
CN106502667A (en) * | 2016-10-18 | 2017-03-15 | 广州视睿电子科技有限公司 | Rendering method and device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112565839A (en) * | 2020-11-23 | 2021-03-26 | 青岛海信传媒网络技术有限公司 | Display method and display device of screen projection image |
CN112565839B (en) * | 2020-11-23 | 2022-11-29 | 青岛海信传媒网络技术有限公司 | Display method and display device of screen projection image |
Also Published As
Publication number | Publication date |
---|---|
CN110427236A (en) | 2019-11-08 |
CN106502667B (en) | 2019-09-03 |
CN106502667A (en) | 2017-03-15 |
CN110427236B (en) | 2023-06-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2018072386A1 (en) | Rendering method and apparatus | |
US12159027B2 (en) | Method and device for controlling interactive white board | |
JP6047806B2 (en) | Image display device, image display method, and program | |
CN105278811B (en) | Screen display device and method of intelligent terminal | |
CN105556495B (en) | Method for screen mirroring and source device thereof | |
US9489040B2 (en) | Interactive input system having a 3D input space | |
CN108304132B (en) | Graph display method, device, equipment and storage medium | |
US20230325062A1 (en) | Method for adjusting interface display state, and electronic device | |
US11361518B2 (en) | Efficiency enhancements to construction of virtual reality environments | |
JP7537691B2 (en) | Method and device for adjusting the position of an operation control, terminal, and computer program | |
CN107291346A (en) | Drafting content processing method, device and the terminal device of terminal device | |
WO2022188545A1 (en) | Content display method and apparatus, storage medium, and electronic device | |
CN105824553A (en) | Touch method and mobile terminal | |
KR20230153488A (en) | Image processing methods, devices, devices, and storage media | |
WO2019000669A1 (en) | Operating-mode switching method and apparatus, mirror display device, and storage medium | |
WO2021068405A1 (en) | Element transfer method, apparatus and device, and storage medium | |
WO2019105062A1 (en) | Content display method, apparatus, and terminal device | |
WO2024088187A1 (en) | Information display method and apparatus, and electronic device and storage medium | |
JP2016538647A (en) | Document presentation method and user terminal | |
CN117311584A (en) | Control system of head-mounted display device, intelligent terminal and head-mounted display device | |
CN113741775A (en) | Image processing method and device and electronic equipment | |
US20230418446A1 (en) | Screenshot method, electronic device and computer-readable storage medium | |
CN114339050B (en) | Display method and device and electronic equipment | |
WO2023065939A1 (en) | Touch response method and apparatus, interactive panel, and storage medium | |
EP4451695A1 (en) | Photographing interface display method and apparatus, and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17861905 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 17861905 Country of ref document: EP Kind code of ref document: A1 |