This problem was solved by Dolph in 1946. He derives a method for obtaining weights for uniformly spaced linear arrays steered to broadside (=90 degrees). This is a popular weighting method because the sidelobe level can be specified, and the minimum possible null-null beamwidth is obtained.
Some differences is that: Photography can form a picture in seconds, where as a painting can take months to create. Also, photography is a cheaper, and also, you can make sooo many images of the same photo via the negatives. Paintings have only One, unless the artist is bothered to paint the exact same painiting! lol.
Photorealism and the Relationship Between Photography and Painting. Look at this image above. It seems to be a black and white photograph of a man with scruffy hair, a moustache, glasses and a cigarette. Most of that is true apart from one key detail - it is a painting not a photograph.