Is it possible to set background(desktop)picture from code?
if yes how?
No, it's not possible with any APIs allowed for use on the App store.