CN101419715A - Method and device for generating character or graphic dot matrix - Google Patents

Method and device for generating character or graphic dot matrix Download PDF

Info

Publication number
CN101419715A
CN101419715A CNA2008102179082A CN200810217908A CN101419715A CN 101419715 A CN101419715 A CN 101419715A CN A2008102179082 A CNA2008102179082 A CN A2008102179082A CN 200810217908 A CN200810217908 A CN 200810217908A CN 101419715 A CN101419715 A CN 101419715A
Authority
CN
China
Prior art keywords
dot matrix
pixel
bit
literal
data element
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CNA2008102179082A
Other languages
Chinese (zh)
Inventor
周伟庆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Skyworth Digital Technology Co Ltd
Original Assignee
Shenzhen Skyworth Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Skyworth Digital Technology Co Ltd filed Critical Shenzhen Skyworth Digital Technology Co Ltd
Priority to CNA2008102179082A priority Critical patent/CN101419715A/en
Publication of CN101419715A publication Critical patent/CN101419715A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses a method for generating a dot matrix of words or graphics. The method comprises the following steps: step (a): editing and processing the words or the images which need to be made into the dot matrix by an image processing tool, and storing the words or the image as a image file in a bitmap format; step (b): extracting bitmap information from the image file, and obtaining a pixel value of each pixel; step (c): respectively corresponding one pixel to one bit, causing a corresponding bit of a pixel with the pixel value being zero to be zero and causing a corresponding bit of a pixel with the pixel value not being zero to be one, and controlling the generated dot matrix by the bits which have the same numbers as those of the pixels. The invention further discloses a device for generating the dot matrix of the words or the graphics. As the words or the images which can be randomly changed are converted into the dot matrix for display, the method causes the words or the images displayed in the dot matrix to be randomly changed in accordance with user needs, thus improving the humanization of electronic products.

Description

