class LienzoCanvasExport implements CanvasExport<AbstractCanvasHandler> {

    @Override
    public String toImageData(final AbstractCanvasHandler canvasHandler,
                              final CanvasURLExportSettings settings) {
        final LienzoLayer layer = getLayer(canvasHandler);
        final int[] bounds = boundsProvider.compute(layer, settings);
        return LienzoLayerUtils.layerToDataURL(layer,
                                               getDataType(settings.getUrlDataType()),
                                               bounds[0],
                                               bounds[1],
                                               bounds[2],
                                               bounds[3],
                                               BG_COLOR);
    }

    public  LienzoCanvasExport();
      LienzoCanvasExport(final BoundsProvider boundsProvider);

}