Text key drawing method

A text and button technology, applied in the computer field, can solve problems such as vehicle system crash, system running slow, memory application failure, etc., to save memory space and image loading time, reduce memory consumption, and clear the effect of logical management level.

Inactive Publication Date: 2017-03-29
HUIZHOU DESAY SV AUTOMOTIVE
View PDF3 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] The graphics drawing function of the car navigation host uses Microsoft's embedded operating system WinCE. When the graphics drawing method draws text buttons, different text lengths require different background image resources, resulting in many ba

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
  • Text key drawing method
  • Text key drawing method
  • Text key drawing method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0028] The present invention provides a method for drawing text buttons, referring to figure 1 , in the first embodiment, the drawing method of the text button includes the following sequential execution steps:

[0029] SA1, calculating the parameters of the drawing area of ​​the text, including drawing position and drawing length;

[0030] SA2. Draw the first picture and the second picture at both ends of the drawing length, and calculate the stretched length of the stretched picture according to the distance between the first picture and the second picture, and then draw the stretched section As for the picture, the first picture, the second picture and the stretched picture set between the first and second pictures form a complete button shape.

[0031] In this embodiment, the button picture for drawing the text ...

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 discloses a text key drawing method. The text key drawing method comprises the following steps: calculating parameters of a drawing area of a text, wherein the parameters comprise a drawing position and a drawing length; and drawing a first segment of picture and a second segment of picture at both ends of the drawing length, calculating a stretched length of a stretched segment of picture according to the distance between the first segment of picture and the second segment of picture, and then drawing the stretched segment of picture, wherein the first segment of picture, the second segment of picture and the stretched segment of picture arranged between the first segment and the second segment constitute a complete key shape. According to the text key drawing method disclosed by the invention, the key picture of the key of the drawn text is divided into three parts, the requirements for the background picture of the text key are greatly reduced according to the position and the size of the text drawing area that is dynamically calculated during the operation, the positions of the pictures of the three parts during the drawing and the necessary stretch size, the requirements of the text key for the storage space and the internal memory are reduced, and the operation speed and the stability of the system are improved.

Description

technical field [0001] The invention relates to the field of computers, in particular to a method for drawing text buttons. Background technique [0002] The graphics drawing function of the car navigation host uses Microsoft's embedded operating system WinCE. When the graphics drawing method draws text buttons, different text lengths require different background image resources, resulting in many background image resources and occupying a large amount of Flash space. If there are many text buttons to be loaded on the system page, more pictures need to be loaded, which will cause problems such as slow system operation, memory application failure, and vehicle system crash. Contents of the invention [0003] The main purpose of the present invention is to provide a method for drawing text buttons, aiming at changing the existing way of drawing text buttons and reducing the occupation of system resources when drawing text buttons. [0004] In order to achieve the above objec...

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): G06F9/44
CPCG06F9/451
Inventor 怀保胜
Owner HUIZHOU DESAY SV AUTOMOTIVE
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products