src/main/java/com/xceptance/neodymium/visual/ai/image/FastBitmap.java
/**
     * Refresh raster and get data buffer from raster.
     */
Refresh raster and get data buffer from raster.
Refresh raster and get data buffer from raster .
private void refresh()
    {
        this.raster = getRaster();
        if (isGrayscale())
        {
            pixelsGRAY = ((DataBufferByte) raster.getDataBuffer()).getData();
            this.size = pixelsGRAY.length;
        }
        if (isRGB() || isARGB())
        {
            pixels = ((DataBufferInt) raster.getDataBuffer()).getData();
            this.size = pixels.length;
        }
    }
private void refresh ( ) { this . raster = getRaster ( ) ; if ( isGrayscale ( ) ) { pixelsGRAY = ( ( DataBufferByte ) raster . getDataBuffer ( ) ) . getData ( ) ; this . size = pixelsGRAY . length ; } if ( isRGB ( ) || isARGB ( ) ) { pixels = ( ( DataBufferInt ) raster . getDataBuffer ( ) ) . getData ( ) ; this . size = pixels . length ; } }
Refresh raster and get data buffer from raster.
Refresh raster and get data buffer from raster .