Movatterモバイル変換


[0]ホーム

URL:


CN109272448A - Draw the processing method of big pixel picture - Google Patents

Draw the processing method of big pixel picture
Download PDF

Info

Publication number
CN109272448A
CN109272448ACN201810945832.9ACN201810945832ACN109272448ACN 109272448 ACN109272448 ACN 109272448ACN 201810945832 ACN201810945832 ACN 201810945832ACN 109272448 ACN109272448 ACN 109272448A
Authority
CN
China
Prior art keywords
picture
bmp
file
processing method
bitmap
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
CN201810945832.9A
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.)
Kocel Intelligent Foundry Industry Innovation Center Co Ltd
Original Assignee
Kocel Intelligent Foundry Industry Innovation Center 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 Kocel Intelligent Foundry Industry Innovation Center Co LtdfiledCriticalKocel Intelligent Foundry Industry Innovation Center Co Ltd
Priority to CN201810945832.9ApriorityCriticalpatent/CN109272448A/en
Publication of CN109272448ApublicationCriticalpatent/CN109272448A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

The present invention relates to a kind of processing methods for drawing big pixel picture.It the treating method comprises following steps: being several painting canvas that can completely draw picture by picture segmentation according to the size for drawing picture;Calculate the offset distance of the coordinate origin of picture and practical big figure coordinate origin after dividing;Local image where successively drawing each painting canvas, and BMP formatted file is generated respectively;Load the data of each BMP file, and by each final picture file format of BMP file format Integration obtaining;The bitmap data of each BMP file is intercepted, and splices each section bitmap data;Default picture head and spliced bitmap data are exported, and are saved in final BMP file, completes picture mosaic output.The processing method that the big pixel picture is drawn can overcome the problems, such as that big pixel picture is difficult to disposably draw complete, and the simple, convenient realization of this kind for the treatment of method.

Description

