The subject of the portrait is Cecilia Gallerani , and painted at a time when she was the mistress of Ludovico Sforza , Duke of Milan , and Leonardo was in the service of the Duke .
The subject of the portrait is Cecilia Gallerani , the mistress of Ludovico Sforza , Duke of Milan . Leonardo was in the service of the Duke at the time the portrait was painted .