I've been ripping Sega CD sprites so I know your pain, unfortunately there's no easy way, what game are you trying to rip? And Mame is even more difficult as Damon said, there's no 1 way, the link I sent you has a few different methods and there's even more, even if some links are dead the methods are still the same, I tried ripping Shadow force in mame for 2 days without success, ended up having to just do simple screen shots and clean up the sprites manually. Old school