1. A method for generating a boundary in the process of rasterizing a vector graphic, comprising the steps of: segment-polylining the vector graphic; obtaining data of line segments; obtaining data of end pixels according to the data of the line segments; obtaining data of boundary pixels according to the data of the end pixels and the relationship between the data of the end pixels; and obtaining bitmap data of the boundary pixels according to the data of the boundary pixels.