CN108875855B - Method, device, equipment and storage medium for printing vector diagram - Google Patents

Method, device, equipment and storage medium for printing vector diagram Download PDF

Info

Publication number
CN108875855B
CN108875855B CN201810754757.8A CN201810754757A CN108875855B CN 108875855 B CN108875855 B CN 108875855B CN 201810754757 A CN201810754757 A CN 201810754757A CN 108875855 B CN108875855 B CN 108875855B
Authority
CN
China
Prior art keywords
printing
vector
vector diagram
image
bitmap data
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.)
Active
Application number
CN201810754757.8A
Other languages
Chinese (zh)
Other versions
CN108875855A (en
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.)
Senda Shenzhen Technology Co Ltd
Original Assignee
Senda Shenzhen 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 Senda Shenzhen Technology Co Ltd filed Critical Senda Shenzhen Technology Co Ltd
Priority to CN201810754757.8A priority Critical patent/CN108875855B/en
Publication of CN108875855A publication Critical patent/CN108875855A/en
Application granted granted Critical
Publication of CN108875855B publication Critical patent/CN108875855B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K15/00Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers
    • G06K15/02Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers using printers
    • G06K15/18Conditioning data for presenting it to the physical printing elements
    • G06K15/1848Generation of the printable image

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

The invention discloses a method, a device, equipment and a storage medium for printing a vector diagram, wherein the method obtains coordinate data and printing parameters of the vector diagram, and rasterizes the coordinate data according to the printing parameters to obtain bitmap data corresponding to the vector diagram; and inputting the bitmap data into the printer to obtain a print image corresponding to the vector diagram, converting the vector diagram which cannot be identified into the bitmap data which can be identified in the printer, and directly outputting the print image to realize the vector diagram printing method.

Description

