# $ApsCVS: src/apsfilter/driver/omni/Canon_S450,v 1.1.2.1 2002/03/03 20:21:16 andreas Exp $

case "$QUALITY" in
	draft)		RESOLUTION=180x180
			props="resolution=RESOLUTION_180_X_180" ;;
	low)		RESOLUTION=360x360
			props="resolution=RESOLUTION_360_X_360" ;;
	medium)		RESOLUTION=720x360
			props="resolution=RESOLUTION_720_X_360" ;;
	high)		RESOLUTION=720x720
			props="resolution=RESOLUTION_720_X_720" ;;
	photo)		RESOLUTION=1440x720
			props="resolution=RESOLUTION_1440_X_720" ;;
esac

case "$COLOR" in
	full)	case "$QUALITY" in
			high|photo)
				props="$props printmode=PRINT_MODE_24_CcMmYK" ;;
			*)
				props="$props printmode=PRINT_MODE_24_CMYK" ;;
		esac ;;
	gray)	props="$props printmode=PRINT_MODE_8_CMYK" ;;
	mono)	props="$props printmode=PRINT_MODE_1_ANY" ;;
esac

case "$MEDIA" in
	plain)		props="$props media=MEDIA_PLAIN" ;;
	coated)		props="$props media=MEDIA_COATED" ;;
	glossy)		props="$props media=MEDIA_GLOSSY" ;;
	premium)	props="$props media=MEDIA_HIGH_GLOSS_FILM" ;;
	trans)		props="$props media=MEDIA_TRANSPARENCY" ;;
esac

case "$PAPERSIZE" in
	a4)	props="$props form=FORM_A4" ;;
	letter)	props="$props form=FORM_LETTER" ;;
	legal)	props="$props form=FORM_LEGAL" ;;
esac

GS_FEATURES="$GS_FEATURES -sproperties='$props'"
