If middle portion of lens is painted black, then less number of refracted rays will intersect, therefore intensity of the corresponding image of object will be less. Though, the rays coming from object refracted with small portion of lens, but complete image of object will be formed but of lesser intensity.