Advertisement document adding method and device, terminal equipment and readable storage medium
A technology of terminal equipment and advertising text, which is applied in the field of data processing, can solve problems such as error-prone, time-consuming and labor-intensive, and unfavorable for later maintenance, and achieve the effect of reducing manual error rate, reducing waste, and avoiding manual work
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0052] For this example, see figure 1 , showing that a method for adding an advertisement copy includes the following steps:
[0053] Step S100: Obtain the advertisement copy corresponding to the advertisement.
[0054] Before playing the advertisement, it can be determined whether the advertisement has a corresponding advertisement configuration file. If there is a corresponding advertisement configuration file, the advertisement copy corresponding to the advertisement can be obtained from the corresponding advertisement configuration file; if there is no corresponding advertisement configuration file, you can directly Play the ad without adding copy for the ad.
[0055] It is also possible to determine whether the advertisement has a corresponding advertisement configuration file during the process of playing the advertisement. If there is a corresponding advertisement configuration file, the advertisement copy corresponding to the advertisement is obtained from the corresp...
Embodiment 2
[0063] Exemplary, see figure 2 , creating a copy texture based on the corresponding ad copy includes the following steps:
[0064] Step S210: Determine the size of the bitmap according to the corresponding advertisement text.
[0065] Determine the length and width of the bitmap according to the corresponding advertisement copy, and the size of the bitmap should ensure that it can accommodate the text information corresponding to the full advertisement copy.
[0066] Step S220: Create a bitmap according to the size of the bitmap.
[0067] Exemplarily, taking a screenshot on android according to the length and width of the bitmap needs to go through two steps to create the bitmap:
[0068] Obtain the original RGB bytes from the frame buffer (framebuffer), including width*height*image depth / 8; convert the original bytes into JPEG or PNG and other compressed pictures that can be viewed directly.
[0069] There are three ways to convert the original bytes into JPEG or PNG, etc...
Embodiment 3
[0081] For this example, see image 3 , showing that using the texture mapping method to display the corresponding text texture in the advertisement includes the following steps:
[0082] Step S310: Map the text texture to a preset mapped object surface to obtain a mapped text texture.
[0083] The text texture can be mapped to the preset mapped object surface. The preset mapped object surface can be two-dimensional or three-dimensional. Define a triangle in the text texture, and then map the texture of the triangle line area to the mapped object surface In the triangle unit, the preset mapped object surface is used as a standard mapped surface, and the text texture is mapped to the preset mapped object surface, so that the standard mapped copy texture can be obtained.
[0084] Step S320: Perform linear filtering on each texel point in the mapped text texture.
[0085] The size of the copy texture triangle is not consistent with the triangle that maps the surface of the obje...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