Method, device, equipment and storage medium for printing vector diagram
Technical Field
The present invention relates to the field of inkjet printing, and in particular, to a method, an apparatus, a device, and a storage medium for printing a vector diagram.
Background
Images are largely divided into vector images and bitmaps. Vector graphics, also known as object-oriented images or drawing images, are mathematically defined as a series of points connected by lines; the graphic elements in the vector file are called objects, and each object is an entity in one body and has the properties of color, shape, contour, size, screen position and the like. Bitmaps are composed of pixels (pixels), which are the smallest units of information of the bitmap, stored in an image grid, each Pixel having a specific position and color value; the information for each pixel in the image is recorded in order from left to right, top to bottom. The vector diagram can be arbitrarily scaled, the graph does not change, the bitmap can generate obvious blur once being amplified, the lines can also have the phenomena of sawtooth edges and the like, and the original edge topological structure of the image can be lost. Vector graphics can accurately describe graphics, but cannot be directly printed and identified on a printer with pixels as basic display units. However, the current accurate drawing for engineering drawings of machinery, buildings, decoration and the like is a vector diagram, so that the development of a method capable of printing the vector diagram is a problem to be solved.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a storage medium for printing a vector diagram, which are used for solving the problem that a printer in the prior art cannot directly identify the vector diagram and cannot directly print the vector diagram.
In a first aspect, an embodiment of the present invention provides a method for printing a vector diagram, where the method includes:
acquiring coordinate data of a vector diagram;
acquiring printing parameters, and rasterizing the coordinate data according to the printing parameters to obtain bitmap data corresponding to the vector diagram;
and outputting a printing image according to the bitmap data.
Preferably, the method further comprises:
acquiring the line width of the printed image;
when the line width of the printing image is less than a threshold value A, acquiring a set value of the line width,
copying an original line in the vector diagram for N times according to the set value, and placing the copied line on the upper side and the lower side of the original line to form a new vector diagram as a new vector diagram;
rasterizing the new vector diagram according to the printing parameters to obtain new bitmap data corresponding to the new vector diagram;
and outputting a new printing image according to the new bitmap data.
Preferably, the acquiring the coordinate data of the vector diagram further comprises:
acquiring the vector diagram file;
analyzing the vector diagram file to obtain the coordinate data;
and acquiring the data size of the coordinate data, and storing the coordinate data in a memory in a linked list mode according to the data size.
Preferably, the printing parameters include: size of the printed image, height of the image printed by the nozzle scanning once along the main scanning direction, and printing precision.
Preferably, the acquiring the printing parameters, and performing rasterization processing on the acquired coordinate data according to the printing parameters to obtain bitmap data corresponding to the vector diagram includes:
acquiring the size of the printed image and the height of the image printed by the nozzle in one scanning along the main scanning direction, and dividing the coordinate data into N parts of sub-coordinate data according to a preset rule according to the size of the printing medium and the height of the image, wherein N is an integer greater than or equal to 1;
and acquiring the printing precision, rasterizing N parts of the sub-coordinate data according to the printing precision to obtain N parts of sub-bitmap data, and combining the N parts of sub-bitmap data into a complete bitmap data.
Preferably, N of said sub-vector images are equal in size.
Preferably, the vector map is a file in plt format.
In a second aspect, an embodiment of the present invention provides an apparatus for printing a vector image, including:
the coordinate data acquisition module is used for acquiring coordinate data of the vector diagram;
the bitmap data acquisition module is used for acquiring printing parameters and rasterizing the coordinate data according to the printing parameters to obtain bitmap data corresponding to the vector diagram;
and the print image acquisition module is used for outputting a print image according to the bitmap data.
In a third aspect, an embodiment of the present invention provides an apparatus for printing a vector image, including: at least one processor, at least one memory, and computer program instructions stored in the memory, which when executed by the processor, implement the method of the first aspect of the embodiments described above.
In a fourth aspect, embodiments of the present invention provide a storage medium having stored thereon computer program instructions, which when executed by a processor, implement the method of the first aspect in the above embodiments.
In summary, in the method, the apparatus, the device, and the storage medium for printing the vector diagram provided by the embodiments of the present invention, coordinate data and printing parameters of the vector diagram are obtained, and the coordinate data is rasterized according to the printing parameters to obtain bitmap data corresponding to the vector diagram; and directly inputting the bitmap data into the printer to obtain a print image corresponding to the vector diagram, converting the vector diagram which cannot be identified into the bitmap data which can be identified in the printer, and directly outputting the print image to realize the vector diagram printing method.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the embodiments of the present invention will be briefly described below, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a method of printing a vector diagram according to a first embodiment of the present invention.
Fig. 2 is a flowchart of a method of printing a vector diagram according to a second embodiment of the present invention.
Fig. 3 is a flowchart of a method of printing a vector diagram according to a third embodiment of the present invention.
Fig. 4 is a flowchart of a method of printing a vector diagram according to a fourth embodiment of the present invention.
Fig. 5 is a plt vector diagram of the method of printing a vector diagram of the embodiment of the present invention.
Fig. 6 is a vector image segmentation analysis diagram of the method of printing a vector image according to the first embodiment of the present invention.
Fig. 7 is a vector image segmentation analysis diagram of a method of printing a vector image according to a second embodiment of the present invention.
Fig. 8 is a print data flow diagram of a method of printing a vector diagram according to an embodiment of the present invention.
Fig. 9 is a schematic structural diagram of an apparatus for printing a vector image according to an embodiment of the present invention.
Fig. 10 is a schematic structural diagram of an apparatus for printing a vector image according to an embodiment of the present invention.
Detailed Description
Features and exemplary embodiments of various aspects of the present invention will be described in detail below, and in order to make objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not to be construed as limiting the invention. It will be apparent to one skilled in the art that the present invention may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present invention by illustrating examples of the present invention.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Referring to fig. 1, an embodiment of the present invention provides a method for printing a vector diagram, where coordinate data and printing parameters of a vector diagram are obtained, and the coordinate data is rasterized according to the printing parameters to obtain bitmap data corresponding to the vector diagram; and inputting the bitmap data into the printer to obtain a print image corresponding to the vector diagram, converting the vector diagram which cannot be identified into the bitmap data which can be identified in the printer, and directly outputting the print image to realize the vector diagram printing method. The method of printing a vector image comprises the steps of:
s1, acquiring coordinate data of the vector diagram;
s2, acquiring printing parameters, and rasterizing the coordinate data according to the printing parameters to obtain bitmap data corresponding to the vector diagram;
and S3, outputting a printing image according to the bitmap data.
Referring to fig. 2, before the step S1, the method further includes:
s01, acquiring the vector diagram file;
s02, analyzing the vector diagram file to obtain the coordinate data;
s03, acquiring the data size of the coordinate data, and storing the coordinate data in a memory in a linked list mode according to the data size.
Preferably, the printing parameters include: size of the printed image, height of the image printed by the nozzle scanning once along the main scanning direction, and printing precision.
Preferably, referring to fig. 3, the step S2 specifically includes:
s21, acquiring the size of the printed image and the height of the image printed by the nozzle in one scanning along the main scanning direction, and dividing the coordinate data into N parts of sub-coordinate data according to a preset rule according to the size of the printed image and the height of the image, wherein N is an integer greater than or equal to 1;
s22, obtaining the printing precision, rasterizing N parts of the sub-coordinate data according to the printing precision to obtain N parts of sub-bitmap data, and combining the N parts of sub-bitmap data into a complete bitmap data.
Preferably, N of said sub-vector images are equal in size.
Preferably, referring to fig. 4, the method further comprises:
s4, acquiring the line width of the printing image;
s5, when the line width is smaller than a threshold value A, obtaining a set value of the line width, copying the original line in the vector diagram for N times according to the set value, and placing the copied line on the upper side and the lower side of the original line to form a new vector diagram as a new vector diagram;
s6, rasterizing the new vector diagram according to the printing parameters to obtain new bitmap data corresponding to the new vector diagram;
and S7, outputting a new printing image according to the new bitmap data.
Preferably, the vector map is a file in plt format.
Specifically, the vector diagram file to be printed is firstly acquired, the vector diagram file is analyzed to acquire coordinate data in the vector diagram file, then the data size of the coordinate data is acquired, and the coordinate data is stored in a designated memory of the PC in a linked list form according to the data size. Therefore, when the vector diagram file needs to be printed, the coordinate data of the vector diagram is directly extracted from the appointed memory of the PC, and analysis is not needed to be carried out during printing each time, so that the analysis time is saved, and the efficiency is improved. Referring to fig. 5, in the present embodiment, the vector diagram is a two-dimensional vector diagram of Plt format, which mainly consists of curves.
And secondly, acquiring printing parameters, and rasterizing the acquired coordinate data according to the printing parameters to obtain bitmap data corresponding to the vector diagram. Wherein the printing parameters include: size of the printed image, height of the image printed by the nozzle scanning once along the main scanning direction, and printing precision. In this embodiment, the size of the printed image and the printing accuracy are set according to product requirements, and the height of the image printed by the nozzle scanning once in the main scanning direction is determined by the type of the nozzle installed in the printer. Referring to fig. 6, in this embodiment, if the width of the print image is 1 m and the length is 1 m, and the height of the image printed by the head scanning once in the main scanning direction is 0.2 m, the height of the sub-vector diagram is set to be equal to the height of the image printed by the head scanning once in the main scanning direction, and the width of the sub-vector diagram is equal to 1 m, so that the vector diagram is divided into 1 ÷ 0.5 ÷ 5 sub-vector diagrams. The printing precision requirement is 360 × 720 pixels/inch, N parts of the sub-vector graphics are blocked and rasterized according to the printing precision to obtain N parts of the sub-bitmap data, the N parts of the sub-bitmap data are combined into one complete bitmap data, in the embodiment, one sub-vector graphic is rasterized every time, a sub-vector graphic A, a sub-vector graphic B, a sub-vector graphic C, a sub-vector graphic D and a sub-vector graphic E are rasterized in sequence, and finally the vector graphics are rasterized into one bitmap data. Wherein the printing parameters further comprise: a rotation angle, a scaling ratio, etc., which are set according to the actual printing needs.
Preferably, the N said sub-vector images are equal in size; referring to fig. 7, the vector diagram is divided into 16 equal-sized sub-vector diagrams on average, and is rasterized first with respect to the sub-vector diagrams 1 to 4, then with respect to the sub-vector diagrams 5 to 8, then with respect to the sub-vector diagrams 9 to 12, and finally with respect to the sub-vector diagrams 13 to 16.
Referring to fig. 8, the process of outputting a print image according to the bitmap data is as follows:
s31, storing the bitmap data on the PC host, and controlling the PC host to send a connection request to a main control board of a printer;
s32, when the host receives the connection response sent by the main control board, the host sends sub-bitmap data corresponding to a single-frame image in the bitmap data to the main control board, and records the sending start time when the host starts sending the sub-bitmap data; the sub-bitmap data at least comprises 1pass data (namely data sprayed by a printing nozzle scanning once on a printing medium) and is used for ensuring the continuity of the data.
S33, obtaining the preset sending time of the sub bitmap data sent by the host, waiting for the receiving response sent back by the main control board, if the receiving response is not received after the preset sending time, repeating the step S31, and if the receiving response is received in the sending time, carrying out the next step;
s34, judging the content information of the receiving response, if the content information is the receiving failure, repeating the step S31, if the content information is the receiving success, carrying out the next step;
s35, the host extracts the next sub-bitmap data and repeats the step S31.
And obtaining the printing image after all the sub bitmap data are printed. Obtaining a line width of the printed image, in this embodiment, scanning the printed image by a camera to obtain the line width, obtaining a set value of the line width when the line width is smaller than a threshold a, copying an original line in a vector diagram for N times according to the set value, placing the copied line on the upper side and the lower side of the original line to form a new vector diagram serving as a new vector diagram, and rasterizing the new vector diagram with the adjusted line width according to the printing parameters to obtain new bitmap data corresponding to the new vector diagram; and outputting a new printing image according to the new bitmap data. In this embodiment, the line width of the vector diagram is 1, and when the line width of the printed image is too thin, the width of the line can be increased by adding a plurality of identical lines on the upper side and the lower side of the original line respectively, so that the line of the printed image is clear.
Referring to fig. 9, an embodiment of the present invention provides an apparatus for printing a vector image, including:
a coordinate data obtaining module 10, configured to obtain coordinate data of a vector diagram;
a bitmap data obtaining module 20, configured to obtain printing parameters, and perform rasterization processing on the coordinate data according to the printing parameters to obtain bitmap data corresponding to the vector diagram;
and a print image obtaining module 30, configured to output a print image according to the bitmap data.
Preferably, the apparatus for printing a vector image further comprises:
the line width acquisition module is used for acquiring the line width of the printed image;
the adjustment coordinate data acquisition module is used for acquiring a set value of the line width when the line width is smaller than a threshold A, copying an original line in the vector diagram for N times according to the set value, and placing the copied line on the upper side and the lower side of the original line to form a new vector diagram as a new vector diagram;
an adjustment bitmap data acquisition module, configured to perform rasterization processing on the new vector diagram according to the printing parameters to obtain new bitmap data corresponding to the new vector diagram;
and the printing image acquisition module is used for outputting a new printing image according to the new bitmap data.
Preferably, the apparatus for printing a vector image further comprises:
the vector diagram acquisition module is used for acquiring the vector diagram file;
the analysis module is used for analyzing the vector diagram file to obtain the coordinate data;
and the storage module is used for acquiring the data size of the coordinate data and storing the coordinate data in a memory in a linked list mode according to the data size.
Preferably, the printing parameters include: size of print medium, print accuracy of the printed image.
Preferably, the bitmap data obtaining module 20 further includes:
the image segmentation unit is used for acquiring the size of the printed image and the height of the image printed by the nozzle in one scanning along the main scanning direction, and dividing the coordinate data into N parts of sub-coordinate data according to a preset rule according to the size of the printing medium and the height of the image, wherein N is an integer greater than or equal to 1;
and the bitmap data acquisition unit is used for acquiring the printing precision, rasterizing N parts of the sub-coordinate data according to the printing precision to obtain N parts of sub-bitmap data, and combining the N parts of sub-bitmap data into one complete bitmap data.
Preferably, the size of N of said sub-vector images is the same.
Preferably, the vector map is a file in plt format.
In addition, the method of printing a vector image of the embodiment of the present invention described in conjunction with fig. 1 may be implemented by an apparatus that prints a vector image. Fig. 10 is a schematic diagram showing a hardware configuration of an apparatus for printing a vector image according to an embodiment of the present invention.
An apparatus for printing a vector image may include a processor 401 and a memory 402 having stored thereon computer program instructions.
Specifically, the processor 401 may include a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or may be configured as one or more Integrated circuits implementing embodiments of the present invention.
Memory 402 may include mass storage for data or instructions. By way of example, and not limitation, memory 402 may include a Hard Disk Drive (HDD), floppy Disk Drive, flash memory, optical Disk, magneto-optical Disk, tape, or Universal Serial Bus (USB) Drive or a combination of two or more of these. Memory 402 may include removable or non-removable (or fixed) media, where appropriate. The memory 402 may be internal or external to the data processing apparatus, where appropriate. In a particular embodiment, the memory 402 is a non-volatile solid-state memory. In a particular embodiment, the memory 402 includes Read Only Memory (ROM). Where appropriate, the ROM may be mask-programmed ROM, Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), electrically rewritable ROM (EAROM), or flash memory or a combination of two or more of these.
The processor 401 implements any of the above-described embodiments of the method of printing vector graphics by reading and executing computer program instructions stored in the memory 402.
In one example, the device to print vector graphics may also include a communication interface 403 and a bus 410. As shown in fig. 10, the processor 401, the memory 402, and the communication interface 403 are connected via a bus 410 to complete communication therebetween.
The communication interface 403 is mainly used for implementing communication between modules, apparatuses, units and/or devices in the embodiments of the present invention.
Bus 410 comprises hardware, software, or both that couple the components of the device that prints the vector image to each other. By way of example, and not limitation, a bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hypertransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an infiniband interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a video electronics standards association local (VLB) bus, or other suitable bus or a combination of two or more of these. Bus 410 may include one or more buses, where appropriate. Although specific buses have been described and shown in the embodiments of the invention, any suitable buses or interconnects are contemplated by the invention.
In addition, in combination with the method of printing a vector image in the above embodiments, embodiments of the present invention may be implemented by providing a computer-readable storage medium. The computer readable storage medium having stored thereon computer program instructions; the computer program instructions, when executed by a processor, implement any of the methods of printing vector graphics in the above embodiments.
In summary, the method, the apparatus, the device, and the storage medium for printing a vector diagram according to the embodiments of the present invention obtain coordinate data and a printing parameter of a vector diagram, and perform rasterization processing on the obtained coordinate data according to the printing parameter to obtain bitmap data corresponding to the vector diagram; and inputting the bitmap data into the printer to obtain a printing image corresponding to the vector diagram, thereby realizing the method for printing the vector diagram.
It is to be understood that the invention is not limited to the specific arrangements and instrumentality described above and shown in the drawings. A detailed description of known methods is omitted herein for the sake of brevity. In the above embodiments, several specific steps are described and shown as examples. However, the method processes of the present invention are not limited to the specific steps described and illustrated, and those skilled in the art can make various changes, modifications and additions or change the order between the steps after comprehending the spirit of the present invention.
The functional blocks shown in the above-described structural block diagrams may be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic circuit, an Application Specific Integrated Circuit (ASIC), suitable firmware, plug-in, function card, or the like. When implemented in software, the elements of the invention are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine-readable medium or transmitted by a data signal carried in a carrier wave over a transmission medium or a communication link. A "machine-readable medium" may include any medium that can store or transfer information. Examples of a machine-readable medium include electronic circuits, semiconductor memory devices, ROM, flash memory, Erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, Radio Frequency (RF) links, and so forth. The code segments may be downloaded via computer networks such as the internet, intranet, etc.
It should also be noted that the exemplary embodiments mentioned in this patent describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above-described steps, that is, the steps may be performed in the order mentioned in the embodiments, may be performed in an order different from the order in the embodiments, or may be performed simultaneously.
As described above, only the specific embodiments of the present invention are provided, and it can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system, the module and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. It should be understood that the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the present invention, and these modifications or substitutions should be covered within the scope of the present invention.

