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.
Here are the differences, and what they mean for your photography. Macro photography, like this picture of a praying mantis, is one of the areas in which the size of the sensor makes a difference. Digital SLR cameras have a sensor, which is the thing that takes the place of the film.