Draw the processing method of big pixel picture
Technical field
The present invention relates to software image process fields, more particularly to a kind of processing method for drawing big pixel picture.
Background technique
Picture is drawn using common drawing tools library in program, often has certain limitation to the pixel size of picture,When the pixel size of picture limits range beyond it, program can only draw out part, cannot draw out complete picture, thusAs the technical bottleneck for drawing super-pixel picture.For example, drawing 61250* using the drawing tools library that C# and C++ is providedTwo chromatic graphs of BMP format of 17710 pixels, can only draw out the Local map of 61284*8778 pixel or 30642*17555 pixelPiece.In detail refering to attached drawing, wherein Fig. 1 is that target draws picture, and Fig. 2 and Fig. 3 are the imperfect pictures of practical drafting.
Summary of the invention
Based on this, it is necessary to exist for the mapping software in the prior art big pixel picture of processing and be difficult to disposably drawComplete problem provides a kind of simple, convenient processing method that can be realized big pixel picture and draw.
A kind of processing method for drawing big pixel picture, the treating method comprises following steps: according to drafting picturePicture segmentation is several painting canvas that can completely draw picture by size;Calculate the coordinate origin of picture and practical big figure after dividingThe offset distance of coordinate origin;Local image where successively drawing each painting canvas, and BMP formatted file is generated respectively;Load each instituteState the data of BMP file, and by each final picture file format of BMP file format Integration obtaining;Intercept each BMP fileBitmap data, and splice each section bitmap data;Default picture head and spliced bitmap data are exported, and are saved in mostWhole BMP file completes picture mosaic output.
It is divided into several pictures that program can completely be drawn respectively for picture is drawn along short transverse in one of the embodiments,Cloth.
The offset distance is obtained using coordinate origin offset method in one of the embodiments,.
Update is further comprised the steps of: before the step of splicing each section bitmap data most in one of the embodiments,The actual height of whole picture file format.
Splice the bitmap data of 23-26 Bitmap Height in one of the embodiments, and judges whether bitmap data is positiveNumber, if then data content to be merged to last figure inverted order;Otherwise by each picture by first figure sequence by data contentMerge.
In one of the embodiments, the BMP file include BMP file header, message bit pattern head, palette information andBitmap data.
The length of the BMP file header is 14 bytes in one of the embodiments,.
The BMP file header includes BMP file type, file size and bitmap starting in one of the embodiments,Location information.
The length of institute's bitmap information head is 40 bytes in one of the embodiments, for illustrating that the size of bitmap is believedBreath.
In one of the embodiments, in the step of bitmap data of each BMP file of the interception the following steps are included:Each bitmap data is intercepted according to the offset that 11-14 byte parses.
The processing method of the above-mentioned big pixel picture of drafting, can be complete by basic algorithm by resolving into big BMP pictureIn each section after disassembly, by it in the practical big upper corresponding position of figure, it is right to draw out the decomposition part for the multi-section of drafting pointThe specific image answered, then output is saved into BMP file, is handled finally by file data, and parsing merges the BMP of all decompositionFile simultaneously obtains final big pixel picture.By above-mentioned jigsaw method be able to solve using common drawing practice cannot draw it is largerThe problem of pixel picture, and the processing method is understanding and code is realized upper relatively simple, conveniently, there is certain use value.
Detailed description of the invention
Fig. 1 is that the target of the embodiment in background technique draws picture.
Fig. 2 is the imperfect picture of practical drafting of the embodiment in background technique.
Fig. 3 is another practical imperfect picture of drafting of the embodiment in background technique.
Fig. 4 is the flow chart of the processing method of the big pixel picture of drafting of an embodiment.
Specific embodiment
To facilitate the understanding of the present invention, a more comprehensive description of the invention is given in the following sections with reference to the relevant attached drawings.In attached drawingGive better embodiment of the invention.But the invention can be realized in many different forms, however it is not limited to hereinDescribed embodiment.On the contrary, the purpose of providing these embodiments is that making to understand more the disclosureAdd thorough and comprehensive.
Unless otherwise defined, all technical and scientific terms used herein and belong to technical field of the inventionThe normally understood meaning of technical staff is identical.Term as used herein in the specification of the present invention is intended merely to description toolThe purpose of the embodiment of body, it is not intended that in the limitation present invention.Term " and or " used herein includes one or moreAny and all combinations of relevant listed item.
In one embodiment, a kind of processing method for drawing big pixel picture, the treating method comprises following steps:It is several painting canvas that can completely draw picture by picture segmentation according to the size for drawing picture;Calculate the coordinate of picture after dividingThe offset distance of origin and practical big figure coordinate origin;Local image where successively drawing each painting canvas, and BMP format is generated respectivelyFile;Load the data of each BMP file, and by each final picture file format of BMP file format Integration obtaining;It cutsThe bitmap data of each BMP file is taken, and each bitmap number is intercepted according to the offset that 11-14 byte parses in bitmap dataAccording to;The actual height of final picture file format is updated, and splices each section bitmap data;By default picture head and splicedBitmap data output, and it is saved in final BMP file;The intermediate each fractionation picture exported is deleted, picture mosaic output is completed.
The processing method of the above-mentioned big pixel picture of drafting, can be complete by basic algorithm by resolving into big BMP pictureIn each section after disassembly, by it in the practical big upper corresponding position of figure, it is right to draw out the decomposition part for the multi-section of drafting pointThe specific image answered, then output is saved into BMP file, is handled finally by file data, and parsing merges the BMP of all decompositionFile simultaneously obtains final big pixel picture.By above-mentioned jigsaw method be able to solve using common drawing practice cannot draw it is largerThe problem of pixel picture, and the processing method is understanding and code is realized upper relatively simple, conveniently, there is certain use value.
The processing method for drawing big pixel picture is illustrated combined with specific embodiments below, to further understandThe inventive concept of the processing method for drawing big pixel picture.
Referring to Fig. 1, a kind of processing method for drawing big pixel picture, the treating method comprises following steps:
S101: being several painting canvas that can completely draw picture by picture segmentation according to the size for drawing picture;
In one embodiment, it is divided into several painting canvas that program can completely be drawn respectively for picture is drawn along short transverse.I.e.By the way that big pixel picture is divided into several fractions along its short transverse (Y-direction), each section can be completely plotted in oneIt is in a painting canvas, i.e., final combined and spliced at a complete big pixel picture by several painting canvas.
S102: the coordinate origin of picture and the offset distance of practical big figure coordinate origin after segmentation are calculated;
In one embodiment, the offset distance is obtained using coordinate origin offset method.The coordinate of picture after dividingOrigin and the offset distance of practical big figure coordinate origin are measured using coordinate origin offset method.The image saved is exported so justIt is the partitioning portion of relatively practical big figure.
S103: successively drawing local image where each painting canvas, and generates BMP formatted file respectively;
It is respectively corresponded on each painting canvas and draws each local image, then respectively corresponded and generate BMP formatted file.SpecificallyGround, in one embodiment, the BMP file include BMP file header, message bit pattern head, palette information and bitmap numberAccording to.Specifically, the length of the BMP file header is 14 bytes.In one embodiment, the BMP file header includes BMP textPart type, file size and bitmap start position information.In one embodiment, the length of institute's bitmap information head is 40Byte, for illustrating the dimension information of bitmap.In one embodiment, the palette information, for illustrating in bitmapColor.In one embodiment, institute's bit-map data, for recording each pixel value of bitmap.
S104: the data of each BMP file of load, and each final picture of BMP file format Integration obtaining is literaryPart format;
It is wherein described below for integrating the significant data in BMP format procedure: 1-2: image file head (number hereWhat word represented is byte, similarly hereinafter), 0x4d42=" BM ", expression is the BMP format that Windows is supported;3-6: entire file is bigIt is small;7-8: retaining, it is necessary to be set as 0;9-10: retaining, it is necessary to be set as 0;11-14: to bitmap number since fileOffset (14+40+4*(2^biBitCount) between);15-18: message bit pattern head length;19-22: bitmap is wideDegree, as unit of pixel;23-26: Bitmap Height, as unit of pixel.The non-analytic modification of remainder data is not done in detail hereinExplanation.
S105: the bitmap data of each BMP file is intercepted, and splices each section bitmap data;
In one embodiment, each bitmap data is intercepted according to the offset that 11-14 byte parses.I.e. to each describedThe offset that 11-14 byte parses in the bitmap data of BMP file, to obtain the data of each bitmap.
In one embodiment, it is final that update is further comprised the steps of: before the step of splicing each section bitmap dataThe actual height of picture file format.Specifically, because the corresponding bitmap developed width of horizontal partition 19-22 byte does not need to repairChange, therefore the corresponding height of 23-26 byte is updated to each segmentation Bitmap Height summation.
It should be noted that being updated when splicing each section bitmap data only for the corresponding height of 23-26 byteAt each segmentation Bitmap Height summation.In one embodiment, splice the bitmap data of 23-26 Bitmap Height, and judge bitmapWhether data are positive number, if then data content to be merged to last figure inverted order;Otherwise each picture is suitable by first figureSequence merges data content.That is 23-26 Bitmap Height seems to swing to if it is positive number explanatory diagram, if the value is a negativeExplanatory diagram seems positive.It needs to merge from last figure inverted order by data content if swinging to;If it is justTo then needing to be merged together from first sequence by data content.
S106: default picture head and spliced bitmap data being exported, and are saved in final BMP file, complete to spellFigure output.
In one embodiment, it is further comprised the steps of: before the step of completion picture mosaic output and deletes intermediate outputIt is each to split picture.That is, fractionation picture in the process is deleted when exporting final picture mosaic.It can avoid splitting picture in this wayInfluence final picture mosaic output effect.
The processing method of the above-mentioned big pixel picture of drafting, can be complete by basic algorithm by resolving into big BMP pictureIn each section after disassembly, by it in the practical big upper corresponding position of figure, it is right to draw out the decomposition part for the multi-section of drafting pointThe specific image answered, then output is saved into BMP file, is handled finally by file data, and parsing merges the BMP of all decompositionFile simultaneously obtains final big pixel picture.By above-mentioned jigsaw method be able to solve using common drawing practice cannot draw it is largerThe problem of pixel picture, and the processing method is understanding and code is realized upper relatively simple, conveniently, there is certain use value.
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned realityIt applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not depositedIn contradiction, all should be considered as described in this specification.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneouslyIt cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the artIt says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection of the inventionRange.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.

