public void inlineImage(RenderedImage image,Color bkg,String encode) throws IOException {
  ImageBytes bytes=new ImageBytes(image,bkg,ImageConstants.JPG,ImageConstants.COLOR_MODEL_RGB);
  println("BI");
  imageInfo("Width",image.getWidth());
  imageInfo("Height",image.getHeight());
  imageInfo("ColorSpace",pdf.name("DeviceRGB"));
  imageInfo("BitsPerComponent",8);
  imageInfo("Filter",getFilterName(bytes.getFormat()));
  print("ID\n");
  write(bytes.getBytes());
  println("\nEI");
}

public void inlineImage ( RenderedImage image , Color bkg , String encode ) throws IOException { ImageBytes bytes = new ImageBytes ( image , bkg , ImageConstants . JPG , ImageConstants . COLOR_MODEL_RGB ) ; println ( "BI" ) ; imageInfo ( "Width" , image . getWidth ( ) ) ; imageInfo ( "Height" , image . getHeight ( ) ) ; imageInfo ( "ColorSpace" , pdf . name ( "DeviceRGB" ) ) ; imageInfo ( "BitsPerComponent" , 8 ) ; imageInfo ( "Filter" , getFilterName ( bytes . getFormat ( ) ) ) ; print ( "ID\n" ) ; write ( bytes . getBytes ( ) ) ; println ( "\nEI" ) ; }
inline image convenience function ( see table 4 . 39 and 4 . 40 ) . ouputs the data of the image using " devicergb " colorspace , and the requested encoding .
