Image-text drawing method and device, electronic equipment and storage medium
A technology for graphics, text and storage objects, applied in the computer field, can solve the problems of redundant third-party framework functions, inability to reduce system power consumption, occupying memory space, etc., to improve management convenience, improve development efficiency, and reduce performance consumption. Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0028] The graphic-text drawing method provided in this embodiment is applicable to situations where graphic-text mixing is required. The method can be performed by a graphic-text mixing device, which can be implemented by software and / or hardware, and which can be integrated in electronic equipment, such as typically user terminal equipment, such as mobile phones, tablet computers or desktop computers Wait. see figure 1 , the method of this embodiment includes:
[0029] S110. Using the content to be drawn and the drawing attribute corresponding to the content to be drawn as input parameters, sequentially call the content-associated attribute and attribute-associated attribute of the initial character string object in a chained calling manner to obtain the target character string object, so as to establish each The content association relationship between the drawn contents, and the attribute association relationship between each to-be-drawn content and the drawing attribute...
Embodiment 2
[0044] On the basis of the first embodiment above, this embodiment further optimizes the function realization of the "image-text drawing attribute of the target character string object". The explanations of terms that are the same as or corresponding to the above-mentioned embodiments will not be repeated here. see image 3 The implementation method of the graphic and text drawing attribute in the graphic and text drawing method provided by this embodiment includes:
[0045] S210. Generate each target rich text storage object according to the character strings, content associations, and attribute associations in the target string object.
[0046] Wherein, the rich text storage object is pre-defined and is used to store the instantiated object DYRichTextRun of the rich text class. The target rich text storage object refers to a rich text storage object that stores rich text content (content to be drawn and drawing attributes). The target rich text storage object can be direc...
Embodiment 3
[0058] On the basis of the above-mentioned second embodiment, this embodiment further optimizes the function realization of the "graphic and text drawing function of the rich text management object". The explanations of terms that are the same as or corresponding to the above-mentioned embodiments will not be repeated here. see Figure 4 The implementation method of the graphic and text drawing function in the graphic and text drawing method provided in this embodiment includes:
[0059] S310. Obtain a child thread through the pre-created asynchronous queue.
[0060] Specifically, in the internal implementation of the graphic drawing function, firstly, a global concurrent queue is lazily loaded as an asynchronous queue. That is, it is automatically created when there is no such asynchronous queue, and it is directly used when the asynchronous queue already exists. The creation of an asynchronous queue will directly switch to a child thread to perform subsequent functional o...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com