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.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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 ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 