# $ApsCVS: src/apsfilter/driver/md2k,v 1.1 2001/11/17 15:21:54 andreas Exp $

case "$QUALITY" in
	draft)		RESOLUTION=300x300
			[ "$COLOR" = mono ] && GS_FEATURES="$GS_FEATURES -dEcoBlack" ;;
	low)		RESOLUTION=300x300 ;;
	medium)		RESOLUTION=600x600 ;;
	high|photo)	RESOLUTION=1200x600 ;;
esac

case "$COLOR" in
	full)	GS_FEATURES="$GS_FEATURES -dBitsPerPixel=32" ;;
	gray)	GS_FEATURES="$GS_FEATURES -dBitsPerPixel=8" ;;
	mono)	GS_FEATURES="$GS_FEATURES -dBitsPerPixel=1" ;;
esac
[ "$COLOR" = full ] && GS_FEATURES="$GS_FEATURES -dColor"

case "$MEDIA" in
	plain)		GS_FEATURES="$GS_FEATURES -sMediaType=PlainPaper" ;;
	coated)		GS_FEATURES="$GS_FEATURES -sMediaType=CoatedFilm" ;;
	glossy)		GS_FEATURES="$GS_FEATURES -sMediaType=GlossyPaper" ;;
	premium)	GS_FEATURES="$GS_FEATURES -sMediaType=FinePaper" ;;
	trans)		GS_FEATURES="$GS_FEATURES -sMediaType=OHP" ;;
esac
