Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[swtchart-dev] Buffering Chart Data via a Bitmap

Hi,
Currently SWTChart redraws everytime the user zooms in or out causing performance issues,
I looked at the issue-https://github.com/eclipse/swtchart/issues/85

Does that mean the chart will be converted into a graphic image and then scaled or resized whenever zoomed in or out instead of redrawing?
The chart can be converted into an image using ImageSupplier class,
ImageSupplier imageSupplier = new ImageSupplier();
ImageData imageData = imageSupplier.getImageData(scrollableChart.getBaseChart());
Image image=new Image(display,imageData);
Thanks,
Yash

Back to the top