In this paper, we studied the method of calculating IFS code and auto-generated the fractal images based on IFS codes. The IFS codes of the English alphabet were calculated respectively, and the fractal images were generated in accordance with the IFS codes by using the Visual Basic program, then textile patterns were designed with the fractal images.