Filming for the hotly anticipated Robert the Bruce film has officially wrapped.

Outlaw King, which is one of the biggest productions ever made in Scotland, stars Star Trek's Chris Pine as the legendary Scots king alongside Avengers star Aaron Taylor-Johnson.

The Netflix blockbuster has filmed at locations throughout Scotland, including Glasgow Cathedral, Linlithgow, Aviemore and Glencoe.

The epic period drama focuses on Robert's clashes with the English army and is expected to be released next year.

David Mackenzie, who directed the Oscar-nominated Hell or High Water, has written and directed the Outlaw King.

His Glasgow-based Sigma Films company has produced the movie, which it describes as "a true David and Goliath story".

The production advertised for "bearded extras" in Scotland earlier this year as they looked to fill the roles of Scottish and English medieval soldiers.

Outlaw King is said to have brought significant benefits to the growing screen sector in Scotland.

It has provided work for Scottish cast and crew, utilised Scottish locations and facilities and provided opportunities for 35 trainees.

The production was awarded £500,000 from the Scottish Government's Production Growth Fund and another £500,000 from the National Lottery through Creative Scotland.

Marking the end of filming, culture secretary Fiona Hyslop visited the set at Craigmillar Castle, Edinburgh, where she met cast, crew and production trainees.

She said: "A major production like Outlaw King brings huge benefits to the whole screen sector, as well as related businesses.

"Having our stunning locations featured in screen productions also increases tourism."

Gillian Berrie, producer of Outlaw King, said: "Creative Scotland have really supported the development of Sigma and Outlaw King - one of the biggest homegrown films ever to be made in Scotland."