WO2018107854A1 - 窗口阴影显示方法及装置 - Google Patents

窗口阴影显示方法及装置 Download PDF

Info

Publication number
WO2018107854A1
WO2018107854A1 PCT/CN2017/103446 CN2017103446W WO2018107854A1 WO 2018107854 A1 WO2018107854 A1 WO 2018107854A1 CN 2017103446 W CN2017103446 W CN 2017103446W WO 2018107854 A1 WO2018107854 A1 WO 2018107854A1
Authority
WO
WIPO (PCT)
Prior art keywords
window
vertex
dependent
border
slave
Prior art date
Application number
PCT/CN2017/103446
Other languages
English (en)
French (fr)
Inventor
程遥
Original Assignee
广州视源电子科技股份有限公司
广州视睿电子科技有限公司
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 广州视源电子科技股份有限公司, 广州视睿电子科技有限公司 filed Critical 广州视源电子科技股份有限公司
Publication of WO2018107854A1 publication Critical patent/WO2018107854A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance

Definitions

  • the present invention relates to the field of window display technologies, and in particular, to a window shadow display method and apparatus.
  • the window is the most important part of the user interface. It is a rectangular area on the screen that corresponds to an application, including the framework and client area, which is the visual interface between the user and the application that generated the window.
  • the display effect of the window affects the user's operating experience.
  • the window of the application has a shadow display effect at the border, specifically by rendering the edge area of the window semi-transparent.
  • the traditional method is to set the window as a Layered Window through the application programming interface, and make the edge area of the window translucent to achieve the shadow effect.
  • this method of marking a window as a layered window to achieve window shadow display has certain drawbacks: the layered window consumes a large amount of memory, and the memory footprint increases as the window area increases; the layered window The rendering performance is poor, and the animation effect implemented in the layered window is more difficult to achieve the desired frame rate than in the non-layered window under the same conditions.
  • a window shadow display method includes the following steps:
  • the main window is a non-layered window
  • the dependent window is a layered window
  • the slave window includes a border for stitching at the border of the main window a slave window and a vertex slave window for stitching at the vertex of the main window;
  • the border dependent window is spliced and displayed at a border of the main window; according to the size of the vertex dependent window The information, the location information, and the transparency of each pixel in the vertex dependent window are displayed in the vertices of the main window.
  • a window shade display device comprising:
  • a size location information determining module configured to acquire size information and location information of the main window, and determine size information and location information of the slave window according to the size information and the location information of the main window;
  • the main window is a non-layered window.
  • the slave window is a layered window, and the slave window includes a border slave window for stitching at the main window border and a vertex slave window for stitching at the vertex of the main window;
  • a transparency calculation module configured to calculate, according to a distance between each pixel point in the border slave window and a corresponding border on the main window, a transparency of each pixel point in the border slave window; according to each pixel point in the vertex slave window Calculating a transparency of each pixel point in the vertex dependent window with a distance from a corresponding vertex on the main window;
  • a splicing display module according to the size information of the border Dependent window, the position information, and the transparency of each pixel point in the border Dependent window, the border Dependent window is spliced and displayed at the border of the main window; according to the vertice The size information of the slave window, the position information, and the transparency of each pixel in the vertex dependent window are displayed in the vertices of the main window.
  • the window shadow display method and device simulates the display effect of the window shadow by separately displaying the slave window at each frame and each vertex of the main window.
  • the main window for displaying the application display interface normally is a non-hierarchical window, which occupies low system memory, does not increase in proportion with the window area, and has higher rendering performance, while the subordinate window is hierarchical. Window but due to The area of the slave window is often small relative to the area of the main window, so the memory usage of the slave window is limited. Compared with the conventional method, the solution in the embodiment of the invention still reduces the memory footprint of the system as a whole.
  • a frame dependent window is spliced at a main window border, wherein a transparency of each pixel point corresponds to a distance from a pixel point to a corresponding frame, and a vertex slave window spliced at a vertex of the main window, wherein each pixel
  • the transparency of the point has a corresponding relationship with the distance from the pixel to the corresponding vertex. Therefore, after displaying the frame dependent window and the vertex dependent window by splicing, not only the effect of the window shadow display but also the shadow of the window can be displayed at the corner. Round transitions to avoid the formation of hard shadows for better display.
  • FIG. 1 is a schematic flow chart of a window shadow display method of the present invention in one embodiment
  • FIG. 2 is a schematic diagram of a main window and a subordinate window in one embodiment of the present invention
  • FIG. 3 is a schematic diagram of screen coordinates of a main window in one embodiment of the present invention.
  • FIG. 4 is a schematic diagram of calculating pixel transparency in one embodiment of the present invention.
  • FIG. 5 is a schematic flow chart of a window shadow display method of the present invention in another embodiment
  • Figure 6 is a block diagram showing the structure of a window shade display device of the present invention in one embodiment.
  • the window shadow display method in this embodiment includes the following steps:
  • Step S110 acquiring size information and location information of the main window, and determining size information and location information of the slave window according to the size information and the location information of the main window;
  • the main window is non-layered a window
  • the dependent window is a layered window
  • the dependent window includes a border dependent window for stitching at the main window border and a vertex dependent window for stitching at the vertex of the main window;
  • the main window is a window for normally presenting an application display interface in an operating system, and the main window is set as a non-layered window.
  • the slave window can be created through the Window API.
  • the slave window in this embodiment includes the frame slave windows M1, M2, M3, M4, and the vertex slave window N1.
  • N2, N3, N4 each subordinate window is a layered window
  • the layered window is a window implementation defined in the Windows system. Compared with the non-layered window, the layered window can exhibit a translucent effect.
  • the size information in this embodiment refers to information such as the length and width of the window, which can identify the size of the window, and the position information may be the screen coordinates of the window. Since the frame slave windows M1, M2, M3, and M4 in this embodiment are used for splicing at the corresponding border of the main window, and the vertex slave windows N1, N2, N3, and N4 are used for splicing at the corresponding vertices of the main window, The size information and the position information of each slave window may be determined according to the size information of the main window.
  • the length of each frame slave window may be equal to the length of the corresponding main window frame, and the width of each frame slave window may be preset.
  • the length of the main window is a
  • the width is b.
  • the length of the frame dependent window M1 is a
  • the width is the first setting value d1
  • the length of the frame dependent window M2 is b
  • the width is the second setting value.
  • D2; the frame slave window M3 has a length a and a width is a third set value d3;
  • the frame slave window M4 has a length b and a width is a fourth set value d4.
  • the size information should match the size information of the adjacent frame slave window.
  • the size information of the vertex slave window N1 should be the size information of the adjacent frame slave windows M1 and M4.
  • the matching that is, the length (or width) of the vertex dependent window N1 is d4, which is consistent with the width of the border dependent window M4, and the width (or length) of the vertex dependent window N1 is d1, which coincides with the width of the border dependent window M1.
  • the length (or width) of the vertex slave window N2 is d2, the width (or length) is d1; the length (or width) of the vertex slave window N3 is d2, the width (or length) is d3, and the vertex slave window N4
  • the length (or width) is d4 and the width (or length) is d3.
  • the location information of each dependent window is determined according to the location information of the main window.
  • the upper left corner of the display screen 900 is the coordinate origin O
  • the horizontal right direction is the horizontal axis positive direction
  • the horizontal axis vertical direction is the vertical axis positive direction.
  • the direction establishes the coordinate system.
  • the screen coordinates of the main window refer to the position of the top left corner of the main window in the coordinate system under construction.
  • the screen of the main window is marked as (window.left, window.top), according to the main window.
  • the screen coordinates and the size information of each slave window can calculate the screen coordinates of each slave window.
  • the screen coordinates of the frame slave window M1 can be known by calculation (ie, The coordinates of the top left corner of the vertex are (window.left, window.top-d1), and the screen coordinates of the vertex slave window N3 are (window.left+a, window.top+b), and the screen coordinates of other dependent windows are analogy.
  • Step S120 calculating, according to the distance between each pixel point in the border slave window and the corresponding border on the main window, the transparency of each pixel point in the border slave window; according to each pixel point in the vertex slave window and the Calculating the transparency of each pixel in the border slave window by the distance corresponding to the vertex on the main window;
  • the transparency of the pixel points in the frame slave window has a first correspondence relationship with the distance from the pixel point to the corresponding frame on the main window, so after determining the distance from each pixel point to the corresponding frame, the The first correspondence determines the transparency of the pixel.
  • the transparency of the pixel points in the vertex slave window has a second correspondence with the distance from the pixel point to the corresponding vertex on the main window. Therefore, after determining the distance from each pixel point to the corresponding vertex, the pixel point can also be determined according to the second correspondence relationship. Transparency.
  • the foregoing first correspondence relationship and the second correspondence relationship are the same.
  • the transparency of each pixel point in the border dependent window and the vertex dependent window may be calculated according to the following expression:
  • a i represents the transparency of the i-th pixel point in the frame dependent window
  • l i represents the distance between the i-th pixel point and the corresponding frame in the frame dependent window
  • b i represents the transparency of the i-th pixel point in the frame dependent window
  • s i represents the distance between the i-th pixel point and the corresponding vertex in the vertex slave window
  • f is an arbitrary function with monotonicity.
  • the pixel point P in the frame dependent window M4 is the left side frame in FIG. 4, and the distance from the P point to the left side frame is l P , and the transparency of the P point is f(l P ), the pixel point Q in the vertex slave window N2, the corresponding vertex on the main window is the upper right vertex in FIG. 4, the distance from the Q point to the upper right vertex is l Q , and the transparency of the Q point is f (l Q ).
  • the transparency of the pixels in each subordinate window is deduced by analogy.
  • the transparency is larger.
  • the transparency is larger for any pixel of the frame dependent window, if it is to the corresponding vertex The greater the distance, the greater the transparency, which makes the shadow of the main window appear a gradient.
  • the above-mentioned monotonic function f can be any one of a linear function (ie, a linear function), a quadratic function, and a cubic function, so that the shadow rendering effect of the main window is optimal.
  • the size of each vertex dependent window is also the same. According to the principle of symmetry, the calculation amount of the pixel dot transparency of the partial slave window can be reduced, thereby improving the processing speed of the window shadow display.
  • Step S130 according to the size information of the border dependent window, the position information, and the transparency of each pixel point in the border dependent window, the border dependent window is spliced and displayed at the border of the main window;
  • the size information of the window, the screen coordinates, and the transparency of each pixel in the vertex dependent window are displayed in the vertices of the main window.
  • the sub-window window can be displayed in the corresponding position of the main window to present the shadow effect of the main window.
  • any frame dependent window according to its size information, position information and transparency of the pixel, it is displayed in the corresponding frame of the main window, for any vertex dependent window, according to its ruler Inch information, position information and the transparency of the pixels are spliced and displayed at the corresponding vertices of the main window, so that the shadow effect of the window can be realized, and the shadow of the main window is displayed at a rounded transition at the corner to avoid forming a hard shadow.
  • the effect is preferably displayed.
  • the window shadow display method of the embodiment further includes:
  • Step S141 monitoring the size information of the main window and the change of the position information, and updating the size information and the position information of the slave window.
  • the Window API can be used to monitor the size information of the main window and the change of the location information. If the size information and the position information of the main window monitored by the Window API are changed, the size information and the position information of each subordinate window can be re-determined according to the size information and the position information of the changed main window, so as to ensure that each subordinate window can The correct stitching is displayed at the border and vertices of the changed main window to achieve a shadow display. Through step S141, the shadow display effect of the main window does not change with the scaling and movement of the main window, ensuring the stability of the window shadow display.
  • the length change amount is ⁇ (increase or decrease ⁇ )
  • the lengths of the frame dependent windows M1 and M3 also need to be increased or decreased accordingly.
  • Small ⁇ while the size information of other slave windows are not updated, and the vertex slave windows N2, N3, and the position information of the border slave window M2 need to be updated.
  • the width change amount is ⁇ (increase or decrease ⁇ )
  • the lengths of the frame slave windows M2 and M3 also need to be increased or decreased by ⁇ , while other subordinate windows
  • the size information is not updated, and the vertex slave windows N3, N4, and the position information of the border slave window M3 need to be updated.
  • the position information of each subordinate window can be updated according to the change of the main window position information. Specifically, when the user moves the main window on the display screen, the event that the screen coordinate of the main window changes is monitored, and then the screen coordinates of each dependent window are updated accordingly.
  • the upper left corner of the display screen 900 is the coordinate origin O
  • the horizontal right direction is the horizontal axis positive direction
  • the horizontal axis is perpendicular downward direction is the vertical axis positive direction establishing the coordinate system
  • the Window API monitors the main window.
  • the screen coordinates are from the original (window.left, Window.top) changes to (window.left+window.x, window.top+window.y).
  • the screen coordinates of each slave window also need to be updated.
  • the horizontal coordinate needs to increase window.x
  • the vertical coordinate needs to increase window.y, so as to ensure that the vertex dependent window can be stitched at the corresponding vertex on the main window, the border dependent window Can be spliced at the corresponding border on the main window. Therefore, the shadow display effect of the main window does not change with the position of the main window on the display screen, which ensures the stability of the window shadow display.
  • the window shadow display method of the embodiment further includes:
  • Step S142 if the window maximization event or the window minimization event occurs in the main window, the displayed border subordinate window and the vertex dependent window are hidden.
  • Style transformation events include window maximize events, window minimize events, and window restore events.
  • window maximization event occurs in the main window, at this time, since the main window is displayed full screen, the border of the main window coincides with the boundary of the display screen, and the shadow of the main window does not need to be displayed, so the hidden sub-windows are displayed. , stop rendering the slave window and release system memory resources.
  • window minimization event occurs in the main window, there is no need to display the shadow of the main window, so the hidden sub-windows are hidden, and the rendering of the subordinate window is stopped, thereby releasing the system memory resources. If a window restore event occurs in the main window that has been maximized or minimized, the subordinate windows are redisplayed to present a shadow effect.
  • the present invention further provides a window shade display device.
  • the window shade display device of the present invention will be described in detail below with reference to the accompanying drawings and preferred embodiments.
  • FIG. 6 is a schematic structural view of a window shade display device of the present invention in one embodiment.
  • the real window shadow display device includes:
  • the size position information determining module 10 is configured to acquire size information and position information of the main window, and determine size information and position information of the slave window according to the size information and the position information of the main window;
  • the main window is a non-layered window
  • the slave window is a layered window, and the slave window includes a border slave window for stitching at the main window border and a vertex slave window for stitching at the vertex of the main window;
  • the transparency calculation module 20 is configured to calculate, according to the distance between each pixel point in the border slave window and the corresponding border on the main window, the transparency of each pixel point in the border slave window; according to each pixel in the vertex slave window Calculating a transparency of each pixel point in the vertex slave window by a distance from a point corresponding to the corresponding vertex on the main window;
  • the splicing display module 30 according to the size information of the frame Dependent window, the position information, and the transparency of each pixel point in the frame Dependent window, the frame Dependent window is spliced and displayed at the frame of the main window; The size information of the vertex dependent window, the position information, and the transparency of each pixel point in the vertex dependent window are displayed in the vertices of the main window.
  • the main window is a window for normally presenting an application display interface in an operating system, and the main window is set as a non-layered window.
  • the slave window can be created through the Window API.
  • the slave window in this embodiment includes a border slave window and a vertex slave window, each of the slave windows is a layered window, and the layered window is a Windows system.
  • the size information in this embodiment refers to information such as the length and width of the window, which can identify the size of the window, and the position information may be the screen coordinates of the window. Since the frame slave window in the embodiment is used for stitching at the corresponding frame of the main window, and the vertex slave window is used for stitching at the corresponding vertex of the main window, the size information and the position information of each slave window may be according to the main window. The size information is determined.
  • the size position information determining module 10 can make the length of each frame dependent window equal to the length of the corresponding main window frame.
  • the width of each border slave window can be preset, and the size information of the vertex slave window should match the size information of the adjacent border slave window. In order to achieve a better display effect, the widths of the respective frame slave windows can be kept consistent, and the size of each vertex slave window is the same.
  • the size position information determining module 10 determines the position information of each dependent window according to the position information of the main window.
  • the upper left corner of the display screen is the coordinate origin, and the screen coordinate of the window refers to the position of the top left corner of the window in the coordinate system. Therefore, the size position information determining module 10 according to the screen coordinates of the main window and each subordinate window The size information can be used to calculate the screen coordinates of each slave window.
  • the transparency of the pixel points in the frame slave window has a first correspondence relationship with the distance from the pixel point to the corresponding frame on the main window, so after the transparency calculation module 20 determines the distance from each pixel point to the corresponding frame, The transparency of the pixel points can be determined based on this first correspondence.
  • the transparency of the pixel in the vertex slave window has a second correspondence with the distance from the pixel to the corresponding vertex on the main window. Therefore, after determining the distance from each pixel to the corresponding vertex, the transparency calculation module 20 can also follow the second correspondence. The relationship determines the transparency of the pixel.
  • the size information and the position information of each of the dependent windows determined by the module 10 are determined according to the size position information, and the transparency of the pixel points in the respective dependent windows calculated by the transparency calculation module 20, and the mosaic display module 30 can display the respective frame dependent windows in the mosaic.
  • the vertices of the main window are spliced and displayed at the corresponding vertices of the main window, so that the shadow of the window can be realized, and the shadow of the main window is displayed at a rounded corner to avoid a hard shadow.
  • the effect is preferably displayed.
  • the window shadow display device in this embodiment further includes an update module 40, which can monitor the size information of the main window and the change of the location information, thereby Update the size information and location information of each slave window.
  • the transparency calculation module 20 calculates the transparency of each pixel point in the border dependent window and the vertex dependent window according to the following expression:
  • a i represents the transparency of the i-th pixel point in the frame dependent window
  • l i represents the distance between the i-th pixel point and the corresponding frame in the frame dependent window
  • b i represents the transparency of the i-th pixel point in the frame dependent window
  • s i represents the distance between the i-th pixel point and the corresponding vertex in the vertex slave window
  • f is an arbitrary function with monotonicity.
  • f is any one of a linear function, a quadratic function, and a cubic function.
  • the window shadow display device in this embodiment further includes a hidden module 50, which can maximize the event or minimize the window when the main window is monitored. After the event, hide the displayed border dependent window and vertex dependent window.
  • the above-mentioned window shading display device can perform the window shading display method provided by the embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
  • each functional module implements its function, refer to the description in the foregoing method embodiment. This will not be repeated here.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

一种窗口阴影显示方法及装置,该方法包括:获取主窗口的尺寸信息和位置信息,确定从属窗口的尺寸信息和位置信息;主窗口为非分层窗口,从属窗口为分层窗口,且从属窗口包括边框从属窗口以及顶点从属窗口;根据边框从属窗口中各像素点与所述主窗口上对应边框的距离,计算边框从属窗口中各像素点的透明度;根据顶点从属窗口中各像素点与主窗口上对应顶点的距离,计算顶点从属窗口中各像素点的透明度;将边框从属窗口拼接显示在主窗口的边框处,将顶点从属窗口拼接显示在主窗口的顶点处。所述方法及装置可以在窗口阴影显示时降低系统内存占用,且可以实现窗口的阴影显示在拐角处圆润过渡,避免形成硬阴影,达到较佳的显示效果。

Description

窗口阴影显示方法及装置 技术领域
本发明涉及窗口显示技术领域,特别是涉及一种窗口阴影显示方法及装置。
背景技术
窗口是用户界面中最重要的部分,它是在屏幕上呈现的与一个应用程序相对应的矩形区域,包括框架和客户区,是用户与产生该窗口的应用程序之间的可视界面。
窗口的显示效果影响了用户的操作体验,目前在操作系统中,应用程序的窗口在边框处具有阴影显示的效果,具体是通过使窗口的边缘区域呈现半透明的效果来实现。在Windows系统中,为了实现窗口的阴影显示效果,传统的方法是通过应用程序编程接口将窗口设置为分层窗口(Layered Window),并使窗口的边缘区域半透明化,从而实现阴影效果。但是,这种将窗口标记为分层窗口以实现窗口阴影显示的方法具有一定的弊端:分层窗口会占用大量的内存,并且内存占用量随窗口面积的增加而等比增加;分层窗口的渲染性能较差,在分层窗口中实现的动画效果,会比同等情况下非分层窗口中更难以达到理想的帧率。
发明内容
基于此,有必要针对传统技术中的问题,提供一种窗口阴影显示方法及装置。
本发明实施例采用以下技术方案:
一种窗口阴影显示方法,包括以下步骤:
获取主窗口的尺寸信息和位置信息,并根据所述主窗口的尺寸信息和位置信息确定从属窗口的尺寸信息和位置信息;所述主窗口为非分层窗口,所述从属窗口为分层窗口,且所述从属窗口包括用于拼接在所述主窗口边框处的边框 从属窗口以及用于拼接在所述主窗口顶点处的顶点从属窗口;
根据所述边框从属窗口中各像素点与所述主窗口上对应边框的距离,计算所述边框从属窗口中各像素点的透明度;根据所述顶点从属窗口中各像素点与所述主窗口上对应顶点的距离,计算所述顶点从属窗口中各像素点的透明度;
根据所述边框从属窗口的尺寸信息、位置信息以及所述边框从属窗口中各个像素点的透明度,将所述边框从属窗口拼接显示在所述主窗口的边框处;根据所述顶点从属窗口的尺寸信息、位置信息以及所述顶点从属窗口中各个像素点的透明度,将所述顶点从属窗口拼接显示在所述主窗口的顶点处。
一种窗口阴影显示装置,包括:
尺寸位置信息确定模块,用于获取主窗口的尺寸信息和位置信息,并根据所述主窗口的尺寸信息和位置信息确定从属窗口的尺寸信息和位置信息;所述主窗口为非分层窗口,所述从属窗口为分层窗口,且所述从属窗口包括用于拼接在所述主窗口边框处的边框从属窗口以及用于拼接在所述主窗口顶点处的顶点从属窗口;
透明度计算模块,用于根据所述边框从属窗口中各像素点与所述主窗口上对应边框的距离,计算所述边框从属窗口中各像素点的透明度;根据所述顶点从属窗口中各像素点与所述主窗口上对应顶点的距离,计算所述顶点从属窗口中各像素点的透明度;
拼接显示模块,根据所述边框从属窗口的尺寸信息、位置信息以及所述边框从属窗口中各个像素点的透明度,将所述边框从属窗口拼接显示在所述主窗口的边框处;根据所述顶点从属窗口的尺寸信息、位置信息以及所述顶点从属窗口中各个像素点的透明度,将所述顶点从属窗口拼接显示在所述主窗口的顶点处。
本发明实施例的窗口阴影显示方法及装置,通过分别在主窗口的各边框、各顶点处拼接显示从属窗口,模拟出窗口阴影的显示效果。其中,用于正常呈现应用程序显示界面的主窗口为非分层窗口,其占用系统内存低,不会随窗口面积增大而等比增加,且渲染性能较高,而从属窗口虽然是分层窗口,但由于 从属窗口的面积相对于主窗口面积往往较小,因此从属窗口的内存占用有限,相比于传统方法而言,本发明实施例中的方案仍在整体上减小了系统的内存占用。同时,本发明实施例在主窗口边框处拼接的边框从属窗口,其中各像素点的透明度与像素点至对应边框的距离存在对应关系,而在主窗口顶点处拼接的顶点从属窗口,其中各像素点的透明度与像素点至对应顶点的距离存在对应关系,因此,在通过拼接显示各边框从属窗口和顶点从属窗口后,不仅可以实现窗口阴影显示的效果,而且可以实现窗口的阴影显示在拐角处圆润过渡,避免形成硬阴影,从而达到较佳地显示效果。
附图说明
图1是本发明的窗口阴影显示方法在一个实施例中的流程示意图;
图2为本发明其中一个实施例中主窗口和从属窗口的示意图;
图3为本发明其中一个实施例中主窗口屏幕坐标的示意图;
图4为本发明其中一个实施例中计算像素点透明度的示意图;
图5是本发明的窗口阴影显示方法在另一个实施例中的流程示意图;
图6是本发明的窗口阴影显示装置在一个实施例中的结构示意图。
具体实施方式
下面将结合较佳实施例及附图对本发明的内容作进一步详细描述。显然,下文所描述的实施例仅用于解释本发明,而非对本发明的限定。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。应当说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部内容。
图1是本发明的窗口阴影显示方法在一个实施例中的流程示意图,如图1所示,本实施例中的窗口阴影显示方法包括以下步骤:
步骤S110,获取主窗口的尺寸信息和位置信息,并根据所述主窗口的尺寸信息和位置信息确定从属窗口的尺寸信息和位置信息;所述主窗口为非分层 窗口,所述从属窗口为分层窗口,且所述从属窗口包括用于拼接在所述主窗口边框处的边框从属窗口以及用于拼接在所述主窗口顶点处的顶点从属窗口;
在本实施例中,主窗口是用于在操作系统中正常呈现应用程序显示界面的窗口,该主窗口被设置为非分层窗口。参照图2所示,在主窗口已被创建的基础之上,可通过Window API创建从属窗口,本实施例中的从属窗口包括边框从属窗口M1、M2、M3、M4,以及顶点从属窗口N1、N2、N3、N4,各从属窗口均为分层窗口,分层窗口是Windows系统中定义的一种窗口实现方式,与非分层窗口相比,分层窗口可以呈现出半透明的效果。
本实施例中的尺寸信息是指窗口的长度、宽度等能够标识窗口大小的信息,位置信息可以是窗口的屏幕坐标。由于本实施例中的边框从属窗口M1、M2、M3、M4用于拼接在主窗口的对应边框处,而顶点从属窗口N1、N2、N3、N4用于拼接在主窗口的对应顶点处,因此,各从属窗口的尺寸信息及位置信息可以根据主窗口的尺寸信息来确定。
在一种可选的实施方式中,对于边框从属窗口的尺寸信息,可使各边框从属窗口的长度均与其对应的主窗口边框长度相等,而各边框从属窗口的宽度均可预先设置。例如图2所示,主窗口的长度为a,宽度为b,则边框从属窗口M1的长度为a,宽度为第一设置值d1;边框从属窗口M2的长度为b,宽度为第二设置值d2;边框从属窗口M3的长度为a,宽度为第三设置值d3;边框从属窗口M4的长度为b,宽度为第四设置值d4。而对于顶点从属窗口,其尺寸信息应与相邻的边框从属窗口的尺寸信息相匹配,参照图2所示,顶点从属窗口N1的尺寸信息应与相邻的边框从属窗口M1、M4的尺寸信息相匹配,即顶点从属窗口N1的长度(或宽度)为d4,与边框从属窗口M4的宽度一致,顶点从属窗口N1的宽度(或长度)为d1,与边框从属窗口M1的宽度一致。同理,顶点从属窗口N2的长度(或宽度)为d2,宽度(或长度)为d1;顶点从属窗口N3的长度(或宽度)为d2,宽度(或长度)为d3;顶点从属窗口N4的长度(或宽度)为d4,宽度(或长度)为d3。
为了达到较佳地显示效果,各个边框从属窗口的宽度可保持一致,即 d1=d2=d3=d4,此时各顶点从属窗口的尺寸相同。
在一种可选的实施方式中,根据主窗口的位置信息确定各从属窗口的位置信息。具体地,在显示技术领域,参照图3所示,一般以显示屏900左上角为坐标原点O,以水平向右的方向为横轴正方向,与横轴垂直向下的方向为纵轴正方向建立坐标系,主窗口的屏幕坐标指的是主窗口左上角顶点在所建坐标系下的位置,例如,将主窗口的屏幕坐标记为(window.left,window.top),根据主窗口的屏幕坐标及各从属窗口的尺寸信息可以计算出各从属窗口的屏幕坐标,以图3所示的边框从属窗口M1、顶点从属窗口N3为例,通过计算可知边框从属窗口M1的屏幕坐标(即其左上角顶点的坐标)为(window.left,window.top-d1),顶点从属窗口N3的屏幕坐标为(window.left+a,window.top+b),其他从属窗口的屏幕坐标以此类推。
步骤S120,根据所述边框从属窗口中各像素点与所述主窗口上对应边框的距离,计算所述边框从属窗口中各像素点的透明度;根据所述顶点从属窗口中各像素点与所述主窗口上对应顶点的距离,计算所述边框从属窗口中各像素点的透明度;
在本实施例中,边框从属窗口中像素点的透明度,与像素点至主窗口上对应边框的距离存在第一对应关系,故在确定各像素点至对应边框的距离后,就可以依据这种第一对应关系确定像素点的透明度。而顶点从属窗口中像素点的透明度,与像素点至主窗口上对应顶点的距离存在第二对应关系,因此在确定各像素点至对应顶点的距离后,同样可以依据第二对应关系确定像素点的透明度。
在一种可选的实施方式中,上述的第一对应关系和第二对应关系时相同的,具体而言,可按照以下表达式计算边框从属窗口、顶点从属窗口中各像素点的透明度:
ai=f(li)
bi=f(si)
其中,ai表示边框从属窗口中第i个像素点的透明度,li表示边框从属窗口中第i个像素点与对应边框的距离,bi表示边框从属窗口中第i个像素点的透明度,si表示顶点从属窗口中第i个像素点与对应顶点的距离,f为具有单调性的任意函数。
参照图4所示,边框从属窗口M4中的像素点P,其对应的主窗口上的边框为图4中左侧边框,P点至左侧边框的距离为lP,则P点的透明度为f(lP),顶点从属窗口N2中的像素点Q,其对应的主窗口上的顶点为图4中的右上顶点,Q点至右上顶点的距离为lQ,则Q点的透明度为f(lQ)。对于各从属窗口中像素点的透明度均以此类推。
较佳地,对于边框从属窗口的任意一个像素点,若其至对应边框的距离越大,则其透明度越大,同理,对于顶点从属窗口中的任意一个像素点,若其至对应顶点的距离越大,则其透明度越大,这样可以使得主窗口的阴影呈现渐变的效果。
较佳地,上述具有单调性的函数f可以是线性函数(即一次函数)、二次函数、三次函数中的任意一种,使得主窗口的阴影呈现效果达到最佳。
在计算从属窗口的像素点透明度时,当各个边框从属窗口的宽度均相同时,各个顶点从属窗口的尺寸也相同。根据对称原则,可减少部分从属窗口的像素点透明度的计算量,从而提高窗口阴影显示的处理速度。
步骤S130,根据所述边框从属窗口的尺寸信息、位置信息以及所述边框从属窗口中各个像素点的透明度,将所述边框从属窗口拼接显示在所述主窗口的边框处;根据所述顶点从属窗口的尺寸信息、屏幕坐标以及所述顶点从属窗口中各个像素点的透明度,将所述顶点从属窗口拼接显示在所述主窗口的顶点处。
在确定各个从属窗口的尺寸信息、位置信息及像素点的透明度后,就可以将从属窗口拼接显示在主窗口的相应位置,呈现出主窗口的阴影效果。具体的,对于任意一个边框从属窗口,依据其尺寸信息、位置信息及像素点的透明度,将其拼接显示在主窗口的相应边框处,对于任意一个顶点从属窗口,依据其尺 寸信息、位置信息及像素点的透明度,将其拼接显示在主窗口的相应顶点处,这样就可以实现窗口阴影的效果,而且主窗口的阴影显示在拐角处圆润过渡,避免形成硬阴影,达到较佳地显示效果。
在一种可选的实施方式中,参照图5所示,本实施例的窗口阴影显示方法,还包括:
步骤S141,监听主窗口的尺寸信息和位置信息的变化,更新从属窗口的尺寸信息和位置信息。
在本实施例中,可以利用Window API监听主窗口的尺寸信息和位置信息的变化情况。若Window API监听到主窗口的尺寸信息和位置信息均发生变化,则可以根据变化后的主窗口的尺寸信息和位置信息来重新确定各从属窗口的尺寸信息和位置信息,以保证各从属窗口能正确拼接显示在变化后的主窗口的边框和顶点处,达到阴影显示效果。通过步骤S141,主窗口的阴影显示效果不会随主窗口的缩放和移动而产生变化,保证了窗口阴影显示的稳定性
另外,参照图3所示,若监听到主窗口的位置信息未变化,而长度变化量为Δ(增大或减小Δ),则边框从属窗口M1、M3的长度也需相应地增加或减小Δ,而其他从属窗口的尺寸信息均不用更新,另外还需要更新顶点从属窗口N2、N3,以及边框从属窗口M2的位置信息。若监听到主窗口的位置信息未变化,而宽度变化量为Δ(增大或减小Δ),则边框从属窗口M2、M3的长度也需相应地增加或减小Δ,而其他从属窗口的尺寸信息均不用更新,另外还需要更新顶点从属窗口N3、N4,以及边框从属窗口M3的位置信息。
另外,若仅监听到主窗口的位置信息发生变化,而尺寸信息未发生变化,则可根据主窗口位置信息的变化来更新各个从属窗口的位置信息。具体的,当用户在显示屏幕上移动主窗口时,监听到主窗口屏幕坐标变化这一事件,然后可相应更新各从属窗口的屏幕坐标。以图3为例,显示屏900左上角为坐标原点O、水平向右的方向为横轴正方向、与横轴垂直向下的方向为纵轴正方向建立坐标系,Window API监听到主窗口的屏幕坐标由原来的(window.left, window.top)变化为(window.left+window.x,window.top+window.y),为了保证能够得到与主窗口正确拼接的从属窗口,各从属窗口的屏幕坐标也需要进行更新,此时对于边框从属窗口和顶点从属窗口的屏幕坐标,横坐标均需增加window.x,纵坐标均需增加window.y,以此保证顶点从属窗口能够拼接在主窗口上的对应顶点处,边框从属窗口能拼接在主窗口上对应的边框处。因此,主窗口的阴影显示效果不会随主窗口在显示屏幕上的位置变化而变化,保证了窗口阴影显示的稳定性。
在一种可选的实施方式中,仍参照图5所示,本实施例的窗口阴影显示方法,还包括:
步骤S142,若监听到主窗口发生窗口最大化事件或窗口最小化事件,则隐藏已显示的边框从属窗口和顶点从属窗口。
在本实施方式中,可实时监听主窗口是否发生样式变换事件。样式变换事件包括窗口最大化事件、窗口最小化事件以及窗口还原事件。当监听到主窗口发生窗口最大化事件时,此时由于主窗口已全屏显示,主窗口的边框与显示屏幕的边界重合,不需要对主窗口的阴影进行显示,因此隐藏已显示的各个从属窗口,停止对从属窗口的渲染,释放系统内存资源。当监听到主窗口发生窗口最小化事件时,也不需要对主窗口的阴影进行显示,故隐藏已显示的各个从属窗口,停止对从属窗口的渲染,从而释放系统内存资源。若监听到已最大化或最小化的主窗口发生窗口还原事件,则重新显示出各个从属窗口,呈现出阴影效果。
需要说明的是,对于前述的各方法实施例,为了简便描述,将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其它顺序或者同时进行。
根据上述本发明的窗口阴影显示方法,本发明还提供一种窗口阴影显示装置,下面结合附图及较佳实施例对本发明的窗口阴影显示装置进行详细说明。
图6为本发明的窗口阴影显示装置在一个实施例中的结构示意图。如图6所示,该实窗口阴影显示装置,包括:
尺寸位置信息确定模块10,用于获取主窗口的尺寸信息和位置信息,并根据所述主窗口的尺寸信息和位置信息确定从属窗口的尺寸信息和位置信息;所述主窗口为非分层窗口,所述从属窗口为分层窗口,且所述从属窗口包括用于拼接在所述主窗口边框处的边框从属窗口以及用于拼接在所述主窗口顶点处的顶点从属窗口;
透明度计算模块20,用于根据所述边框从属窗口中各像素点与所述主窗口上对应边框的距离,计算所述边框从属窗口中各像素点的透明度;根据所述顶点从属窗口中各像素点与所述主窗口上对应顶点的距离,计算所述顶点从属窗口中各像素点的透明度;
拼接显示模块30,根据所述边框从属窗口的尺寸信息、位置信息以及所述边框从属窗口中各个像素点的透明度,将所述边框从属窗口拼接显示在所述主窗口的边框处;根据所述顶点从属窗口的尺寸信息、位置信息以及所述顶点从属窗口中各个像素点的透明度,将所述顶点从属窗口拼接显示在所述主窗口的顶点处。
在本实施例中,主窗口是用于在操作系统中正常呈现应用程序显示界面的窗口,该主窗口被设置为非分层窗口。在主窗口已被创建的基础之上,可通过Window API创建从属窗口,本实施例中的从属窗口包括边框从属窗口和顶点从属窗口,各从属窗口均为分层窗口,分层窗口是Windows系统中定义的一种窗口实现方式,与非分层窗口相比,分层窗口可以呈现出半透明的效果。
本实施例中的尺寸信息是指窗口的长度、宽度等能够标识窗口大小的信息,位置信息可以是窗口的屏幕坐标。由于本实施例中的边框从属窗口用于拼接在主窗口的对应边框处,而顶点从属窗口用于拼接在主窗口的对应顶点处,因此,各从属窗口的尺寸信息及位置信息可以根据主窗口的尺寸信息来确定。
在一种可选的实施方式中,对于边框从属窗口的尺寸信息,尺寸位置信息确定模块10可使各边框从属窗口的长度均与其对应的主窗口边框长度相等, 各边框从属窗口的宽度均可预先设置,而顶点从属窗口的尺寸信息应与相邻的边框从属窗口的尺寸信息相匹配。为了达到较佳地显示效果,各个边框从属窗口的宽度可保持一致,此时各顶点从属窗口的尺寸相同。
在一种可选的实施方式中,尺寸位置信息确定模块10根据主窗口的位置信息确定各从属窗口的位置信息。在显示技术领域,一般以显示屏左上角为坐标原点,窗口的屏幕坐标指的是窗口左上角顶点在坐标系下的位置,因此尺寸位置信息确定模块10根据主窗口的屏幕坐标及各从属窗口的尺寸信息可以计算出各从属窗口的屏幕坐标。
在本实施例中,边框从属窗口中像素点的透明度,与像素点至主窗口上对应边框的距离存在第一对应关系,故透明度计算模块20在确定各像素点至对应边框的距离后,就可以依据这种第一对应关系确定像素点的透明度。而顶点从属窗口中像素点的透明度,与像素点至主窗口上对应顶点的距离存在第二对应关系,因此透明度计算模块20在确定各像素点至对应顶点的距离后,同样可以依据第二对应关系确定像素点的透明度。
根据尺寸位置信息确定模块10确定的各个从属窗口的尺寸信息和位置信息,以及透明度计算模块20计算出的各个从属窗口中像素点的透明度,拼接显示模块30就可以将各个边框从属窗口拼接显示在主窗口的相应边框处,同时将各个顶点从属窗口拼接显示在主窗口的相应顶点处,这样就可以实现窗口阴影的效果,而且主窗口的阴影显示在拐角处圆润过渡,避免形成硬阴影,达到较佳地显示效果。
在一种可选的实施方式中,仍参照图6所示,本实施例中的窗口阴影显示装置还包括更新模块40,该更新模块40可以监听主窗口的尺寸信息和位置信息的变化,从而更新各个从属窗口的尺寸信息和位置信息。
在一种可选的实施方式中,透明度计算模块20按照以下表达式计算边框从属窗口、顶点从属窗口中各像素点的透明度:
ai=f(li)
bi=f(si)
其中,ai表示边框从属窗口中第i个像素点的透明度,li表示边框从属窗口中第i个像素点与对应边框的距离,bi表示边框从属窗口中第i个像素点的透明度,si表示顶点从属窗口中第i个像素点与对应顶点的距离,f为具有单调性的任意函数。
较佳的,f为线性函数、二次函数、三次函数中的任意一种。
在一种可选的实施方式中,仍参照图6所示,本实施例中的窗口阴影显示装置还包括隐藏模块50,该隐藏模块50可以在监听到主窗口发生窗口最大化事件或者窗口最小化事件后,隐藏已显示的边框从属窗口和顶点从属窗口。
上述窗口阴影显示装置可执行本发明实施例所提供的窗口阴影显示方法,具备执行方法相应的功能模块和有益效果,至于其中各个功能模块实现其功能的具体方法可参照上述方法实施例中的描述,此处不再予以赘述。
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。
以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。

Claims (10)

  1. 一种窗口阴影显示方法,其特征在于,包括以下步骤:
    获取主窗口的尺寸信息和位置信息,并根据所述主窗口的尺寸信息和位置信息确定从属窗口的尺寸信息和位置信息;所述主窗口为非分层窗口,所述从属窗口为分层窗口,且所述从属窗口包括用于拼接在所述主窗口边框处的边框从属窗口以及用于拼接在所述主窗口顶点处的顶点从属窗口;
    根据所述边框从属窗口中各像素点与所述主窗口上对应边框的距离,计算所述边框从属窗口中各像素点的透明度;根据所述顶点从属窗口中各像素点与所述主窗口上对应顶点的距离,计算所述顶点从属窗口中各像素点的透明度;
    根据所述边框从属窗口的尺寸信息、位置信息以及所述边框从属窗口中各个像素点的透明度,将所述边框从属窗口拼接显示在所述主窗口的边框处;根据所述顶点从属窗口的尺寸信息、位置信息以及所述顶点从属窗口中各个像素点的透明度,将所述顶点从属窗口拼接显示在所述主窗口的顶点处。
  2. 根据权利要求1所述的窗口阴影显示方法,其特征在于,还包括以下步骤:
    监听所述主窗口的尺寸信息和位置信息的变化,更新所述从属窗口的尺寸信息和位置信息。
  3. 根据权利要求1或2所述的窗口阴影显示方法,其特征在于,按照以下表达式计算边框从属窗口、顶点从属窗口中各像素点的透明度:
    ai=f(li)
    bi=f(si)
    其中,ai表示边框从属窗口中第i个像素点的透明度,li表示边框从属窗口中第i个像素点与对应边框的距离,bi表示边框从属窗口中第i个像素点的透明度,si表示顶点从属窗口中第i个像素点与对应顶点的距离,f为具有单调性的任意函数。
  4. 根据权利要求3所述的窗口阴影显示方法,其特征在于,f为线性函数、二次函数、三次函数中的任意一种。
  5. 根据权利要求1所述的窗口阴影显示方法,其特征在于,还包括:
    若监听到所述主窗口发生窗口最大化事件或窗口最小化事件,则隐藏已显示的所述边框从属窗口和所述顶点从属窗口。
  6. 一种窗口阴影显示装置,其特征在于,包括:
    尺寸位置信息确定模块,用于获取主窗口的尺寸信息和位置信息,并根据所述主窗口的尺寸信息和位置信息确定从属窗口的尺寸信息和位置信息;所述主窗口为非分层窗口,所述从属窗口为分层窗口,且所述从属窗口包括用于拼接在所述主窗口边框处的边框从属窗口以及用于拼接在所述主窗口顶点处的顶点从属窗口;
    透明度计算模块,用于根据所述边框从属窗口中各像素点与所述主窗口上对应边框的距离,计算所述边框从属窗口中各像素点的透明度;根据所述顶点从属窗口中各像素点与所述主窗口上对应顶点的距离,计算所述顶点从属窗口中各像素点的透明度;
    拼接显示模块,根据所述边框从属窗口的尺寸信息、位置信息以及所述边框从属窗口中各个像素点的透明度,将所述边框从属窗口拼接显示在所述主窗口的边框处;根据所述顶点从属窗口的尺寸信息、位置信息以及所述顶点从属窗口中各个像素点的透明度,将所述顶点从属窗口拼接显示在所述主窗口的顶点处。
  7. 根据权利要求6所述的窗口阴影显示装置,其特征在于,还包括:
    更新模块,用于监听所述主窗口的尺寸信息和位置信息的变化,更新所述从属窗口的尺寸信息和位置信息。
  8. 根据权利要求6或7所述的窗口阴影显示装置,其特征在于,所述透明度计算模块按照以下表达式计算边框从属窗口、顶点从属窗口中各像素点的透明度:
    ai=f(li)
    bi=f(si)
    其中,ai表示边框从属窗口中第i个像素点的透明度,li表示边框从属窗 口中第i个像素点与对应边框的距离,bi表示边框从属窗口中第i个像素点的透明度,si表示顶点从属窗口中第i个像素点与对应顶点的距离,f为具有单调性的任意函数。
  9. 根据权利要求8所述的窗口阴影显示装置,其特征在于,f为线性函数、二次函数、三次函数中的任意一种。
  10. 根据权利要求1所述的窗口阴影显示方法,其特征在于,还包括:
    隐藏模块,用于在监听到所述主窗口发生窗口最大化事件或窗口最小化事件时,隐藏已显示的所述边框从属窗口和所述顶点从属窗口。
PCT/CN2017/103446 2016-12-15 2017-09-26 窗口阴影显示方法及装置 WO2018107854A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201611161456.1A CN106814933B (zh) 2016-12-15 2016-12-15 窗口阴影显示方法及装置
CN201611161456.1 2016-12-15

Publications (1)

Publication Number Publication Date
WO2018107854A1 true WO2018107854A1 (zh) 2018-06-21

Family

ID=59108997

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/103446 WO2018107854A1 (zh) 2016-12-15 2017-09-26 窗口阴影显示方法及装置

Country Status (2)

Country Link
CN (1) CN106814933B (zh)
WO (1) WO2018107854A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111695540A (zh) * 2020-06-17 2020-09-22 北京字节跳动网络技术有限公司 视频边框识别方法及裁剪方法、装置、电子设备及介质

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106814933B (zh) * 2016-12-15 2019-08-13 广州视源电子科技股份有限公司 窗口阴影显示方法及装置
CN108881743B (zh) * 2018-07-19 2020-10-09 威创集团股份有限公司 一种基于拼接墙的视频图像处理方法、装置及系统
CN111930291A (zh) * 2020-10-09 2020-11-13 广州宸祺出行科技有限公司 一种在Android平台实现个性化阴影的方法及系统

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1042431A (zh) * 1988-07-29 1990-05-23 惠普公司 三维图形接口
US8379058B2 (en) * 2008-06-06 2013-02-19 Apple Inc. Methods and apparatuses to arbitrarily transform windows
US9324183B2 (en) * 2011-11-29 2016-04-26 Apple Inc. Dynamic graphical interface shadows
CN105930037A (zh) * 2016-06-12 2016-09-07 广州视睿电子科技有限公司 窗口边框阴影显示方法及装置
CN106814933A (zh) * 2016-12-15 2017-06-09 广州视源电子科技股份有限公司 窗口阴影显示方法及装置

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103473077A (zh) * 2013-09-27 2013-12-25 珠海市君天电子科技有限公司 丰富应用程序主窗口显示界面的方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1042431A (zh) * 1988-07-29 1990-05-23 惠普公司 三维图形接口
US8379058B2 (en) * 2008-06-06 2013-02-19 Apple Inc. Methods and apparatuses to arbitrarily transform windows
US9324183B2 (en) * 2011-11-29 2016-04-26 Apple Inc. Dynamic graphical interface shadows
CN105930037A (zh) * 2016-06-12 2016-09-07 广州视睿电子科技有限公司 窗口边框阴影显示方法及装置
CN106814933A (zh) * 2016-12-15 2017-06-09 广州视源电子科技股份有限公司 窗口阴影显示方法及装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111695540A (zh) * 2020-06-17 2020-09-22 北京字节跳动网络技术有限公司 视频边框识别方法及裁剪方法、装置、电子设备及介质
CN111695540B (zh) * 2020-06-17 2023-05-30 北京字节跳动网络技术有限公司 视频边框识别方法及裁剪方法、装置、电子设备及介质

Also Published As

Publication number Publication date
CN106814933A (zh) 2017-06-09
CN106814933B (zh) 2019-08-13

Similar Documents

Publication Publication Date Title
WO2018107854A1 (zh) 窗口阴影显示方法及装置
WO2018099125A1 (zh) 重叠窗口中显示内容的处理方法和系统
US8248428B2 (en) Parallel computation of computationally expensive parameter changes
CN102663766B (zh) 一种基于非真实感的艺术插画效果绘制方法
WO2017063324A1 (zh) 一种窗口显示方法及移动终端
CN104183016B (zh) 一种快速的2.5维建筑物模型的构建方法
CN104156480B (zh) 一种基于wpf和gdi+分层绘制地图的方法
US20190056854A1 (en) Developing a non-rectangular user interface
CN106062705A (zh) 跨平台渲染引擎
US20140225894A1 (en) 3d-rendering method and device for logical window
US8144166B2 (en) Dynamic pixel snapping
US9898837B2 (en) Image processing system
US20150365299A1 (en) Lucidity in network mapping with many connections
WO2015131575A1 (zh) 一种基于图层的处理方法及装置、计算机存储介质
WO2013185516A1 (zh) 一种三维曲线的动画展示方法和装置
CN104281426A (zh) 一种图像显示方法及装置
CN104766274A (zh) 一种3d能耗展示模型的旋转方法及装置
WO2023005540A1 (zh) 一种基于android白板防闪烁的方法及其装置
WO2023159595A1 (zh) 构建和配置三维空间场景的模型的方法、装置及计算机程序产品
CN104142807A (zh) 基于安卓控件利用OpenGL绘制图像的方法和系统
CN108830794B (zh) 高斯投影的pdf地图跨图幅无缝拼接显示方法
WO2017215247A1 (zh) 窗口边框阴影显示方法及装置
CN109598672B (zh) 一种地图道路渲染方法及装置
US11423193B1 (en) Perspective piping for a human machine interface
US11887255B2 (en) Method and system for rendering boundary of map area within game map, and computer-readable 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: 17880269

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: 17880269

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 25/10/2020)