[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] Re: Cropping SWT image

Hi All,

I have a work-around approach to achieve point 1.

AWT has apis to crop images.
1. Convert SWT image data into AWT's buffer.
2. Repeatedly crop awt buffer and convert them into swt's image data.

This approach seems to work fine. But for very big diagram I get memory exceptions. As I mentioned earlier - 
<b>"Drawing the complete draw2d figure  on Graphics is expensive."</b>.

Any one have an alternate, smart and efficient solution to it.

thanks
Puneet