Generate the method and apparatus of literal or graphic dot matrix
Technical field
The present invention relates to the dot matrix treatment technology, especially relate to a kind of method and apparatus that generates literal or graphic dot matrix.
Background technology
Along with the differentiation of information globalization and globalisation of production, country variant and area on the product possible world of certain a same model that same producer manufactures.And country variant there are differences with regional language, the literal that uses, and user's hobby is also different.Therefore, at different use countries and regions, electronic product need provide the interface prompt language of the language, font style and the font size that adapt to local user's needs, so that product is humanized.
Yet though present electronic product can provide different Language Interface, literal on the Language Interface and graphical interfaces also can't arbitrarily be changed.Therefore, font style and the font size how to provide the client to change on the interface prompt language of electronic product easily make product have more the market competitiveness and more, become problem anxious to be solved.
Summary of the invention
The objective of the invention is to propose a kind of method and apparatus that generates literal or graphic dot matrix, convert the dot matrix demonstration to by the literal or the picture that will need arbitrarily to change, can't arbitrarily change the technical matters of font style and font size on the interface prompt language that solves present electronic product according to client's needs.
For solving technical matters of the present invention, the present invention discloses a kind of method that generates literal or graphic dot matrix, and it comprises:
Step a, the literal or the picture that use the picture handling implement that needs are made dot matrix carry out editing and processing, save as the picture file of bitmap format;
Step b, extract message bit pattern, obtain the pixel value of each pixel from described picture file;
Step c, respectively with corresponding 1 pixel of 1 bit, making pixel value is that the bit of 0 pixel correspondence is 0, pixel value is not that the bit of 0 pixel correspondence is 1, uses the bit identical with number of pixels to control the generation dot matrix.
Wherein, step c comprises:
Step c1, equal the respective data element of the array of number of pixels for a data element number value assignment of each pixel;
Step c2, with corresponding 1 bit of each data element, the value that makes data element is that the bit of 0 o'clock correspondence is 0, the value of data element is not that the bit of 0 o'clock correspondence is 1 to control the generation dot matrix.
Wherein, described bitmap format is the BMP form of 8 position index looks.
Wherein, ISO/IEC 8859 character set of ISO (International Standards Organization) taken from described literal.
In addition, the present invention also discloses a kind of device that generates literal or graphic dot matrix, and it comprises:
The editing and processing unit, the literal or the picture that are used to use the picture handling implement that needs are made dot matrix carry out editing and processing, save as the picture file of bitmap format;
The bitmap extraction unit is used for extracting message bit pattern from described picture file, obtains the pixel value of each pixel;
Dot matrix generates control module, is used for respectively with corresponding 1 pixel of 1 bit, and making pixel value is that the bit of 0 pixel correspondence is 0, and pixel value is not that the bit of 0 pixel correspondence is 1, uses the bit identical with number of pixels to control the generation dot matrix.
Wherein, described dot matrix generation control module comprises:
Array generates and processing module, is used to generate the array that a data element number equals number of pixels, gives corresponding data element in this array with the value difference assignment of each pixel;
The LED-lattice Control module is used for corresponding 1 bit of each data element, and the value that makes data element is that the bit of 0 o'clock correspondence is 0, and the value of data element is not that the bit of 0 o'clock correspondence is 1 to control the generation dot matrix.
Compared with prior art, the present invention has following beneficial effect:
The present invention carries out editing and processing with using the picture handling implement by the literal that will need arbitrarily to change or picture, saves as the picture file of bitmap format; Then, because the information of each pixel is stored respectively in the picture file of bitmap format, therefore, can extract message bit pattern from picture file easily; Whether the pixel value of judging each pixel again is 0, and the control pixel value is that 0 pixel does not show in dot matrix, and pixel value not to be 0 pixel show in dot matrix gets final product.Therefore, the present invention converts the dot matrix demonstration to by the literal or the picture that will need arbitrarily to change, literal or picture that dot matrix is shown can arbitrarily be changed according to user's needs, thereby make the interface prompt language of electronic product arbitrarily change font style and font size, improve the hommization of electronic product according to client's needs.
Description of drawings
Fig. 1 is the schematic flow sheet of an example of the present invention;
Fig. 2 is the structural representation of an example of the present invention.
Embodiment
The present invention carries out literal or picture that needs can arbitrarily be changed to convert bitmap to after the editing and processing, and conversion generates dot matrix according to message bit pattern again.
As shown in Figure 1, present embodiment may further comprise the steps:
Step S110: selection need be made the literal or the picture of dot matrix.Such as, from ISO/IEC 8859 character set of the ISO (International Standards Organization) of corresponding language, select to make the literal of dot matrix.
Step S120: the literal or the picture that use the picture handling implement that needs are made dot matrix carry out editing and processing, save as the picture file of bitmap format.
The picture handling implement has a lot, such as softwares such as photoshop, coredraw.With photoshop software is example: creating size and background identical with literal or picture number of pixels in photoshop is transparent graphic template; Character among the step S110 or picture reproduction to the graphic template of creating, are adjusted the font of character or picture or size etc. according to actual needs, the picture that obtains is saved as the picture file of the BMP form of 8 position index looks.
Step S130: because the information of each pixel is stored respectively in the picture file of bitmap format, therefore, can extract message bit pattern from picture file easily, that is to say the pixel value of each pixel in the picture that extracts the BMP form.
Step S140: set up the array that a data element number equals number of pixels, with corresponding data element in this array of pixel value assignment of each pixel.Such as, the size of BMP picture is the M*N pixel, then newly-built array D[M] [N], and D I, jThe value of [i] [j] is that sequence number is (I, pixel pixel value j) (wherein, 1≤i≤M, the integer of 1≤j≤M).
Step S150: with corresponding 1 bit of each data element (bit) position, the value that makes data element is that the bit of 0 o'clock correspondence is 0, and the value of data element is not that the bit of 0 o'clock correspondence is 1 to control the generation dot matrix.
Because when generating dot matrix, whether computing machine is only paid close attention to each dot matrix and is shown.Such as word lattice, have only the pixel of literal writing process, the pixel value of its pixel is not 0, needs to show when generating dot matrix; And the literal writing without pixel, the pixel value of its pixel is 0, does not need when generating dot matrix to show.Therefore, for array D[M] numerical value of each data element in [N], have only whether the value of being concerned about each data element is 0X00, as be 0X00, then Dui Ying bit is 0; As the data element is not 0X00, and then Dui Ying bit is 1.
For example, for 8 pixels for the array D:0x00 that constitutes by 8 data elements; 0x01; 0x02; 0x03; 0x04; 0x05; 0x06; 0x00 is if the data element in each pixel or each array represents as LED-lattice Control with 1bit that respectively then can use binary number: 01111110 (being 0x7e) represented.Therefore, for array D[M] [N], need M*N bit to control the generation dot matrix equally.
In conjunction with shown in Figure 2.The device of disclosed generation literal of present embodiment or graphic dot matrix, it comprises: editing and processing unit 10, bitmap extraction unit 11 and dot matrix generate control module 12.Literal or picture that described editing and processing unit 10 is used to use the picture handling implement that needs are made dot matrix carry out editing and processing, save as the picture file of bitmap format; Described bitmap extraction unit 11 is used for extracting message bit pattern from described picture file, obtains the pixel value of each pixel; Described dot matrix generates control module 12 and is used for respectively with corresponding 1 pixel of 1 bit, and making pixel value is that the bit of 0 pixel correspondence is 0, and pixel value is not that the bit of 0 pixel correspondence is 1, uses the bit identical with number of pixels to control the generation dot matrix.
Wherein, described dot matrix generation control module 12 comprises: array generates and processing module 121 and LED-lattice Control module 122.Described array generates with processing module 121 and is used to generate the array that a data element number equals number of pixels, gives corresponding data element in this array with the value difference assignment of each pixel; Described LED-lattice Control module 122 is used for corresponding 1 bit of each data element, and the value that makes data element is that the bit of 0 o'clock correspondence is 0, and the value of data element is not that the bit of 0 o'clock correspondence is 1 to control the generation dot matrix.
To sum up, the present invention carries out editing and processing with using the picture handling implement by the literal that will need arbitrarily to change or picture, saves as the picture file of bitmap format; Then, because the information of each pixel is stored respectively in the picture file of bitmap format, therefore, can extract message bit pattern from picture file easily; Whether the pixel value of judging each pixel again is 0, and the control pixel value is that 0 pixel does not show in dot matrix, and pixel value not to be 0 pixel show in dot matrix gets final product.
Therefore, the present invention converts the dot matrix demonstration to by the literal or the picture that will need arbitrarily to change, literal or picture that dot matrix is shown can arbitrarily be changed according to user's needs, thereby make the interface prompt language of electronic product arbitrarily change font style and font size, improve the hommization of electronic product according to client's needs.

Claims (8)

1, a kind of method that generates literal or graphic dot matrix is characterized in that comprising:
Step a, the literal or the picture that use the picture handling implement that needs are made dot matrix carry out editing and processing, save as the picture file of bitmap format;
Step b, extract message bit pattern, obtain the pixel value of each pixel from described picture file;
Step c, respectively with corresponding 1 pixel of 1 bit, making pixel value is that the bit of 0 pixel correspondence is 0, pixel value is not that the bit of 0 pixel correspondence is 1, uses the bit identical with number of pixels to control the generation dot matrix.
2, the method for generation literal according to claim 1 or graphic dot matrix is characterized in that step c comprises:
Step c1, equal the respective data element of the array of number of pixels for a data element number pixel value assignment of each pixel;
Step c2, with corresponding 1 bit of each data element, the value that makes data element is that the bit of 0 o'clock correspondence is 0, the value of data element is not that the bit of 0 o'clock correspondence is 1 to control the generation dot matrix.
3, the method for generation literal according to claim 1 or graphic dot matrix is characterized in that, described bitmap format is the BMP form of 8 position index looks.
4, the method for generation literal according to claim 1 or graphic dot matrix is characterized in that, ISO/IEC 8859 character set of ISO (International Standards Organization) taken from described literal.
5, a kind of device that generates literal or graphic dot matrix is characterized in that comprising:
The editing and processing unit, the literal or the picture that are used to use the picture handling implement that needs are made dot matrix carry out editing and processing, save as the picture file of bitmap format;
The bitmap extraction unit is used for extracting message bit pattern from described picture file, obtains the pixel value of each pixel;
Dot matrix generates control module, is used for respectively with corresponding 1 pixel of 1 bit, and making pixel value is that the bit of 0 pixel correspondence is 0, and pixel value is not that the bit of 0 pixel correspondence is 1, uses the bit identical with number of pixels to control the generation dot matrix.
6, the device of generation literal according to claim 5 or graphic dot matrix is characterized in that, described dot matrix generates control module and comprises:
Array generates and processing module, is used to generate the array that a data element number equals number of pixels, gives corresponding data element in this array with the pixel value difference assignment of each pixel;
The LED-lattice Control module is used for corresponding 1 bit of each data element, and the value that makes data element is that the bit of 0 o'clock correspondence is 0, and the value of data element is not that the bit of 0 o'clock correspondence is 1 to control the generation dot matrix.
7, the device of generation literal according to claim 5 or graphic dot matrix is characterized in that, described bitmap format is the BMP form of 8 position index looks.
8, the device of generation literal according to claim 5 or graphic dot matrix is characterized in that, ISO/IEC 8859 character set of ISO (International Standards Organization) taken from described literal.
CNA2008102179082A 2008-11-28 2008-11-28 Method and device for generating character or graphic dot matrix Pending CN101419715A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2008102179082A CN101419715A (en) 2008-11-28 2008-11-28 Method and device for generating character or graphic dot matrix

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2008102179082A CN101419715A (en) 2008-11-28 2008-11-28 Method and device for generating character or graphic dot matrix

Publications (1)

Publication Number Publication Date
CN101419715A true CN101419715A (en) 2009-04-29

Family

ID=40630493

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2008102179082A Pending CN101419715A (en) 2008-11-28 2008-11-28 Method and device for generating character or graphic dot matrix

Country Status (1)

Country Link
CN (1) CN101419715A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521850A (en) * 2011-11-04 2012-06-27 中国航空工业集团公司洛阳电光设备研究所 Character display method on basis of infrared image
CN103281582A (en) * 2013-05-02 2013-09-04 深圳创维数字技术股份有限公司 Method and device for processing image data point matrix
CN104363466A (en) * 2014-11-04 2015-02-18 无锡天脉聚源传媒科技有限公司 Image generating method and device
CN105430496A (en) * 2015-11-26 2016-03-23 西安诺瓦电子科技有限公司 Media program processing method, media program processing device and media program publishing method
CN106327552A (en) * 2016-08-31 2017-01-11 广州博冠信息科技有限公司 Text display method and device
CN106313907A (en) * 2016-08-16 2017-01-11 江苏科技大学 Thermal printer text printing method and thermal printer text printing system based on image conversion
CN106897253A (en) * 2017-01-06 2017-06-27 燕山大学 A kind of font composition method based on improvement expansion algorithm
CN109669650A (en) * 2017-10-16 2019-04-23 宁波柯力传感科技股份有限公司 The image display method of weighing dot matrix large screen
CN110781185A (en) * 2019-10-14 2020-02-11 上海辰锐信息科技公司 Text file content pixelation conversion and restoration method
CN110941944A (en) * 2019-09-30 2020-03-31 中国重型机械研究院股份公司 Method for converting characters with any character font into jet printing dot matrix
CN111768471A (en) * 2019-09-29 2020-10-13 北京京东尚科信息技术有限公司 Method and device for editing characters in picture
WO2021253922A1 (en) * 2020-06-19 2021-12-23 华为技术有限公司 Font switching method and electronic device

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521850A (en) * 2011-11-04 2012-06-27 中国航空工业集团公司洛阳电光设备研究所 Character display method on basis of infrared image
CN103281582A (en) * 2013-05-02 2013-09-04 深圳创维数字技术股份有限公司 Method and device for processing image data point matrix
CN104363466A (en) * 2014-11-04 2015-02-18 无锡天脉聚源传媒科技有限公司 Image generating method and device
CN105430496A (en) * 2015-11-26 2016-03-23 西安诺瓦电子科技有限公司 Media program processing method, media program processing device and media program publishing method
CN105430496B (en) * 2015-11-26 2018-08-17 西安诺瓦电子科技有限公司 Media program processing method and processing device and media program dissemination method
CN106313907A (en) * 2016-08-16 2017-01-11 江苏科技大学 Thermal printer text printing method and thermal printer text printing system based on image conversion
CN106327552B (en) * 2016-08-31 2019-09-06 广州博冠信息科技有限公司 A kind of character displaying method and device
CN106327552A (en) * 2016-08-31 2017-01-11 广州博冠信息科技有限公司 Text display method and device
CN106897253B (en) * 2017-01-06 2020-05-29 燕山大学 Font synthesis method based on improved expansion algorithm
CN106897253A (en) * 2017-01-06 2017-06-27 燕山大学 A kind of font composition method based on improvement expansion algorithm
CN109669650A (en) * 2017-10-16 2019-04-23 宁波柯力传感科技股份有限公司 The image display method of weighing dot matrix large screen
CN111768471A (en) * 2019-09-29 2020-10-13 北京京东尚科信息技术有限公司 Method and device for editing characters in picture
CN110941944A (en) * 2019-09-30 2020-03-31 中国重型机械研究院股份公司 Method for converting characters with any character font into jet printing dot matrix
CN110941944B (en) * 2019-09-30 2023-04-25 中国重型机械研究院股份公司 Method for converting character with arbitrary font into spray printing dot matrix
CN110781185A (en) * 2019-10-14 2020-02-11 上海辰锐信息科技公司 Text file content pixelation conversion and restoration method
CN110781185B (en) * 2019-10-14 2024-03-29 上海辰锐信息科技有限公司 Text file content pixelation conversion and restoration method
WO2021253922A1 (en) * 2020-06-19 2021-12-23 华为技术有限公司 Font switching method and electronic device
US12001777B2 (en) 2020-06-19 2024-06-04 Petal Cloud Technology Co., Ltd. Font switching method and electronic device

