question: public static void write ( OMBitmap bitmap , Link link , LinkProperties props ) throws IOException { switch ( bitmap . getRenderType ( ) ) { case OMBitmap . RENDERTYPE_LATLON : LinkBitmap . write ( ( float ) bitmap . getLat ( ) , ( float ) bitmap . getLon ( ) , bitmap . getWidth ( ) , bitmap . getHeight ( ) , bitmap . getBits ( ) , props , link . dos ) ; break ; case OMBitmap . RENDERTYPE_XY : LinkBitmap . write ( bitmap . getX ( ) , bitmap . getY ( ) , bitmap . getWidth ( ) , bitmap . getHeight ( ) , bitmap . getBits ( ) , props , link . dos ) ; break ; case OMBitmap . RENDERTYPE_OFFSET : LinkBitmap . write ( ( float ) bitmap . getLat ( ) , ( float ) bitmap . getLon ( ) , bitmap . getX ( ) , bitmap . getY ( ) , bitmap . getBits ( ) , props , link . dos ) ; break ; default : Debug . error ( "LinkBitmap.write: bitmap rendertype not handled." ) ; } }
target:  Write a bitmap to the link.