Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and apparatus for obtaining spotlight graph

A technology of spotlight and graphics, applied in the processing of 3D images, image data processing, input/output process of data processing, etc.

Inactive Publication Date: 2015-11-11
GUANGDONG XIAOTIANCAI TECH CO LTD
View PDF5 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The purpose of the embodiments of the present invention is to propose a method and device for obtaining spotlight graphics, aiming at solving the problem of how to improve the display effect of spotlights

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and apparatus for obtaining spotlight graph
  • Method and apparatus for obtaining spotlight graph
  • Method and apparatus for obtaining spotlight graph

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0057] refer to figure 1 , figure 1 It is a schematic flowchart of the first embodiment of the method for acquiring spotlight graphics according to the embodiment of the present invention.

[0058] In Embodiment 1, the method for acquiring spotlight graphics includes:

[0059] Step 101, obtaining the circle of the spotlight, and the center point of the circle is the position of the spotlight on the screen;

[0060] Specifically, create a new layer on the screen, and set the color of the layer to black. The position coordinates P(x, y) of the spotlight on the screen and the radius R of the spotlight are given, and the color of point P in this layer is set to black and transparent.

[0061] Step 102, obtaining a preset number of graphics, the graphics are triangles or polygons, and the vertices of the graphics include the center point of the circle and at least two points on the circumference of the circle;

[0062]Preferably, the acquisition of a preset number of graphics, ...

Embodiment 2

[0075] refer to figure 2 , figure 2 It is a schematic flowchart of the second embodiment of the method for acquiring a spotlight according to the embodiment of the present invention.

[0076] In the second embodiment, the graph obtained after the color change is obtained according to the preset color change algorithm, the change is after the color value changes from the first color value to the second color value, and further includes :

[0077] Step 105, receiving the position coordinates of the user's trigger point on the screen;

[0078] Step 106, judging whether the position coordinates of the trigger point are within the coordinate range of the circle of the spotlight;

[0079] Step 107, if the position coordinates of the trigger point are within the coordinate range of the spotlight circle, obtain an instruction for the trigger point to slide on the screen;

[0080] Step 108, move the position of the center point of the spotlight according to the instruction.

[0...

Embodiment 3

[0088] refer to image 3 , image 3 It is a schematic diagram of the functional modules of the device for obtaining spotlight graphics according to the embodiment of the present invention.

[0089] In the third embodiment, the device for acquiring spotlight graphics includes:

[0090] The first acquiring module 301 is configured to acquire a circle of a spotlight, and the center point of the circle is the position of the spotlight on the screen;

[0091] Specifically, create a new layer on the screen, and set the color of the layer to black. The position coordinates P(x, y) of the spotlight on the screen and the radius R of the spotlight are given, and the color of point P in this layer is set to black and transparent.

[0092] The second obtaining module 302 is used to obtain a preset number of graphics, the graphics are triangles or polygons, and the vertices of the graphics include the center point of the circle and at least two points on the circumference of the circle ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

Embodiments of the present invention disclose a method and apparatus for obtaining a spotlight graph. The method comprises: obtaining a circle of a spotlight, wherein a center point of the circle is a position of the spotlight on a screen; obtaining a preset number of graphs, wherein each graph is triangular or polygonal, and vertices of the graph comprise the center point of the circle and at least two points on the circumference of the circle; setting a color value of the center of the circle to a first color value, and setting color values of the other points, except the center point of the circle, on the graph to a second color value; and according to a preset color change algorithm, obtaining the graph after change of color, wherein the change is color value change from the first color value to the second color value, so that the center of the spotlight is brightest, and the brightness then slowly decreases while approaching to the circumference, and finally achieves a blurred effect within a given range, providing human eyes with a divergent effect of the spotlight.

Description

technical field [0001] Embodiments of the present invention relate to the technical field of mobile terminals, and in particular to a method and device for acquiring spotlight graphics. Background technique [0002] At present, in graphics processing, the effect of many spotlights is a completely transparent circular block on the top layer of the display layer, which is used to see through the objects in the lower layer. It is only a perspective area, and there is no such thing as a spotlight effect. Contents of the invention [0003] The purpose of the embodiments of the present invention is to provide a method and device for acquiring spotlight graphics, aiming at solving the problem of how to improve the display effect of the spotlight. [0004] To achieve this purpose, the embodiments of the present invention adopt the following technical solutions: [0005] A method for obtaining spotlight graphics, the method comprising: [0006] Obtain the circle of the spotlight,...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F3/0484G06T11/40G06T15/55
Inventor 胡盛平
Owner GUANGDONG XIAOTIANCAI TECH CO LTD