Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to combine different images to one image?
How to combine different images to one image? [message #466225] Thu, 05 January 2006 05:54 Go to next message
Johnson is currently offline JohnsonFriend
Messages: 13
Registered: July 2009
Junior Member
If there 3 images with the same width, how to concatenate these 3 images
vertically? Thanks you
Re: How to combine different images to one image? [message #466233 is a reply to message #466225] Thu, 05 January 2006 07:29 Go to previous messageGo to next message
Hans is currently offline HansFriend
Messages: 36
Registered: July 2009
Member
Johnson wrote:
> If there 3 images with the same width, how to concatenate these 3 images
> vertically? Thanks you

org.eclipse.jface.resource.CompositeImageDescriptor

Good luck
Hans
Re: How to combine different images to one image? [message #466248 is a reply to message #466225] Thu, 05 January 2006 13:57 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
Create a new Image of the right height and width
Create a GC on the new Image
Use GC.drawImage() to draw the three images onto the new image
Dispose GC

"Johnson" <ljshuenn@realtek.com.tw> wrote in message
news:dpiccp$j2o$1@utils.eclipse.org...
> If there 3 images with the same width, how to concatenate these 3 images
> vertically? Thanks you
>
>
Previous Topic:Finding name of image of a selected treeItem
Next Topic:UI Thread question
Goto Forum:
  


Current Time: Mon Dec 09 10:27:14 GMT 2024

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

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

Back to the top