[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform.swt] Re: How to CUT an image region

Hi,

You can, just create an image with the desired size, make a new GC on it and
use
drawImage(Image image, int srcX, int srcY, int srcWidth, int srcHeight, int
destX, int destY, int destWidth, int destHeight) method.

Regards,
Boby


"Barli" <bhbh@xxxxxxx> wrote in message
news:d77889$oqt$1@xxxxxxxxxxxxxxxxxxx
> Hi,
> does anybody know if Eclipse provides a class / library to cut an image
> (given the coordinates) and save it into another image? I don't have to
> display it, only to change it.
> There is not such a method in org.eclipse.swt.graphics.image.
> Thanks,
>
>
> Larissa
>
>