# $ApsCVS: src/apsfilter/driver/stp/pcl-1100,v 1.1 2001/11/17 15:22:01 andreas Exp $

case "$QUALITY" in
	draft)	RESOLUTION=150x150
		GS_FEATURES="$GS_FEATURES -sQuality=150dpi -dImageType=0 -sDither=VeryFast" ;;
	low)	RESOLUTION=150x150
		GS_FEATURES="$GS_FEATURES -sQuality=150dpi -dImageType=0 -sDither=Fast" ;;
	medium)	RESOLUTION=300x300
		GS_FEATURES="$GS_FEATURES -sQuality=300dpi -dImageType=1" ;;
	high)	if [ "$COLOR" = full ]; then
			RESOLUTION=300x300
			GS_FEATURES="$GS_FEATURES -sQuality=300dpi -dImageType=1"
		else
			RESOLUTION=600x600
			GS_FEATURES="$GS_FEATURES -sQuality=600mono -dImageType=1"
		fi ;;
	photo)	if [ "$COLOR" = full ]; then
			RESOLUTION=300x300
			GS_FEATURES="$GS_FEATURES -sQuality=300dpi -dImageType=2"
		else
			RESOLUTION=600x600
			GS_FEATURES="$GS_FEATURES -sQuality=600mono -dImageType=2"
		fi ;;
esac

case "$COLOR" in
	full)	GS_FEATURES="$GS_FEATURES -dColor=1" ;;
	gray)	GS_FEATURES="$GS_FEATURES -dColor=0" ;;
	mono)	GS_FEATURES="$GS_FEATURES -dColor=2" ;;
esac

case "$MEDIA" in
	coated)		GS_FEATURES="$GS_FEATURES -sMediaType=Bond" ;;
	glossy)		GS_FEATURES="$GS_FEATURES -sMediaType=GlossyPaper" ;;
	premium)	GS_FEATURES="$GS_FEATURES -sMediaType=GlossyPro" ;;
	trans)		GS_FEATURES="$GS_FEATURES -sMediaType=Transparency" ;;
	plain)		GS_FEATURES="$GS_FEATURES -sMediaType=Plain" ;;
esac
