Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-swt-dev] shell region from image

Is there currently a way of creating a region from an image found on the filesystem. I would like to create a shell with curved edges and would rather use a pre-defined image than use a Rectangle and remove the edges via code.

I'm looking for something like:

Region r = new Region();
r.addData( new ImageLoader("c:/test.jpg").getData() );
shell.setRegion( r );

Thanks,
 Colin

begin:vcard
fn:Colin Parcell
n:Parcell;Colin
org:Tangible Software
adr;dom:Suite 300;;6701 Democracy Blvd;Bethesda;MD;20817
email;internet:cparcell@xxxxxxxxxxxxxxxxxxxx
title:Consultant
tel;work:703.863.7834Con
x-mozilla-html:TRUE
url:http://www.tangiblesoftware.com
version:2.1
end:vcard


Back to the top