An additive manufacturing system including a two-dimensional energy patterning system for imaging a powder bed is disclosed. The two-dimensional energy patterning system may be used to control the rate of cooling experienced by each successive additive layer. Accordingly, the system may be used to heat treat the various additive layers.