WO2018170654A1 - 圆形自定义控件执行动画的方法及装置 - Google Patents

圆形自定义控件执行动画的方法及装置 Download PDF

Info

Publication number
WO2018170654A1
WO2018170654A1 PCT/CN2017/077216 CN2017077216W WO2018170654A1 WO 2018170654 A1 WO2018170654 A1 WO 2018170654A1 CN 2017077216 W CN2017077216 W CN 2017077216W WO 2018170654 A1 WO2018170654 A1 WO 2018170654A1
Authority
WO
WIPO (PCT)
Prior art keywords
pointer
custom control
axis coordinate
screen
center
Prior art date
Application number
PCT/CN2017/077216
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 深圳大趋智能科技有限公司
Priority to PCT/CN2017/077216 priority Critical patent/WO2018170654A1/zh
Priority to CN201780001536.7A priority patent/CN107980121A/zh
Publication of WO2018170654A1 publication Critical patent/WO2018170654A1/zh

Links

Definitions

  • the present invention relates to the field of applications, and in particular, to a method and apparatus for performing animation by a circular custom control.
  • the main object of the present invention is to provide a method and a device for performing animation of a circular custom control, so that the circular custom control can achieve a cool and beautiful animation effect.
  • the present invention provides a method for a circular custom control to perform animation, including the following steps:
  • the angle of the deflection is passed to the OnDmw function by a preset afferent function to perform a pointer rotation.
  • x is. Is the X-axis coordinate of the center, Y is the Y-axis coordinate of the center, and W is the screen width, H
  • R is the radius value of the circular custom control
  • W is the screen width, which is the distance from the circle to the ends of the screen according to the screen resolution of the mobile phone and the screen size.
  • x The X-axis coordinate of the center, y. It is the Y-axis coordinate of the center of the circle; ⁇ is the X-axis coordinate of the starting point of the pointer, y 1 is the axis coordinate of the starting point of the pointer; ⁇ 2 is the X-axis coordinate of the point where the pointer is to be stopped, and y 2 is the point of the pointer to be stopped.
  • the axis coordinate, ⁇ is the angle at which the pointer is deflected.
  • the step of calculating the radius value of the circular custom control according to the screen resolution of the mobile phone and the screen size comprises:
  • the present invention also provides a device for performing animation by a circular custom control, including:
  • an obtaining unit configured to obtain a screen width, and calculate an X-axis coordinate and a Y-axis coordinate of the center of the circle according to the screen width and the specified position of the circular custom control;
  • calculating a radius unit configured to calculate a radius value of the circular custom control according to the screen resolution of the mobile phone and the screen size
  • a drawing unit configured to draw a graphic by using a constructor according to the center coordinates and the radius value
  • an execution unit configured to pass the angle of the deflection to the OnDmw function by a preset afferent function to perform a pointer deflection animation.
  • the acquiring coordinate unit includes:
  • the calculating radius unit is used to:
  • R is the radius value of the circular custom control
  • W is the screen width, which is the distance from the circle to the ends of the screen according to the resolution of the screen of the mobile phone and the size of the screen.
  • the calculating angle unit is used to:
  • x The X-axis coordinate of the center, y. Is the center of the Y-axis coordinate; x is the X-axis coordinate of the starting point of the pointer, y is the Y-axis coordinate of the starting point of the pointer; ⁇ 2 is the X-axis coordinate of the point where the pointer is to be stopped, and y 2 is the point where the pointer is to be stopped.
  • the determining unit further includes:
  • [0038] configured to obtain a screen resolution of the mobile phone and a screen size, and determine whether the screen resolution unit and the screen size unit of the mobile phone are device independent pixel dip units; if the device is independent pixel dip unit, directly refer to, otherwise, convert to a device Independent pixel dip units are then referenced.
  • the beneficial effects of the present invention are: Initializing Actvity (interface), determining corresponding circular custom control in initializing Actvity (interface), drawing corresponding graphic; obtaining coordinate of starting point of pointer in circular custom control And the coordinates of the point to be stopped, according to the coordinates of the starting point of the obtaining pointer, the coordinates of the point to be stopped, and the above-mentioned center coordinates are calculated by the algorithm to obtain the angle ⁇ of the corresponding pointer deflection, and the preset afferent function is called, according to the above pre- The angle obtained by the incoming function is passed to the OnDmw function to perform a refresh control.
  • the OnDmw function deflects the pointer to the corresponding angle according to the angle at which the pointer is deflected, and realizes the animation effect of the pointer deflection, so that the circular custom control is obtained. Achieve cool animation effects and enhance the user experience.
  • FIG. 1 is a schematic diagram of steps of a method for performing animation by a circular custom control according to an embodiment of the invention
  • FIG. 2 is a schematic structural diagram of an apparatus for performing animation by a circular custom control according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of an apparatus for performing animation by a circular custom control according to another embodiment of the present invention.
  • FIG. 1 a schematic diagram of steps of a method for performing animation by a circular custom control according to an embodiment of the present invention is shown.
  • a method for performing animation on a circular custom control in this embodiment includes the following steps:
  • Step S1 obtaining a screen width, calculated according to the screen width and the specified position of the circular custom control The X-axis coordinate of the center of the circle and the Y-axis coordinate;
  • Step S2 calculating a radius value of the circular custom control according to the screen resolution of the mobile phone and the screen size.
  • Step S3 drawing a graphic by using a constructor according to the center coordinates and the radius value;
  • Step S4 calculating an angle of the pointer deflection according to the coordinates of the starting point of the pointer, the coordinates of the pointer to be stopped, and the coordinates of the center of the circle;
  • Step S5 the angle of the deflection is transmitted to the OnDmw function by a preset afferent function to perform a pointer deflection animation.
  • a circular custom control performing animation method in this embodiment implements a circular custom control to display some dynamic data changes, so that the display effect is very cool.
  • step S1 the mobile phone Actvity (interface) is initialized, in order to ensure that the circular custom control can be drawn, according to the width of the mobile phone, the width W of the mobile phone screen is obtained in Actvity (interface), and the upper left corner of the mobile phone is set to Origin Center (0,0), according to the obtained screen width W of the mobile phone, the X-axis coordinate of the center of the circular custom control is W/2; the above circular custom control includes a title bar, and the title bar is used for circular customization.
  • the name of the control according to the size of the title bar 11, and the width of the obtained mobile phone screen, the Y-axis coordinate of the center of the circle custom control is W/2+H!
  • step S3 the constructor is called, and the constructor obtains the circle coordinate parameter values W/2, ⁇ /2+1 ⁇ of the circular custom control and the parameter value R of the radius of the circular custom control,
  • the graphic is drawn according to the obtained center coordinate parameter values W/2, W/2+H, and the radius parameter value R.
  • the above graphic may be an arc or a circle according to the specific function of the circular custom control.
  • step S4 the upper left corner of the mobile phone is preset to be the origin center (0, 0), and the coordinates of the start point of the pointer in the circular custom control and the coordinates of the pointer to be stopped are acquired in the Actvity (interface). According to the coordinates of the starting point of the obtained pointer, the coordinates of the point to be stopped, and the above-mentioned center coordinates are calculated by an algorithm. To the angle 6 of the corresponding pointer deflection.
  • step S5 the preset afferent function and the 0 nDmw function are called in the circular custom control pointer deflection animation, and the preset afferent function obtains the pointer according to the angle ⁇ of the obtained pointer deflection.
  • the angle of deflection is transmitted to the OnDmw function to perform a refresh control.
  • the OnDmw function deflects the pointer by the corresponding angle ⁇ according to the angle at which the pointer is deflected, thereby realizing the animation effect of the pointer deflection.
  • the OnDmw function deflects the pointer to the corresponding angle ⁇ according to the angle at which the pointer is deflected, and realizes the animation effect of the pointer deflection, so that the circular custom control is realized. Cool animation effects to enhance the user experience.
  • x is. Is the X-axis coordinate of the center, y. Is the Y-axis coordinate of the center, W is the screen width, H
  • the specific length is W, set the top left corner of the phone screen as the origin center (0,0).
  • the circular custom control includes a title bar, the title bar is used for naming the circular custom control, and is set at the upper part of the above circular custom control,
  • the length of the circular custom control title bar is H 1 ; according to the calculation formula of the Y-axis coordinate of the above-mentioned center, the Y-axis coordinate of the center of the circle is W/2+H i, and the center coordinate of the circular custom control is obtained (W/2). , W/2+H t).
  • R is the radius value of the circular custom control
  • W is the screen width
  • the distance from the circle to the two ends of the screen is determined according to the screen resolution of the mobile phone and the screen size.
  • the center of the mobile phone is preset to the margin W 1 at both ends of the screen ; Defining the control changes in the phone model, the corresponding screen resolution of the phone and the different screen sizes will change, and will not affect the display effect of the circular custom controls.
  • W is the screen width
  • W is the calculation formula according to the screen resolution of the mobile phone and the screen size to determine the distance from the circle to the two ends of the screen according to the radius of the circular custom control
  • the radius value of the circular custom control is calculated by the formula.
  • x The X-axis coordinate of the center, y.
  • the axis coordinate, ⁇ is the angle at which the pointer is deflected.
  • the upper left corner of the preset mobile phone is the origin center (0, 0), and the X-axis coordinate X of the starting point of the circular custom control pointer is obtained at the Actvity (interface), and the Y-axis coordinate y,; the pointer is to be stopped.
  • the coordinate X-axis coordinate X 2 and the Y-axis coordinate y 2 are Formula for calculating the angle according to the deflection of the pointer
  • the step of calculating the radius value of the circular custom control according to the screen resolution of the mobile phone and the screen size comprises: [0074] obtaining a screen resolution of the mobile phone and a screen size, and determining whether the screen resolution unit and the screen size unit of the mobile phone are device independent pixel dip units; if the device is independent pixel dip unit, directly referencing, otherwise converting to device independent pixels The dip unit is used again.
  • the radius value of the circle is adjusted according to the screen resolution of the mobile phone and the screen size, after obtaining the screen resolution of the mobile phone and the screen size.
  • the unit resolution and screen size of the above mobile phone are generally in units of pixels ⁇ .
  • the pixel ⁇ unit needs to be converted into a device independent pixel dip unit.
  • the device independent pixel dip unit is the standard unit of the mobile phone manufacturer interface value.
  • FIG. 2 is a schematic structural diagram of an apparatus for performing animation by a circular custom control according to an embodiment of the invention.
  • the device for performing animation in a circular custom control in this embodiment includes:
  • the obtaining unit 10 is configured to obtain a screen width, and calculate an X-axis coordinate and a Y-axis coordinate of the center according to the screen width and the specified position of the circular custom control;
  • calculating a radius unit 20, configured to calculate a radius value of the circular custom control according to the screen resolution of the mobile phone and the screen size;
  • the drawing unit 30 is configured to draw a graphic by using a constructor according to the center coordinates and the radius value; [0082] calculating an angle unit 40, configured to coordinate according to a starting point of the pointer, a coordinate of the pointer to be stopped, and a center of the circle The coordinates calculate the angle at which the pointer is deflected;
  • the executing unit 50 is configured to perform the pointer deflection animation by passing the angle of the deflection to the OnDmw function through a preset afferent function.
  • a circular custom control in this embodiment performs an animation method to display some dynamic data changes through a circular custom control, so that the display effect is very cool.
  • the width of the obtained mobile phone screen is obtained by the circular custom control corresponding to the center of the circle coordinate W/2+H! , get the corresponding circular custom control's center coordinates as (W/2, W/2+H,).
  • the constructor obtains the center coordinate parameter values of the above circular custom control W/2, W/ 2+H!
  • the graphic is based on the specific function of the circular custom control.
  • the upper left corner of the mobile phone is preset as the origin center (0, 0), and the coordinates of the starting point of the pointer in the circular custom control and the coordinates of the pointer to be stopped are obtained in the Actvity (interface), according to the starting point of the acquiring pointer.
  • the coordinates, the coordinates of the point to be stopped, and the above-mentioned center coordinates are calculated by an algorithm to obtain an angle ⁇ corresponding to the deflection of the pointer.
  • the preset afferent function according to the angle ⁇ of the obtained pointer deflection
  • the incoming function will obtain the angle of the pointer deflection ⁇ incoming
  • the OnDmw function performs a refresh control
  • the OnDmw function deflects the pointer by the corresponding angle ⁇ according to the angle at which the pointer is deflected, thereby realizing the animation effect of the pointer deflection.
  • the OnDmw function deflects the pointer to the corresponding angle ⁇ according to the angle at which the pointer is deflected, and realizes the animation effect of the pointer deflection, so that the circular custom control is realized. Cool animation effects to enhance the user experience.
  • the acquiring unit 10 is used to: [0092]
  • the formula for calculating the Y-axis coordinate is: y.
  • Is the X-axis coordinate of the center
  • y For the Y-axis coordinate of the center, W is the screen width, and H is the preset distance of the circular custom control from the upper end of the screen.
  • the circular custom control includes a title bar, the title bar is used for naming the circular custom control, and is set at the upper part of the above circular custom control,
  • the length of the round custom control title bar is H 1 ; according to the calculation formula of the Y-axis coordinate of the above-mentioned center, the Y-axis coordinate of the center of the circle is W/2+H, and the center coordinate of the circular custom control is (W/2). , W/2+H.
  • the calculating radius unit 20 is used;
  • R is the radius value of the circular custom control
  • W is the screen width
  • the distance from the circle to the two ends of the screen is determined according to the screen resolution of the mobile phone and the screen size.
  • the center of the mobile phone is preset to the margin W 1 at both ends of the screen ; Defining the control changes in the phone model, the corresponding screen resolution of the phone and the different screen sizes will change, and will not affect the display effect of the circular custom controls.
  • W is the screen width
  • W is the distance from the circle to the end of the screen according to the screen resolution of the mobile phone and the screen size, according to the calculation formula of the radius of the circular custom control
  • the radius value of the circular custom control is calculated by the formula.
  • calculation angle unit 40 is configured to:
  • x The X-axis coordinate of the center, y. It is the Y-axis coordinate of the center of the circle; ⁇ is the X-axis coordinate of the starting point of the pointer, y 1 is the axis coordinate of the starting point of the pointer; ⁇ 2 is the X-axis coordinate of the point where the pointer is to be stopped, and y 2 is the point of the pointer to be stopped.
  • the axis coordinate, ⁇ is the angle at which the pointer is deflected.
  • the upper left corner of the preset mobile phone is the origin center (0, 0), and the X-axis coordinate X of the start point of the circular custom control pointer is acquired at Actvity (interface), and the Y-axis coordinate y; The coordinate X-axis coordinate X 2 and the Y-axis coordinate y 2 .
  • FIG. 3 is a schematic structural diagram of an apparatus for performing animation by a circular custom control according to another embodiment of the present invention.
  • the device for performing animation by the circular custom control further includes a determining unit 60;
  • the radius value of the circle is adjusted according to the screen resolution of the mobile phone and the screen size, after obtaining the resolution of the screen of the mobile phone and the screen size.
  • the unit resolution and screen size of the above mobile phone are generally in pixels px units.
  • the pixel px unit needs to be converted into a device independent pixel dip unit.
  • the device independent pixel dip unit is the standard unit of the mobile phone manufacturer interface value.
  • the method and device for the circular custom control in the embodiment of the present invention implements initializing Actvity (interface), and determining corresponding circular custom control in the initializing Actvity (interface) to draw corresponding The circle or arc graphic, by obtaining the coordinates of the starting point of the pointer in the circular custom control and the coordinates of the point where the pointer is to be stopped, according to the coordinates of the starting point of the pointer, the coordinates of the point to be stopped, and the center of the above
  • the coordinate is calculated by the algorithm to obtain the angle ⁇ of the corresponding pointer deflection, and the preset afferent function is called.
  • the angle obtained by the above-mentioned preset afferent function is transmitted to the OnDmw function to perform a refresh control, and the OnDmw function is based on the angle at which the pointer is deflected. ⁇ Deflect the pointer to the corresponding angle ⁇ to realize the animation effect of the pointer deflection, which realizes the cool animation effect through the circular custom control and improves the user experience.

