#!/bin/sh
# 
# convert an xmms cbuttons.bmp file to separate png files
# requires ImageMagick
#
# Charles <int*AT*linuxcore.com>
#

if [ $# = 0 ];
then
	echo "Usage: cvt <filename>"
	exit
fi

filename=$1

convert -crop 22x18+0+0  $filename back.png
convert -crop 22x18+0+18 $filename back_p.png

convert -crop 22x18+23+0  $filename play.png
convert -crop 22x18+23+18 $filename play_p.png

convert -crop 22x18+46+0  $filename pause.png
convert -crop 22x18+46+18 $filename pause_p.png

convert -crop 22x18+69+0  $filename stop.png
convert -crop 22x18+69+18 $filename stop_p.png

convert -crop 22x18+92+0  $filename forward.png
convert -crop 22x18+92+18 $filename forward_p.png

