The invention provides a multi-element Gerber file analysis and drawing method for improving drawing precision.Aiming at the single problem of Gerber file element analysis and drawing by domestic software at present, the data information of Gerber file is analyzed, and the data is analyzed, extracted and sorted by regular expression, and the analytical drawing of ellipse, arc, sector, regular polygon and rounded rectangle is realized. As you save the Gerber file data, for the data analyzed and sorted out, the storage structure is optimized, the structure and dynamic array are used to solve theproblem of data storage, and the complex data structure such as linked list is abandoned, which ensures the complete extraction and preservation of Gerber file information, and improves the flexibility of image data processing and analysis. Aiming at the problem of data loss after Gerber file data coordinates are converted into pixel coordinates, a solution is proposed to improve the image rendering accuracy.