Claims (9)

1. A method of printing a vector graphics, said method comprising:
acquiring coordinate data of a vector diagram;
acquiring printing parameters, and rasterizing the coordinate data according to the printing parameters to obtain bitmap data corresponding to the vector diagram;
outputting a printing image according to the bitmap data;
the method further comprises the following steps:
acquiring the line width of the printed image;
when the line width of the printing image is less than a threshold value A, acquiring a set value of the line width,
copying an original line in the vector diagram for N times according to the set value, and placing the copied line on the upper side and the lower side of the original line to form a new vector diagram as a new vector diagram;
rasterizing the new vector diagram according to the printing parameters to obtain new bitmap data corresponding to the new vector diagram;
and outputting a new printing image according to the new bitmap data.
2. The method of printing a vector image according to claim 1 wherein said obtaining coordinate data of a vector image further comprises:
acquiring a vector graph file;
analyzing the vector diagram file to obtain the coordinate data;
and acquiring the data size of the coordinate data, and storing the coordinate data in a memory in a linked list mode according to the data size.
3. The method of printing a vector graphics of claim 1 wherein said printing parameters comprise: size of the printed image, height of the image printed by the nozzle scanning once along the main scanning direction, and printing precision.
4. The method of printing a vector graphics according to claim 3, wherein said obtaining print parameters, rasterizing said coordinate data according to said print parameters to obtain bitmap data corresponding to said vector graphics comprises:
acquiring the size of the printed image and the height of the image printed by the nozzle in one scanning along the main scanning direction, and dividing the vector diagram into N sub-vector diagrams according to the size of the printed image and the height of the image, wherein N is an integer greater than or equal to 1;
and acquiring the printing precision, rasterizing N parts of the sub-vector diagrams according to the printing precision to obtain N parts of sub-bitmap data, and combining the N parts of sub-bitmap data into a complete bitmap data.
5. The method of printing vector graphics of claim 4 characterized in that N of said sub-vector graphics are of equal size.
6. The method of printing vector graphics according to claim 1 characterized in that said vector graphics is a file in plt format.
7. An apparatus for printing a vector image, the apparatus comprising:
the coordinate data acquisition module is used for acquiring coordinate data of the vector diagram;
the bitmap data acquisition module is used for acquiring printing parameters and rasterizing the coordinate data according to the printing parameters to obtain bitmap data corresponding to the vector diagram;
the printing image acquisition module is used for outputting a printing image according to the bitmap data; the line width acquisition module is used for acquiring the line width of the printed image;
the adjustment coordinate data acquisition module is used for acquiring a set value of the line width when the line width is smaller than a threshold A, copying an original line in the vector diagram for N times according to the set value, and placing the copied line on the upper side and the lower side of the original line to form a new vector diagram as a new vector diagram;
an adjustment bitmap data acquisition module, configured to perform rasterization processing on the new vector diagram according to the printing parameters to obtain new bitmap data corresponding to the new vector diagram;
and the printing image acquisition module is used for outputting a new printing image according to the new bitmap data.
8. An apparatus for printing a vector image, comprising: at least one processor, at least one memory, and computer program instructions stored in the memory that, when executed by the processor, implement the method of any of claims 1-6.
9. A storage medium having computer program instructions stored thereon, which when executed by a processor implement the method of any one of claims 1-6.
CN201810754757.8A 2018-07-11 2018-07-11 Method, device, equipment and storage medium for printing vector diagram Active CN108875855B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810754757.8A CN108875855B (en) 2018-07-11 2018-07-11 Method, device, equipment and storage medium for printing vector diagram

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810754757.8A CN108875855B (en) 2018-07-11 2018-07-11 Method, device, equipment and storage medium for printing vector diagram

