public void image(RenderedImage image,Color bkg,String encode) throws IOException {
  ImageBytes bytes=new ImageBytes(image,bkg,encode,ImageConstants.COLOR_MODEL_RGB);
  entry("Width",image.getWidth());
  entry("Height",image.getHeight());
  entry("ColorSpace",pdf.name("DeviceRGB"));
  entry("BitsPerComponent",8);
  entry("Filter",getFilterName(bytes.getFormat()));
  write(bytes.getBytes());
}

public void image ( RenderedImage image , Color bkg , String encode ) throws IOException { ImageBytes bytes = new ImageBytes ( image , bkg , encode , ImageConstants . COLOR_MODEL_RGB ) ; entry ( "Width" , image . getWidth ( ) ) ; entry ( "Height" , image . getHeight ( ) ) ; entry ( "ColorSpace" , pdf . name ( "DeviceRGB" ) ) ; entry ( "BitsPerComponent" , 8 ) ; entry ( "Filter" , getFilterName ( bytes . getFormat ( ) ) ) ; write ( bytes . getBytes ( ) ) ; }
image convenience function ( see table 4 . 35 ) . ouputs the data of the image using " devicergb " colorspace , and the requested encodings
