Hi all.
I have a photoshop image in which some pixels have opacity value. How can I split from such image to RGB image and grayed-alpha image.

For example,

If I have a 1x1 image like,

R:255, G:0, B:0, Opacity:50%

Then, I want split the above image to following 2 images

R:255, G:0, B:0, Opacity:0%
R:127, G:127, B:127, Opacity:0%

Thanks in advance.