paint.net is primarily programmed in the c# programming language. its native image format, .pdn, is a compressed representation of the application's internal object format, which preserves layering and other information.