Claims (10)

CN201810945832.9A2018-08-212018-08-21Draw the processing method of big pixel picturePendingCN109272448A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201810945832.9ACN109272448A (en)2018-08-212018-08-21Draw the processing method of big pixel picture

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201810945832.9ACN109272448A (en)2018-08-212018-08-21Draw the processing method of big pixel picture

Publications (1)

Publication NumberPublication Date
CN109272448Atrue CN109272448A (en)2019-01-25

Family

ID=65153795

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201810945832.9APendingCN109272448A (en)2018-08-212018-08-21Draw the processing method of big pixel picture

Country Status (1)

CountryLink
CN (1)CN109272448A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN110209457A (en)*2019-06-042019-09-06深圳云里物里科技股份有限公司Applied to the font rendering methods of electronics price tag, system and electronic equipment and medium
CN110675465A (en)*2019-09-232020-01-10京东数字科技控股有限公司Method and apparatus for generating image
CN111723230A (en)*2019-03-192020-09-29珠海金山办公软件有限公司 A method, device, electronic device and storage medium for image stitching
CN112306339A (en)*2020-09-012021-02-02北京沃东天骏信息技术有限公司Method and apparatus for displaying image
CN112347219A (en)*2020-11-132021-02-09北京恒华伟业科技股份有限公司Vector map material library generation method, vector map generation system and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP2012108825A (en)*2010-11-192012-06-07Canon IncInformation processing device, information processing method and program
CN102651138A (en)*2012-04-102012-08-29西安理工大学JPEG picture mosaicing-based oversize picture synthesis method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP2012108825A (en)*2010-11-192012-06-07Canon IncInformation processing device, information processing method and program
CN102651138A (en)*2012-04-102012-08-29西安理工大学JPEG picture mosaicing-based oversize picture synthesis method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
软件自由职业者: "Qt超大像素图绘制技术方案", 《HTTPS://ZHUANLAN.ZHIHU.COM/P/37864481》*