Landscapes

  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

本发明提供了一种圆形自定义控件执行动画的方法及装置,包括获取屏幕宽度,根据屏幕宽度以及圆形自定义控件指定位置计算得到圆心的X轴坐标以及Y轴坐标;根据手机分辨率以及屏幕尺寸计算得到圆形自定义控件的半径值;根据所述圆心坐标以及半径值通过构造函数画出图形;根据指针起始点的坐标、指针待停下点的坐标以及圆心坐标计算出指针偏转的角度;通过预设的传入函数将所述偏转的角度,传入至OnDraw函数执行指针偏转动画。本发明提供的一种圆形自定义控件执行动画的方法及装置使得圆形自定义控件能实现酷炫好看的动画效果。

Description

圆形自定义控件执行动画的方法及装置
技术领域
[0001] 本发明涉及应用程序领域, 特别涉及一种圆形自定义控件执行动画的方法及装 置。
背景技术
[0002] 随着社会的发展, 手机已经成为日常生活中必不可少的工具, 现有的手机应用 程序会用到一些圆形自定义控件, 这些圆形自定义控件遇到酷炫好看的动画不 能实现, 只能简化动画的复杂程度, 难以达到预期酷炫好看的效果。
技术问题
[0003] 本发明的主要目的为提供一种圆形自定义控件执行动画的方法及装置, 使得圆 形自定义控件能实现酷炫好看的动画效果。
问题的解决方案
技术解决方案
[0004] 本发明提出一种圆形自定义控件执行动画的方法, 包括以下步骤:
[0005] 获取屏幕宽度, 根据屏幕宽度以及圆形自定义控件指定位置计算得到圆心的 X 轴坐标以及 Y轴坐标;
[0006] 根据手机屏幕分辨率以及屏幕尺寸计算得到圆形自定义控件的半径值;
[0007] 根据所述圆心坐标以及半径值通过构造函数画出图形;
[0008] 根据指针起始点的坐标、 指针待停下点的坐标以及圆心坐标计算出指针偏转的 角度;
[0009] 通过预设的传入函数将所述偏转的角度, 传入至 OnDmw函数执行指针偏转动 画。
[0010] 进一步地, 所述圆心的 X轴坐标的计算公式为: x。= W/2; 所述 Y轴坐标的计算 公式为: y。= W/2+H 1 ;
[0011] 其中, x。为所述圆心的 X轴坐标, Y为所述圆心的 Y轴坐标, W为屏幕宽度, H
,为圆形自定义控件距离所述屏幕上端的预设距离。 [0012]
[0013] 进一步地, 所述圆形自定义控件的半径的计算公式为:
Figure imgf000004_0001
[0015] R为圆形自定义控件的半径值, W为屏幕宽度, 为根据手机屏幕分辨率以及 屏幕尺寸确定圆到屏幕两端的距离。
[0016] 进一步地, 所述指针偏转的角度的计算公式为:
Figure imgf000004_0002
[0018] x。为圆心的 X轴坐标, y。为圆心 Y轴坐标; ^为指针起始点的 X轴坐标, y 1为 指针起始点的 Υ轴坐标; χ 2为指针待停下点的 X轴坐标, y 2为指针待停下点的 Υ 轴坐标, Θ为指针偏转的角度。
[0019] 进一步地, 所述根据手机屏幕分辨率以及屏幕尺寸计算得到圆形自定义控件的 半径值步骤之前包括:
[0020] 获取手机屏幕分辨率以及屏幕尺寸, 并判断所述手机屏幕分辨率单位以及屏幕 尺寸单位是否为设备独立像素 dip单位; 若为设备独立像素 dip单位则直接引用, 否则转换为设备独立像素 dip单位再弓 I用。
[0021]
[0022] 本发明还提供了一种圆形自定义控件执行动画的装置, 包括:
[0023] 获取单元, 用于获取屏幕宽度, 根据屏幕宽度以及圆形自定义控件指定位置计 算得到圆心的 X轴坐标以及 Y轴坐标;
[0024] 计算半径单元, 用于根据手机屏幕分辨率以及屏幕尺寸计算得到圆形自定义控 件的半径值;
[0025] 画图单元, 用于根据所述圆心坐标以及半径值通过构造函数画出图形;
[0026] 计算角度单元, 用于根据指针起始点的坐标、 指针待停下点的坐标以及圆心坐 标计算出指针偏转的角度;
[0027] 执行单元, 用于通过预设的传入函数将所述偏转的角度, 传入至 OnDmw函数 执行指针偏转动画。
[0028] 进一步地, 所述获取坐标单元包括:
[0029] 所述圆心的 X轴坐标的计算公式为: x。= W/2; 所述 Y轴坐标的计算公式为: y c = W/2+H!;
[0030] 其中, x。为所述圆心的 X轴坐标, Y为所述圆心的 Y轴坐标, W为屏幕宽度, H
,为圆形自定义控件距离所述屏幕上端的预设距离。
[0031] 进一步地, 所述计算半径单元用于:
[0032] |
[0033] R为圆形自定义控件的半径值, W为屏幕宽度, 为根据手机屏幕分辨率以及 屏幕尺寸确定圆到屏幕两端的距离。
[0034] 进一步地, 所述计算角度单元用于:
Figure imgf000005_0001
[0036] x。为圆心的 X轴坐标, y。为圆心 Y轴坐标; x ,为指针起始点的 X轴坐标, y ,为 指针起始点的 Y轴坐标; χ 2为指针待停下点的 X轴坐标, y 2为指针待停下点的 Υ 轴坐标, Θ为指针偏转的角度。
[0037] 进一步地, 还包括判断单元:
[0038] 用于获取手机屏幕分辨率以及屏幕尺寸, 并判断所述手机屏幕分辨率单位以及 屏幕尺寸单位是否为设备独立像素 dip单位; 若为设备独立像素 dip单位则直接引 用, 否则转换为设备独立像素 dip单位再引用。
发明的有益效果
有益效果 [0039] 本发明的有益效果为: 初始化 Actvity (界面) , 在初始化 Actvity (界面) 中确 定对应的圆形自定义控件, 画出对应图形; 通过获取圆形自定义控件中指针起 始点的坐标以及指针待停下点的坐标, 根据获取指针起始点的坐标、 指针待停 下点的坐标以及上述圆心坐标利用算法计算得到对应指针偏转的角度 θ, 调用预 设的传入函数, 根据上述预设的传入函数获取的角度 Θ传入至 OnDmw函数执行 一次刷新控件, OnDmw函数根据获取指针偏转的角度 Θ将指针偏转对应的角度 Θ , 实现指针偏转的动画效果, 使得通过圆形自定义控件实现了酷炫的动画效果 , 提高用户的体验。
对附图的简要说明
附图说明
[0040] 图 1为本发明一实施例中的一种圆形自定义控件执行动画的方法的步骤示意图
[0041] 图 2, 为本发明一实施例中的一种圆形自定义控件执行动画的装置的结构示意 图;
[0042] 图 3, 为本发明另一实施例中的一种圆形自定义控件执行动画的装置的结构示 意图。
[0043] 本发明目的的实现、 功能特点及优点将结合实施例, 参照附图做进一步说明。
实施该发明的最佳实施例
本发明的最佳实施方式
[0044] 应当理解, 此处所描述的具体实施例仅仅用以解释本发明, 并不用于限定本发 明。
[0045] 在 android很多应用中需要自定义控件, 现有的圆形自定义控件在实现动画吋由 于考虑幵发周期长以及成本的问题通常会简化动画效果, 使得难以达到预期的 动画效果。
[0046] 参照图 1, 为本发明一实施例中的一种圆形自定义控件执行动画的方法的步骤 示意图。
[0047] 本实施例中的一种圆形自定义控件执行动画的方法, 包括以下步骤:
[0048] 步骤 Sl, 获取屏幕宽度, 根据屏幕宽度以及圆形自定义控件指定位置计算得到 圆心的 X轴坐标以及 Y轴坐标;
[0049] 步骤 S2, 根据手机屏幕分辨率以及屏幕尺寸计算得到圆形自定义控件的半径值
[0050] 步骤 S3, 根据所述圆心坐标以及半径值通过构造函数画出图形;
[0051] 步骤 S4, 根据指针起始点的坐标、 指针待停下点的坐标以及圆心坐标计算出指 针偏转的角度;
[0052] 步骤 S5, 通过预设的传入函数将所述偏转的角度, 传入至 OnDmw函数执行指 针偏转动画。
[0053] 本实施例中的一种圆形自定义控件执行动画的方法实现用圆形自定义控件来显 示一些动态数据的变化, 使得显示效果非常酷炫。
[0054] 在步骤 Sl, 初始化手机 Actvity (界面) , 为确保能画出圆形自定义控件, 根据 手机宽度比高度小在 Actvity (界面) 中获取手机屏幕的宽度 W, 设置手机的左上 角为原点中心 (0,0) , 根据获取的手机屏幕宽度 W得到圆形自定义控件的圆心 的 X轴坐标为 W/2; 上述圆形自定义控件包括标题栏, 标题栏用于圆形自定义控 件的命名, 根据标题栏大小11 ,以及获取的手机屏幕的宽度得到圆形自定义控件 对应的圆心的 Y轴坐标为 W/2+H!
, 得到对应的圆形自定义控件的圆心坐标为 (W/2, W/2+H ,) 。
[0055] 在步骤 S2中, 为了确保圆形自定义控件能在手机屏幕分辨率不同以及屏幕尺寸 不同的情况下都能顺利显示出来, 预留手机的圆心到屏幕左边或是屏幕右边一 定的边距 W ,, 获取的屏幕宽度 W减去预留的边距 W ,得到对应的圆形自定义控件 的半径为 R=W-W ,。
[0056] 在步骤 S3中, 调用构造函数, 构造函数获取上述圆形自定义控件的圆心坐标参 数值 W/2、 \¥/2+1^以及圆形自定义控件的半径的参数值 R, 根据获取的圆心坐标 参数值 W/2、 W/2+H ,以及半径的参数值 R画出图形, 上述图形根据圆形自定义控 件的具体作用, 可以为圆弧或圆。
[0057] 在步骤 S4中, 预设设置手机的左上角为原点中心 (0,0) , 在 Actvity (界面) 获取圆形自定义控件中的指针起始点的坐标以及指针待停下点的坐标, 根据获 取指针起始点的坐标、 指针待停下点的坐标以及上述圆心坐标利用算法计算得 到对应指针偏转的角度6。
[0058] 在步骤 S5中, 在实现圆形自定义控件指针偏转动画调用预设的传入函数以及 0 nDmw函数, 预设的传入函数根据获取指针偏转的角度 θ, 传入函数将获取指针 偏转的角度 Θ传入至 OnDmw函数执行一次刷新控件, OnDmw函数根据获取指针 偏转的角度 Θ将指针偏转对应的角度 θ, 实现指针偏转的动画效果。
[0059] 初始化 Actvity (界面) , 在初始化 Actvity (界面) 中确定对应的圆形自定义控 件画出对应的圆或圆弧的图形, 通过获取圆形自定义控件中指针起始点的坐标 以及指针待停下点的坐标, 根据获取指针起始点的坐标、 指针待停下点的坐标 以及上述圆心坐标利用算法计算得到对应指针偏转的角度 θ, 调用预设的传入函 数, 根据上述预设的传入函数获取的角度 Θ传入至 OnDmw函数执行一次刷新控 件, OnDmw函数根据获取指针偏转的角度 Θ将指针偏转对应的角度 θ, 实现指针 偏转的动画效果, 使得通过圆形自定义控件实现了酷炫的动画效果, 提高用户 的体验。
[0060] 进一步地, 所述圆心的 X轴坐标的计算公式为: x。= W/2; 所述 Y轴坐标的计算 公式为: y。= W/2+H 1 ;
[0061] 其中, x。为所述圆心的 X轴坐标, y。为所述圆心的 Y轴坐标, W为屏幕宽度, H
,为圆形自定义控件距离所述屏幕上端的预设距离。
[0062] 在 Actvity (界面) 获取得到屏幕宽度, 具体长度为 W, 设置手机屏幕左上角作 为原点中心 (0,0) 。
[0063] 根据获取的屏幕宽度 W得到对应的圆心的 X轴长度为 W/2, 根据上述圆心的 X轴 坐标的计算公式 x。= W/2, 得到圆心的 X轴坐标为 W/2; 圆形自定义控件包括标 题栏, 上述标题栏用于圆形自定义控件的命名, 设置于上述圆形自定义控件的 上部, 上述圆形自定义控件标题栏长度为 H 1 ; 根据上述圆心的 Y轴坐标的计算 公式 得到圆心的 Y轴坐标为 W/2+H i,得到圆形自定义控件的圆心 坐标为 (W/2, W/2+H t) 。
[0064] 进一步地, 所述圆形自定义控件的半径的计算公式为:
[0065]
Figure imgf000008_0001
[0066] R为圆形自定义控件的半径值, W为屏幕宽度, 为根据手机屏幕分辨率以及 屏幕尺寸确定圆到屏幕两端的距离。
[0067] 为了使得圆形自定义控件能在手机屏幕分辨率不同以及屏幕尺寸不同的情况下 都能显示出最佳效果, 预设手机的圆心到屏幕两端的边距 W 1 ; 使得圆形自定义 控件在手机型号产生变化吋, 对应手机屏幕分辨率不同以及屏幕尺寸不同相应 产生变化吋不会影响圆形自定义控件的显示效果。
[0068] W为屏幕宽度, W ,为根据手机屏幕分辨率以及屏幕尺寸确定圆到屏幕两端的 距离 根据圆形自定义控件的半径的计算公式
Figure imgf000009_0001
; 通过公式计算得到圆形自定义控件的半径值。
[0069] 进一步地, 所述指针偏转的角度的计算公式为:
Figure imgf000009_0002
[0071] x。为圆心的 X轴坐标, y。为圆心 Y轴坐标; ^为指针起始点的 X轴坐标, y 1为 指针起始点的 Y轴坐标; x 2为指针待停下点的 X轴坐标, y 2为指针待停下点的 Y 轴坐标, Θ为指针偏转的角度。
[0072] 预设手机的左上角为原点中心 (0,0) , 在 Actvity (界面) 获取圆形自定义控件 指针起始点的 X轴坐标 X ,以及 Y轴坐标 y ,; 指针待停下点的坐标 X轴坐标 X 2 以及 Y轴坐标 y 2。 根据指针偏转的角度的计算公式
Figure imgf000009_0003
; 计算得到指针应该偏转的角度6。
[0073] 进一步地, 所述根据手机屏幕分辨率以及屏幕尺寸计算得到圆形自定义控件的 半径值步骤之前包括: [0074] 获取手机屏幕分辨率以及屏幕尺寸, 并判断所述手机屏幕分辨率单位以及屏幕 尺寸单位是否为设备独立像素 dip单位; 若为设备独立像素 dip单位则直接引用, 否则转换为设备独立像素 dip单位再弓 I用。
[0075] 对于不同的手机, 为了保证圆形自定义控件能显示最好的效果, 会根据手机屏 幕分辨率以及屏幕尺寸的不同来调整圆的半径值, 在获取手机屏幕分辨率以及 屏幕尺寸之后, 上述手机屏幕分辨率以及屏幕尺寸的单位一般为像素 ρχ单位, 在需要根据手机屏幕分辨率以及屏幕尺寸来调整圆的半径值吋, 需要先将上述 像素 ρχ单位转换为设备独立像素 dip单位, 设备独立像素 dip单位为手机厂商界面 数值的标准单位。
[0076]
[0077] 参照图 2, 为本发明一实施例中的一种圆形自定义控件执行动画的装置的结构 示意图。
[0078] 本实施例中的一种圆形自定义控件执行动画的装置, 包括:
[0079] 获取单元 10, 用于获取屏幕宽度, 根据屏幕宽度以及圆形自定义控件指定位置 计算得到圆心的 X轴坐标以及 Y轴坐标;
[0080] 计算半径单元 20, 用于根据手机屏幕分辨率以及屏幕尺寸计算得到圆形自定义 控件的半径值;
[0081] 画图单元 30, 用于根据所述圆心坐标以及半径值通过构造函数画出图形; [0082] 计算角度单元 40, 用于根据指针起始点的坐标、 指针待停下点的坐标以及圆心 坐标计算出指针偏转的角度;
[0083] 执行单元 50, 用于通过预设的传入函数将所述偏转的角度, 传入至 OnDmw函 数执行指针偏转动画。
[0084] 本实施例中的一种圆形自定义控件执行动画的方法实现通过圆形自定义控件显 示一些动态数据的变化, 使得显示效果非常酷炫。
[0085] 初始化手机 Actvity (界面) , 为确保能画出圆形自定义控件, 根据手机宽度比 高度小在 Actvity (界面) 中获取手机屏幕的宽度 W, 设置手机的左上角为原点中 心 (0,0) , 根据获取的手机屏幕宽度 W得到圆形自定义控件的圆心的 X轴坐标为 W/2; 上述圆形自定义控件包括标题栏, 标题栏用于圆形自定义控件的命名, 根 据标题栏大小 H ,
以及获取的手机屏幕的宽度得到圆形自定义控件对应的圆心的 Υ轴坐标为 W/2+H !, 得到对应的圆形自定义控件的圆心坐标为 (W/2, W/2+H ,) 。
[0086] 为了确保圆形自定义控件能在手机屏幕分辨率不同以及屏幕尺寸不同的情况下 都能顺利显示出来, 预留手机的圆心到屏幕两端一定的边距 W ,, 获取的屏幕宽 度 W减去预留的边距 W ,得到对应的圆形自定义控件的半径为 R=W-W ,。
[0087] 调用构造函数, 构造函数获取上述圆形自定义控件的圆心坐标参数值 W/2、 W/ 2+H!
以及圆形自定义控件的半径的参数值 R, 根据获取的圆心坐标参数值 W/2、 W/2+ 以及半径的参数值 R画出图形, 上述图形根据圆形自定义控件的具体作用, 可 以为圆弧或圆。
[0088] 预设设置手机的左上角为原点中心 (0,0) , 在 Actvity (界面) 获取圆形自定义 控件中指针起始点的坐标以及指针待停下点的坐标, 根据获取指针起始点的坐 标、 指针待停下点的坐标以及上述圆心坐标利用算法计算得到对应指针偏转的 角度 θ。
[0089] 在实现圆形自定义控件指针偏转动画调用预设的传入函数以及 OnDmw函数, 预设的传入函数根据获取指针偏转的角度 θ, 传入函数将获取指针偏转的角度 Θ 传入至 OnDmw函数执行一次刷新控件, OnDmw函数根据获取指针偏转的角度 Θ 将指针偏转对应的角度 θ, 实现指针偏转的动画效果。
[0090] 初始化 Actvity (界面) , 在初始化 Actvity (界面) 中确定对应的圆形自定义控 件画出对应的圆或圆弧的图形, 通过获取圆形自定义控件中指针起始点的坐标 以及指针待停下点的坐标, 根据获取指针起始点的坐标、 指针待停下点的坐标 以及上述圆心坐标利用算法计算得到对应指针偏转的角度 θ, 调用预设的传入函 数, 根据上述预设的传入函数获取的角度 Θ传入至 OnDmw函数执行一次刷新控 件, OnDmw函数根据获取指针偏转的角度 Θ将指针偏转对应的角度 θ, 实现指针 偏转的动画效果, 使得通过圆形自定义控件实现了酷炫的动画效果, 提高用户 的体验。
[0091] 进一步地, 所述获取单元 10用于; [0092] 所述圆心的 X轴坐标的计算公式为: x。= W/2; 所述 Y轴坐标的计算公式为: y。
= W/2+H!;
[0093] 其中, χ。为所述圆心的 X轴坐标, y。为所述圆心的 Y轴坐标, W为屏幕宽度, H ,为圆形自定义控件距离所述屏幕上端的预设距离。
[0094] 在 Actvity (界面) 获取得到屏幕宽度, 具体长度为 W, 设置手机屏幕左上角作 为原点中心 (0,0) 。
[0095] 根据获取的屏幕宽度 W得到对应的圆心的 X轴长度为 W/2, 根据上述圆心的 X轴 坐标的计算公式 x。= W/2, 得到圆心的 X轴坐标为 W/2; 圆形自定义控件包括标 题栏, 上述标题栏用于圆形自定义控件的命名, 设置于上述圆形自定义控件的 上部, 上述圆形自定义控件标题栏长度为 H 1 ; 根据上述圆心的 Y轴坐标的计算 公式 得到圆心的 Y轴坐标为 W/2+H ,,得到圆形自定义控件的圆心 坐标为 (W/2, W/2+H 。
[0096] 进一步地, 所述计算半径单元 20用于;
[0097]
― __一斷
[0098] R为圆形自定义控件的半径值, W为屏幕宽度, 为根据手机屏幕分辨率以及 屏幕尺寸确定圆到屏幕两端的距离。
[0099] 为了使得圆形自定义控件能在手机屏幕分辨率不同以及屏幕尺寸不同的情况下 都能显示出最佳效果, 预设手机的圆心到屏幕两端的边距 W 1 ; 使得圆形自定义 控件在手机型号产生变化吋, 对应手机屏幕分辨率不同以及屏幕尺寸不同相应 产生变化吋不会影响圆形自定义控件的显示效果。
[0100] W为屏幕宽度, W ,为根据手机屏幕分辨率以及屏幕尺寸确定圆到屏幕两端的 距离, 根据圆形自定义控件的半径的计算公式
Figure imgf000012_0001
; 通过公式计算得到圆形自定义控件的半径值。
[0101] 进一步地, 所述计算角度单元 40用于:
Figure imgf000013_0001
[0102] x。为圆心的 X轴坐标, y。为圆心 Y轴坐标; ^为指针起始点的 X轴坐标, y 1为 指针起始点的 Υ轴坐标; χ 2为指针待停下点的 X轴坐标, y 2为指针待停下点的 Υ 轴坐标, Θ为指针偏转的角度。
[0103] 预设手机的左上角为原点中心 (0,0) , 在 Actvity (界面) 获取圆形自定义控件 指针起始点的 X轴坐标 X ,以及 Y轴坐标 y ,; 指针待停下点的坐标 X轴坐标 X 2 以及 Y轴坐标 y 2。 根据指针偏转的角度的计算公式
Figure imgf000013_0002
; 计算得到指针应该偏转的角度6。
[0104] 参照图 3, 为本发明另一实施例中的一种圆形自定义控件执行动画的装置的结 构示意图。
[0105] 所述圆形自定义控件执行动画的装置还包括判断单元 60;
[0106] 用于获取手机屏幕分辨率以及屏幕尺寸, 并判断所述手机屏幕分辨率单位以及 屏幕尺寸单位是否为设备独立像素 dip单位; 若为设备独立像素 dip单位则直接引 用, 否则转换为设备独立像素 dip单位再引用。
[0107] 对于不同的手机, 为了保证圆形自定义控件能显示最好的效果, 会根据手机屏 幕分辨率以及屏幕尺寸的不同来调整圆的半径值, 在获取手机屏幕分辨率以及 屏幕尺寸之后, 上述手机屏幕分辨率以及屏幕尺寸的单位一般为像素 px单位, 在需要根据手机屏幕分辨率以及屏幕尺寸来调整圆的半径值吋, 需要先将上述 像素 px单位转换为设备独立像素 dip单位, 设备独立像素 dip单位为手机厂商界面 数值的标准单位。
[0108] 综上所述, 本发明实施例中的圆形自定义控件的方法及装置实现了初始化 Actvi ty (界面) , 在初始化 Actvity (界面) 中确定对应的圆形自定义控件画出对应的 圆或圆弧的图形, 通过获取圆形自定义控件中指针起始点的坐标以及指针待停 下点的坐标, 根据获取指针起始点的坐标、 指针待停下点的坐标以及上述圆心 坐标利用算法计算得到对应指针偏转的角度 θ, 调用预设的传入函数, 根据上述 预设的传入函数获取的角度 Θ传入至 OnDmw函数执行一次刷新控件, OnDmw函 数根据获取指针偏转的角度 Θ将指针偏转对应的角度 θ, 实现指针偏转的动画效 果, 使得通过圆形自定义控件实现了酷炫的动画效果, 提高用户的体验。
[0109]
[0110] 以上所述仅为本发明的优选实施例, 并非因此限制本发明的专利范围, 凡是利 用本发明说明书及附图内容所作的等效结构或等效流程变换, 或直接或间接运 用在其他相关的技术领域, 均同理包括在本发明的专利保护范围内。

Claims

权利要求书
一种圆形自定义控件执行动画的方法, 其特征在于, 包括以下步骤: 获取屏幕宽度, 根据屏幕宽度以及圆形自定义控件指定位置计算得到 圆心的 X轴坐标以及 Y轴坐标;
根据手机屏幕分辨率以及屏幕尺寸计算得到圆形自定义控件的半径值 根据所述圆心坐标以及半径值通过构造函数画出图形;
根据指针起始点的坐标、 指针待停下点的坐标以及圆心坐标计算出指 针偏转的角度;
通过预设的传入函数将所述偏转的角度, 传入至 OnDmw函数执行指 针偏转动画。
根据权利要求 1所述的圆形自定义控件执行动画的方法, 其特征在于 所述圆心的 X轴坐标的计算公式为: x。= W/2; 所述 Y轴坐标的计算公 式为: y。= W/2+H 1 ;
其中, x。为所述圆心的 X轴坐标, Y为所述圆心的 Y轴坐标, W为屏 幕宽度, H ,为圆形自定义控件距离所述屏幕上端的预设距离。
根据权利要求 2所述的圆形自定义控件执行动画的方法, 其特征在于 , 所述圆形自定义控件的半径的计算公式为:
Figure imgf000015_0001
R为圆形自定义控件的半径值, W为屏幕宽度, \¥ ,为根据手机屏幕 分辨率以及屏幕尺寸确定圆到屏幕两端的距离。
根据权利要求 1所述的圆形自定义控件执行动画的方法, 其特征在于 , 所述指针偏转的角度的计算公式为: x。为圆心的 X轴坐标, y。为圆心 Y轴坐标; ^为指针起始点的 X轴坐 标, y ,为指针起始点的 Y轴坐标; χ 2为指针待停下点的 X轴坐标, y 2 为指针待停下点的 Y轴坐标; Θ为指针偏转的角度。
[权利要求 5] 根据权利要求 1所述的圆形自定义控件执行动画的方法, 其特征在于 所述根据手机屏幕分辨率以及屏幕尺寸计算得到圆形自定义控件的半 径值步骤之前包括:
获取手机屏幕分辨率以及屏幕尺寸, 并判断所述手机屏幕分辨率单位 以及屏幕尺寸单位是否为设备独立像素 dip单位; 若为设备独立像素 di p单位则直接弓 I用, 否则转换为设备独立像素 dip单位再弓 I用。
[权利要求 6] —种圆形自定义控件执行动画的装置, 其特征在于, 包括:
获取单元, 用于获取屏幕宽度, 根据屏幕宽度以及圆形自定义控件指 定位置计算得到圆心的 X轴坐标以及 Y轴坐标;
计算半径单元, 用于根据手机屏幕分辨率以及屏幕尺寸计算得到圆形 自定义控件的半径值;
画图单元, 用于根据所述圆心坐标以及半径值通过构造函数画出图形 计算角度单元, 用于根据指针起始点的坐标、 指针待停下点的坐标以 及圆心坐标计算出指针偏转的角度;
执行单元, 用于通过预设的传入函数将所述偏转的角度, 传入至 OnD raw函数执行指针偏转动画。
[权利要求 7] 根据权利要求 6所述的圆形自定义控件执行动画的装置, 其特征在于 所述获取单元用于: 所述圆心的 X轴坐标的计算公式为: x。= W/2; 所述 Y轴坐标的计算公 式为: y。= W/2+H 1 ;
其中, x。为所述圆心的 X轴坐标, Y为所述圆心的 Y轴坐标, W为屏 幕宽度, H ,为圆形自定义控件距离所述屏幕上端的预设距离。
[权利要求 8] 根据权利要求 7所述的圆形自定义控件执行动画的装置, 其特征在于 , 所述计算半径单元用于:
Figure imgf000017_0001
R为圆形自定义控件的半径值, W为屏幕宽度, \¥ ,为根据手机屏幕 分辨率以及屏幕尺寸确定圆到屏幕两端的距离。
[权利要求 9] 根据权利要求 6所述的圆形自定义控件执行动画的装置, 其特征在于
, 所述计算角度单元用于:
Figure imgf000017_0002
x。为圆心的 X轴坐标, y。为圆心 Y轴坐标; ^为指针起始点的 X轴坐 标, y ,为指针起始点的 Y轴坐标; χ 2为指针待停下点的 X轴坐标, y 2 为指针待停下点的 Y轴坐标, Θ为指针偏转的角度。
[权利要求 10] 根据权利要求 6所述的圆形自定义控件执行动画的装置, 其特征在于 , 还包括判断单元:
用于获取手机屏幕分辨率以及屏幕尺寸, 并判断所述手机屏幕分辨率 单位以及屏幕尺寸单位是否为设备独立像素 dip单位; 若为设备独立 像素 dip单位则直接弓 I用, 否则转换为设备独立像素 dip单位再弓 I用。
PCT/CN2017/077216 2017-03-20 2017-03-20 圆形自定义控件执行动画的方法及装置 WO2018170654A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2017/077216 WO2018170654A1 (zh) 2017-03-20 2017-03-20 圆形自定义控件执行动画的方法及装置
CN201780001536.7A CN107980121A (zh) 2017-03-20 2017-03-20 圆形自定义控件执行动画的方法及装置

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/077216 WO2018170654A1 (zh) 2017-03-20 2017-03-20 圆形自定义控件执行动画的方法及装置

Publications (1)

Publication Number Publication Date
WO2018170654A1 true WO2018170654A1 (zh) 2018-09-27

Family

ID=62006149

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/077216 WO2018170654A1 (zh) 2017-03-20 2017-03-20 圆形自定义控件执行动画的方法及装置

Country Status (2)

Country Link
CN (1) CN107980121A (zh)
WO (1) WO2018170654A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109032472A (zh) * 2018-08-02 2018-12-18 珠海格力电器股份有限公司 一种应用展示方法、装置、终端及可读存储介质
CN109725963A (zh) * 2018-11-22 2019-05-07 努比亚技术有限公司 一种非矩形视图的实现方法、终端及计算机可读存储介质
CN110221898B (zh) * 2019-06-19 2024-04-30 北京小米移动软件有限公司 息屏画面的显示方法、装置、设备及存储介质
CN111142816B (zh) * 2019-12-27 2023-03-03 珠海趣印科技有限公司 一种用于打印机上基于算法描线画圆环的方法

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110071598A (ko) * 2009-12-21 2011-06-29 한국전자통신연구원 위젯 재생 장치 및 방법
CN102541537A (zh) * 2011-12-01 2012-07-04 厦门雅迅网络股份有限公司 一种具有环绕效果的菜单容器控件的实现方法及装置
CN105278953A (zh) * 2015-09-23 2016-01-27 三星电子(中国)研发中心 圆形屏幕的界面显示方法和装置
CN106066798A (zh) * 2016-06-06 2016-11-02 深圳铂睿智恒科技有限公司 一种时间控件及其实现方法

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105827833A (zh) * 2016-03-22 2016-08-03 南京邮电大学 一种基于百分比的Android手机屏幕适配方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110071598A (ko) * 2009-12-21 2011-06-29 한국전자통신연구원 위젯 재생 장치 및 방법
CN102541537A (zh) * 2011-12-01 2012-07-04 厦门雅迅网络股份有限公司 一种具有环绕效果的菜单容器控件的实现方法及装置
CN105278953A (zh) * 2015-09-23 2016-01-27 三星电子(中国)研发中心 圆形屏幕的界面显示方法和装置
CN106066798A (zh) * 2016-06-06 2016-11-02 深圳铂睿智恒科技有限公司 一种时间控件及其实现方法

Also Published As

Publication number Publication date
CN107980121A (zh) 2018-05-01

Similar Documents

Publication Publication Date Title
WO2018170654A1 (zh) 圆形自定义控件执行动画的方法及装置
US8847927B2 (en) Information processing apparatus and computer-readable storage medium having stored therein information processing program
JP2016522437A (ja) 画像表示方法、画像表示装置、端末、プログラム及び記録媒体
KR101690034B1 (ko) 3차원 그래픽 기반 단말기에서 객체 렌더링 장치 및 방법
EP2658239A3 (en) Semiconductor device, image processing system, and program
JP5706039B2 (ja) 端末装置、表示装置、キャリブレーション方法及びキャリブレーションプログラム
CN110636273A (zh) 调整投影画面的方法、装置、可读存储介质及投影仪
CN106952580B (zh) 一种终端的柔性显示屏的显示区域的调整方法和装置
CN103076954B (zh) 调整显示效果的方法及装置
CN111833243B (zh) 一种数据展示方法、移动终端和存储介质
JP2014235657A (ja) 情報処理プログラム、情報処理装置、情報処理システム、および情報処理方法
JP2015038595A (ja) 映像生成装置、映像生成方法
CN111554218A (zh) 显示参数确定方法、装置及显示设备
WO2024067320A1 (zh) 虚拟物体的渲染方法、装置、设备及存储介质
CN104020925A (zh) 投影方法及装置
WO2023169287A1 (zh) 美妆特效的生成方法、装置、设备、存储介质和程序产品
JP6028372B2 (ja) 表示制御装置、画像処理装置、画像制御方法及びプログラム
KR101652776B1 (ko) 터치 입력 제어 및 가상 매핑 방법
WO2015097892A1 (ja) 端末装置、キャリブレーション方法及びキャリブレーションプログラム
CN112764864A (zh) 显示方向调整方法及装置
EP1302902B1 (en) Feedback-controlled setting of interpolation parameters used in image rendering
CN114388059B (zh) 基于三维力反馈控制器的蛋白截面生成方法
CN109829968A (zh) 法线纹理图的生成方法、装置、存储介质及电子设备
CN103369392A (zh) 利用移动终端控制智能电视机顶盒的方法
CN111427489B (zh) 一种客户端窗体移动方法、装置和设备及可读存储介质

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

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 1205A DATED 17/01/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17901985

Country of ref document: EP

Kind code of ref document: A1