Aperture effect realization method and device

The invention discloses an aperture effect realization method and device, and the method comprises the steps: firstly, obtaining the size of a UI assembly, determining whether the UI assembly needs tobe adaptive or not, and obtaining a point set of boundary points according to the size of the UI ass...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: HE JINPING, CHEN QINGSONG, MAO WEICHENG
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention discloses an aperture effect realization method and device, and the method comprises the steps: firstly, obtaining the size of a UI assembly, determining whether the UI assembly needs tobe adaptive or not, and obtaining a point set of boundary points according to the size of the UI assembly; then, after the size of the assembly is obtained, the parameters of the aperture effect canbe set. The color effect is achieved by setting the transparency, and the color gradient effect is achieved by introducing multiple colors; and finally, according to the set effect, drawing a wireframe by the points, and realizing the aperture effect by the wireframe through the set parameters. The problem that in an existing scheme, when the aperture effect is added to the UI assembly, a script file needs to be specially developed or a background picture needs to be used, and consequently system resource waste is serious is solved. 本发明公开了一种光圈效果实现方法及装置,本方案的实现光圈效果的方法为首先,需要获取到该UI组件的大小,并确定是否是需要自适应,根据此来获取它的边界点的点集。然后,获取组件大小