Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Character texture painting method and device

A texture drawing and text technology, applied in the direction of using manual input to modify/create images, etc., can solve the problems of low interaction efficiency, the installation package cannot be too large, and the CPU usage rate is increased, so as to improve the interaction efficiency and save the CPU usage rate. Effect

Active Publication Date: 2017-09-29
BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF11 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This is unacceptable for those software whose installation package cannot be too large
At the same time, when using D3D to draw text, there is a single word between the memory and the video memory; and the frequent interaction between the memory and the video memory will increase the CPU usage, resulting in low interaction efficiency

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
  • Character texture painting method and device
  • Character texture painting method and device
  • Character texture painting method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0049] In the computer system, the text display method is to save the byte of text to the input buffer after receiving a byte of text from the input port (for example, the keyboard), and transfer the content in the input buffer to the memory. The memory sends the input text to the video memory, so that the text can be displayed on the output port (for example, the display screen).

[0050] refer to figure 1 , which shows a flow chart of the steps of an embodiment of a text texture drawing method embodiment according to an embodiment of the present invention, which may specifically include the following steps:

[0051] Step S101, acquiring the document and the vertex information of the characters in the document; the vertex information includes the shape, coordinates and color of the characters; the font of the characters includes the font and size of the characters.

[0052] The text in the above document can be position-associated and has certain regularity; for example, the...

Embodiment 2

[0076] refer to figure 2 , which shows a flow chart of the steps of an embodiment of a text texture drawing method embodiment according to another embodiment of the present invention, which may specifically include the following steps:

[0077] Step S201, acquiring the document and the vertex information of the text in the above document; the above vertex information includes the font shape, coordinates and color of the above text; the font shape of the above text includes the font and font size of the above text.

[0078] The document exemplified in the invention of the present application is in Chinese, and if it is a document in other languages, the method in the present invention is adopted, which is within the protection scope of the invention of the present application.

[0079] The text in the above document may be position-related and have certain regularity; for example, the first text in the above document is located at the initial position in the document, the seco...

Embodiment 3

[0124] refer to image 3 , which shows a structural block diagram of an embodiment of a text texture rendering device according to an embodiment of the present invention, which may specifically include the following modules:

[0125] The obtaining document unit 301 is used to obtain the document and the vertex information of the characters in the above-mentioned documents; the above-mentioned vertex information includes the font, coordinates and color of the above-mentioned characters; the font of the above-mentioned characters includes the font and font size of the above-mentioned characters;

[0126] The first text setting unit 302 is configured to select the above-mentioned text as the first text for each text in the above-mentioned document;

[0127] The third text generation unit 303 is configured to call the second text corresponding to the first text from the preset texture cache 306, and render according to the color of the first text to generate the third text;

[01...

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

The invention provides a character texture painting method and device, and relates to the technical field of character display. The method comprises the steps of: acquiring a document and apex information of characters in the document, wherein the apex information includes fonts, coordinates and colors of the characters, and the fonts of the characters include styles and sizes of the characters; for each character in the document, selecting the characters as first characters; calling second characters corresponding to the first characters from a preset texture cache, and rendering the second characters according to the colors of the first characters to generate third characters; after the first characters have the corresponding third characters, sending the third characters and the corresponding coordinates to a video memory; and after the third characters in the video memory are arranged according to the corresponding coordinates, sending the third characters to a video card. By adopting the method and the device, the internal memory and the video memory do not need to interact frequently, so that the usage of a CPU is saved and the interaction efficiency is improved.

Description

technical field [0001] The present invention relates to the technical field of text display, in particular to a text texture drawing method and device. Background technique [0002] In the computer system, the text display method is to save the byte of text to the input buffer after receiving a byte of text from the input port (for example, the keyboard), and transfer the content in the input buffer to the memory. The memory sends the input text to the video memory, so that the text can be displayed on the output port (for example, the display screen). [0003] At present, with the popularity of Direct UI technology, it is very convenient to build an efficient, gorgeous, and very easy-to-extend interface. Direct UI means drawing directly on the parent window (Paint on parent dc directly). That is, the child window is not created in the form of a window handle (windowless), but a logical window, drawn on top of the parent window. A good interface needs the support of a goo...

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
IPC IPC(8): G06T11/80
CPCG06T11/80
Inventor 秦宏有
Owner BEIJING QIYI CENTURY SCI & TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products