A Treatise on Painting (Trattato della pittura) is a collection of Leonardo da Vinci's writings entered in his notebooks under the general heading "On Painting". The manuscripts were begun in Milan while Leonardo was under the service of Ludovico Sforza and gathered together by his heir Francesco Melzi. An abridged version of the treatise was first published in France in 1651. After Melzi's manuscript was rediscovered in the Vatican Library, the treatise was published in its modern form in 1817.