Publications (2)

Publication Number Publication Date
CN108875855A CN108875855A (en) 2018-11-23
CN108875855B true CN108875855B (en) 2021-09-17

Family

ID=64300548

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810754757.8A Active CN108875855B (en) 2018-07-11 2018-07-11 Method, device, equipment and storage medium for printing vector diagram

Country Status (1)

Country Link
CN (1) CN108875855B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109683833B (en) * 2018-12-19 2022-04-15 森大(深圳)技术有限公司 Method, system, device and storage medium for enhancing image to be printed
CN109710264B (en) * 2018-12-19 2022-06-14 森大(深圳)技术有限公司 Gerber file conversion method, system, device and storage medium
CN109656492B (en) * 2018-12-19 2023-04-28 森大(深圳)技术有限公司 Print data processing method, system, device and storage medium
CN110281664B (en) * 2019-07-11 2020-12-29 森大(深圳)技术有限公司 Printing medium positioning printing method, device, equipment, medium and flat-panel printer
CN110861419B (en) * 2020-01-20 2020-04-28 中体彩印务技术有限公司 Automatic printing die cutting tension control system and control method thereof
CN112486434A (en) * 2020-12-15 2021-03-12 航天信息股份有限公司 Certificate vector printing method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100524079B1 (en) * 2003-12-18 2005-10-26 삼성전자주식회사 Rendering processing algorithm
CN104240245B (en) * 2014-09-10 2017-06-27 中国科学院光电技术研究所 A kind of method that vector graphics is changed into bitmap and carries out adaptivenon-uniform sampling
WO2016066193A1 (en) * 2014-10-29 2016-05-06 Hewlett-Packard Development Company, L. P. Converting at least a portion of a 3-d object into a format suitable for printing
JP2018074497A (en) * 2016-11-02 2018-05-10 キヤノン株式会社 Image processing device, image processing method and program