Similar Documents

Publication Publication Date Title
CN101419715A (en) Method and device for generating character or graphic dot matrix
CN104268615A (en) Encoding method and decoding method for color two-dimensional code
CN107392974A (en) Picture generation method and device and terminal equipment
CN103625189A (en) Relief realizing device and method
CN109636885B (en) Sequential frame animation production method and system for H5 page
CN104751094A (en) Article with visual code, visual code reading apparatus and information conveying method
CN102956036A (en) Image processing method and device
CN106446885A (en) Paper-based Braille recognition method and system
CN113313027A (en) Image processing method, image processing device, electronic equipment and storage medium
CN106447756A (en) Method and system for generating a user-customized computer-generated animation
CN113052759B (en) Scene complex text image editing method based on MASK and automatic encoder
CN103606141A (en) Method and system for realizing image display based on two-dimension code
CN102445984B (en) Voice drawing system and method
KR100534061B1 (en) Method for creating automatically cartoon animation image and image creation grapic engine system
CN116721419A (en) Auxiliary labeling method combined with SAM (self-contained imaging) of visual large model
CN103201786A (en) Reshaping interfaces using content-preserving warps
CN112183294A (en) Text elimination method and device, electronic equipment and storage medium
Zhang et al. Visual knowledge guided intelligent generation of Chinese seal carving
CN114861595B (en) Vector line transformation-based individual font generation method
CN115188349B (en) Method and system for editing user-defined content of mobile variable traffic information board
CN102119409A (en) Drawing device and drawing method
CN105808236B (en) HMI picture element composition design and code generation method
CN101707055B (en) Method and system for processing window images of digital television set-top box
CN103729866B (en) Water color style non-photorealistic rendering method and device
CN113360155A (en) Front-end interface background color matching method, device, equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Open date: 20090429