I am working on image processing however I have to convert UIImage to (8 bit per component and 8 bit per pixel) to pass it for further processing .Is there any way to achieve that result?

I have to convert image to 8 bit per pixel and component as i have tried to convert it but I got 24 bit per pixel in return ..

I am working on image processing however I have to convert UIImage to (8 bit per component and 8 bit per pixel) to pass it for further processing .Is there any way to achieve that result?
 
 
Q