Cited By (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN111723230A (en)*2019-03-192020-09-29珠海金山办公软件有限公司 A method, device, electronic device and storage medium for image stitching
CN110209457A (en)*2019-06-042019-09-06深圳云里物里科技股份有限公司Applied to the font rendering methods of electronics price tag, system and electronic equipment and medium
CN110675465A (en)*2019-09-232020-01-10京东数字科技控股有限公司Method and apparatus for generating image
CN110675465B (en)*2019-09-232024-02-06京东科技控股股份有限公司Method and apparatus for generating image
CN112306339A (en)*2020-09-012021-02-02北京沃东天骏信息技术有限公司Method and apparatus for displaying image
CN112347219A (en)*2020-11-132021-02-09北京恒华伟业科技股份有限公司Vector map material library generation method, vector map generation system and electronic equipment
CN112347219B (en)*2020-11-132023-10-17北京恒华伟业科技股份有限公司Vector map material library generation method, vector map generation system and electronic equipment

Similar Documents

PublicationPublication DateTitle
CN109272448A (en)Draw the processing method of big pixel picture
CN109377554B (en)Large three-dimensional model drawing method, device, system and storage medium
CN105389170A (en)Drawing method and system
CN111932655B (en)Automatic processing method for constructing railway line information model based on AutoCAD
CN108881873A (en)The methods, devices and systems of high-definition picture fusion
CN112288756B (en) Graphical segmentation method, device, electronic device and readable storage medium
CN104298517B (en)A kind of Oftware updating method and system
CN116152102A (en)Traditional Chinese medicine inspection image color correction method and system
US20070002074A1 (en)System and method for concave polygon rasterization
JP2001209369A (en) Method for generating three-dimensional graphic data and recording medium
CN111428465B (en) An Auxiliary Verification Method for Modification of DC Control and Protection Software in Converter Station
CN114663327A (en)Fusion method, fusion device, computer equipment and storage medium
US8477654B2 (en)Method for representing nodes in network
US7701463B2 (en)Accelerated rendering of images with transparent pixels using a spatial index
CN114383600B (en) Processing method, device, electronic device and storage medium for map
JP4535816B2 (en) Information processing system and method related to real estate registration
JPH08248875A (en) Digital road map display device
CN109509145A (en)A kind of general joining method of viewdata painting canvas of multipad
US11109124B1 (en)System for signal management
JPS60173678A (en)Conversational type picture converting system
JPH02244390A (en)Stroke extracting device
CN110166447A (en)A kind of application identification system and its recognition methods based on PON gateway
CN118568523A (en)Complex network diagram display method and device based on compressed clustering algorithm
JP2611476B2 (en) Image data enlargement processing method
CN110751697A (en) A method of collecting and mapping data for business distribution based on the Internet of Things

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication

Application publication date:20190125

RJ01Rejection of invention patent application after publication

[8]ページ先頭

©2009-2025 Movatter.jp