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

Power generator set controller-based font library dot matrix generation method

A generator set and controller technology, which is applied in the input/output process of electrical digital data processing, instruments, and data processing, etc., can solve the problems of cumbersome methods and difficult to implement, and achieve the effect of easy generation methods and outstanding substantive characteristics.

Active Publication Date: 2017-02-15
SMARTGEN TECH
View PDF3 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] The Chinese characters in the interface display of the generator set controller are stored in the flash of the single-chip microcomputer in the form of dot matrix, and the dot matrix of Chinese characters needs to be taken. According to the size of the LCD dot matrix, the font often needs to be 12*12, 24*24, 32*32 and other sizes, when using it, you need to set the font size, remove the mold word by word, and then organize it into the format you need and download it to your own program. The method is cumbersome and difficult to implement

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0011] Provide specific embodiment below and do further detailed description to the present invention:

[0012] A font matrix generation method based on a generating set controller, comprising the following steps:

[0013] Step 1: Determine the font and size of the font to be generated. The size is the number of data bits occupied by the dot matrix of each character; for example, if you want to generate a 24*24 size font, calculate the number of dot matrix required for each font , 24*24 requires 576 points, that is, 72 bytes; the Unicode code character set from 0x3000 to 0x9FFF has a total of 28672 characters, requiring 28672*72 bytes;

[0014] Step 2: first create a new Pictrue1 control, and create a new Label label on the Pictrue1 control, wherein, the position of the Label label is set to (0, 0), the AutoSize property is set to true, and the font size is set to the font size in step 1; Then display the word to be converted on a label tag; then put the label tag on a Pictur...

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 power generator set controller-based font library dot matrix generation method. The method comprises the following steps of 1: determining fonts about to generate a font library, and sizes; 2: firstly creating a Picture1 control, and creating a Label on the Picture1 control, wherein the position of the Label is set to be (0,0), an AutoSize attribute is set to be true, and the font sizes are set to be the font sizes in the step 1; secondly displaying a to-be-converted font on a label; thirdly putting the label on a Picture, obtaining an RGB value of a coordinate point (x,y) through a Picture.Point (x,y) method, and if the value is 0, determining a dot matrix on the font and calculating the size of a byte array according to the positions of byte bits, wherein the low bits are front and the high bits are back; and 3: obtaining the dot matrix of the font in a determinant scanning mode, and storing the dot matrix in a dat file.

Description

technical field [0001] The invention relates to a method for generating font dot matrix, in particular to a generation method for font dot matrix based on a generator set controller. Background technique [0002] The Chinese characters in the interface display of the generator set controller are stored in the flash of the single-chip microcomputer in the form of dot matrix, and the dot matrix of Chinese characters needs to be taken. According to the size of the LCD dot matrix, the font often needs to be 12*12, 24*24, 32*32 and other sizes, when using it, you need to set the font size, remove the mold word by word, and then organize it into the format you need and download it to your own program. The method is cumbersome and difficult to implement. [0003] In order to solve the above existing problems, people have been seeking an ideal technical solution. Contents of the invention [0004] The purpose of the present invention is to address the deficiencies of the prior ar...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F3/023
CPCG06F3/0233
Inventor 冯斌王磊徐红宗王向前刘蕊
Owner SMARTGEN TECH
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