src/main/java/eu/digitisation/image/Bimage.java
public Bimage scale(double scale) {
        int w = (int) (scale * getWidth());
        int h = (int) (scale * getHeight());
        Bimage scaled = new Bimage(w, h, getType());
        //int hints = java.awt.Image.SCALE_SMOOTH; //scaling algorithm
        //Image img = getScaledInstance(w, h, hints);
        Graphics2D g = scaled.createGraphics();
        AffineTransform at = new AffineTransform();
        at.scale(scale, scale);
        g.drawImage(this, at, null);
        g.dispose();
        return scaled;
    }
/**
     * Create a scaled image
     *
     * @param scale the scale factor
     * @return a scaled image
     */
Create a scaled image
@param scale the scale factor
@return a scaled image
Create a scaled image @param scale the scale factor @return a scaled image
public Bimage scale(double scale) {
        int w = (int) (scale * getWidth());
        int h = (int) (scale * getHeight());
        Bimage scaled = new Bimage(w, h, getType());
        Graphics2D g = scaled.createGraphics();
        AffineTransform at = new AffineTransform();
        at.scale(scale, scale);
        g.drawImage(this, at, null);
        g.dispose();
        return scaled;
    }
public Bimage scale ( double scale ) { int w = ( int ) ( scale * getWidth ( ) ) ; int h = ( int ) ( scale * getHeight ( ) ) ; Bimage scaled = new Bimage ( w , h , getType ( ) ) ; Graphics2D g = scaled . createGraphics ( ) ; AffineTransform at = new AffineTransform ( ) ; at . scale ( scale , scale ) ; g . drawImage ( this , at , null ) ; g . dispose ( ) ; return scaled ; }
Create a scaled image
 @param scale the scale factor
 @return a scaled image
Create a scaled image @param scale the scale factor @return a scaled image
//int hints = java.awt.Image.SCALE_SMOOTH; //scaling algorithm //Image img = getScaledInstance(w, h, hints);