# $ApsCVS: src/apsfilter/driver/gimp/bjc-210,v 1.1.2.1 2002/10/27 22:05:22 andreas Exp $

case "$QUALITY" in
	draft)	RESOLUTION=90x90
		params="Quality=90x90dpi,ImageType=0,Dither=VeryFast" ;;
	low)	RESOLUTION=180x180
		params="Quality=180x180dpi,ImageType=0,Dither=Fast" ;;
	medium)	RESOLUTION=360x360
		params="Quality=360x360dpi,ImageType=1" ;;
	*)	RESOLUTION=720x360
		params="Quality=720x360dpi,ImageType=2" ;;
esac

case "$COLOR" in
	full)	GS_FEATURES="$GS_FEATURES -sProcessColorModel=DeviceRGB" ;;
	gray)	GS_FEATURES="$GS_FEATURES -sProcessColorModel=DeviceGray" ;;
	mono)	GS_FEATURES="$GS_FEATURES -sProcessColorModel=DeviceGray -dBitsPerSample=1" ;;
esac

case "$MEDIA" in
	coated)		params="$params,MediaType=Coated" ;;
	glossy)		params="$params,MediaType=GlossyPaper" ;;
	premium)	params="$params,MediaType=GlossyPro" ;;
	trans)		params="$params,MediaType=Transparency" ;;
	plain)		params="$params,MediaType=Plain" ;;
esac

GS_FEATURES="$GS_FEATURES -sIjsParams='$params' -sDeviceManufacturer=CANON"
