/**
  * Sets the Paint to use for the background of the image.
  *
  * @param p the paint to use for the background
  */
 public void setBackgroundColor(Paint p) {
   hints.put(ImageTranscoder.KEY_BACKGROUND_COLOR, p);
 }
 /**
  * Sets the media to rasterize. The medium should be separated by comma. e.g. "screen", "print" or
  * "screen, print"
  *
  * @param media the media to use
  */
 public void setMedia(String media) {
   hints.put(ImageTranscoder.KEY_MEDIA, media);
 }
 /**
  * Sets the alternate stylesheet to use. For futher details, you can have a look at the <a
  * href="http://www.w3.org/TR/xml-stylesheet/">Associating Style Sheets with XML documents</a>.
  *
  * @param alternateStylesheet the alternate stylesheet to use if possible
  */
 public void setAlternateStylesheet(String alternateStylesheet) {
   hints.put(ImageTranscoder.KEY_ALTERNATE_STYLESHEET, alternateStylesheet);
 }
 /**
  * Sets the uri of the user stylesheet. The user stylesheet can be used to override styles.
  *
  * @param uri the uri of the user stylesheet
  */
 public void setUserStyleSheetURI(String uri) {
   hints.put(ImageTranscoder.KEY_USER_STYLESHEET_URI, uri);
 }
 /**
  * Sets whether or not the XML parser used to parse SVG document should be validating or not,
  * depending on the specified parameter. For futher details about how media work, see the <a
  * href="http://www.w3.org/TR/CSS2/media.html">Media types in the CSS2 specification</a>.
  *
  * @param b true means the XML parser will validate its input
  */
 public void setXMLParserValidating(boolean b) {
   hints.put(ImageTranscoder.KEY_XML_PARSER_VALIDATING, (b ? Boolean.TRUE : Boolean.FALSE));
 }
 /**
  * Sets the unit conversion factor to the specified value. This method lets you choose how units
  * such as 'em' are converted. e.g. 0.26458 is 96dpi (the default) or 0.3528 is 72dpi.
  *
  * @param px2mm the pixel to millimeter convertion factor.
  */
 public void setPixelToMMFactor(float px2mm) {
   hints.put(ImageTranscoder.KEY_PIXEL_UNIT_TO_MILLIMETER, new Float(px2mm));
 }
 /**
  * Sets the preferred language to use. SVG documents can provide text in multiple languages, this
  * method lets you control which language to use if possible. e.g. "en" for english or "fr" for
  * french.
  *
  * @param language the preferred language to use
  */
 public void setLanguages(String language) {
   hints.put(ImageTranscoder.KEY_LANGUAGE, language);
 }
 /**
  * Sets the height of the image to rasterize.
  *
  * @param width the image height
  */
 public void setImageHeight(float height) {
   hints.put(ImageTranscoder.KEY_HEIGHT, new Float(height));
 }
 /**
  * Sets the width of the image to rasterize.
  *
  * @param width the image width
  */
 public void setImageWidth(float width) {
   hints.put(ImageTranscoder.KEY_WIDTH, new Float(width));
 }
 /**
  * Sets the quality of the image to rasterize when rasterizing to a JPEG.
  *
  * @param quality the percentage quality
  */
 public void setQuality(float quality) {
   hints.put(JPEGTranscoder.KEY_QUALITY, new Float(quality));
 }