Combining analog input

The row pins can only supply 30mA so you will have to split this amongst all the columns. You normally need some form of high sided driver like a p- channel FET or a PNP transistor.

Also the row resistors should be in the columns, otherwise the brightness will change depending on how many LEDs are on at the same time.

How will the software scan these?