Also Published As

Publication number Publication date
CN108875855A (en) 2018-11-23

Similar Documents

Publication Publication Date Title
CN108875855B (en) Method, device, equipment and storage medium for printing vector diagram
CN109062521B (en) Print data processing method and device, computer device and storage medium
JP2021093161A (en) Computer vision system for digitization of industrial equipment gauge and alarm
CN109669647B (en) Print image data processing method, apparatus, device and storage medium
CN109598271B (en) Character segmentation method and device
US9159143B2 (en) Apparatus and method for generating character collage message
CN114494017B (en) Method, device, equipment and medium for adjusting DPI (deep packet inspection) image according to scale
US20180144497A1 (en) Information processing apparatus, method, and program
CN112560684A (en) Lane line detection method, lane line detection device, electronic apparatus, storage medium, and vehicle
CN108965646B (en) Image processing apparatus, image processing method, and program
CN112308063B (en) Character recognition device, translation pen, image translation method, and image translation device
JP2015197851A (en) Image processor, program for image processing and information management system
CN116912328A (en) Calibration method and device of inverse perspective transformation matrix
CN115100663A (en) Method and device for estimating distribution situation of character height in document image
CN113850100A (en) Method and device for correcting two-dimensional code
CN112949423A (en) Object recognition method, object recognition device, and robot
CN111222468A (en) People stream detection method and system based on deep learning
CN110969041A (en) Method and device for identifying graphic code
CN116665262A (en) Image local cloud printing method, device, cloud server and system
CN112991179B (en) Method, apparatus, device and storage medium for outputting information
CN116612476B (en) Chip character detection method and device, computer equipment and storage medium
US11920912B2 (en) Automatic berthing image ranging system for vessels and operation method thereof
CN117993407A (en) Method, device, equipment and medium for identifying specific object in blurred image
CN117754987A (en) White oil block stripe improvement method, device and medium based on jet printing of jet printer
JP3275475B2 (en) Character string recognition device with known character sequence

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant