Advanced UI/src/com/samples/toolkit/ui/component/BitmapGaugeField.java
/**
     * Cuts up the background image using the specified margins
     * to create the center portion to be tiled
     */
Cuts up the background image using the specified margins
to create the center portion to be tiled
Cuts up the background image using the specified margins to create the center portion to be tiled
private void initTile( Bitmap baseImage, int leadingMargin, int trailingMargin, Bitmap targetImage )
    {
        int height = baseImage.getHeight();
        int width  = baseImage.getWidth();
        int marginSize = leadingMargin + trailingMargin;
        if( _horizontal ) {
            copy( baseImage, leadingMargin, 0, width - marginSize, height, targetImage );
        } else {
            copy( baseImage, 0, leadingMargin, width, height - marginSize, targetImage );
        }
    }
private void initTile ( Bitmap baseImage , int leadingMargin , int trailingMargin , Bitmap targetImage ) { int height = baseImage . getHeight ( ) ; int width = baseImage . getWidth ( ) ; int marginSize = leadingMargin + trailingMargin ; if ( _horizontal ) { copy ( baseImage , leadingMargin , 0 , width - marginSize , height , targetImage ) ; } else { copy ( baseImage , 0 , leadingMargin , width , height - marginSize , targetImage ) ; } }
Cuts up the background image using the specified margins
 to create the center portion to be tiled
Cuts up the background image using the specified margins to create the center portion to be tiled