Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Abount Scaling of Swt Images
Abount Scaling of Swt Images [message #452906] Sun, 27 March 2005 19:26 Go to next message
sushant is currently offline sushantFriend
Messages: 2
Registered: July 2009
Junior Member
I want to scale the swt images by particular scale so
that I can get new image which is scaled one. So please help me out in
this problem.

Sushant
Re: Abount Scaling of Swt Images [message #452909 is a reply to message #452906] Mon, 28 March 2005 03:58 Go to previous message
Eclipse UserFriend
Originally posted by: vijay.exorindia.com

//get the image data
ImageData imdata = img.getImageData();
//create the new scaled image
Image tempimage= new
Image(Display.getCurrent(),imdata.scaledTo(size.width,size.h eight));

i think this code will help u

Vijay


"sushant" <sushant_sirsikar@yahoo.com> wrote in message
news:dd07b0c376460b6febc88612b71dbf9d$1@www.eclipse.org...
>
> I want to scale the swt images by particular scale so that
> I can get new image which is scaled one. So please help me out in this
> problem.
>
> Sushant
>
Previous Topic:Having icons in a List
Next Topic:Using Browser Widget as report viewer, is it good approach ?
Goto Forum:
  


Current Time: Mon Jul 22 21:32:57 GMT 2019

Powered by FUDForum. Page generated in 0.02635 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top