question: 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" ) ; }
target:  Inline Image convenience function (see Table 4.39 and 4.40). Ouputs the data of the image using "DeviceRGB" colorspace, and the requested encoding.