Convert an image to Color object which can be added to background of a Layout
<p>I am having the following requirement.</p>

<p>1> I have a background image(png) (containing various shades) of color with stripes.</p>

<p>Is there any class which is already available on Android using which I can convert the image to Color object &amp; set on the layout as background color? 
Will the ColorMatrix class help ? I want to avoid using the image as background , as with different screen resolutions , even after having separate drawable folders , there can be cases when the background image can get stretched , giving a wrong view .</p>

<p>Kindly provide your inputs/sample code. If my approach is incorrect , kindly provide the correct logic.</p>

<p>Thanks in advance.</p>

<p>Warm Regards,</p>

<p>CB</p>
