Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » How to display images with actual size in Gallery?
How to display images with actual size in Gallery? [message #1237332] Wed, 29 January 2014 12:40 Go to next message
Dims Mising name is currently offline Dims Mising nameFriend
Messages: 14
Registered: August 2010
Junior Member
How to display images with actual size in Nebula Gallery?

I have loaded images from files, which are already small for me and want to display them as is. Is it possible?
Re: How to display images with actual size in Gallery? [message #1237489 is a reply to message #1237332] Wed, 29 January 2014 21:13 Go to previous messageGo to next message
Justin Dolezy is currently offline Justin DolezyFriend
Messages: 68
Registered: July 2009
Member
Hi,

This is controlled via the GroupRenderer - AbstractGridGroupRenderer has a setItemSize(x,y) method to control the size of the item images, so use one of the sub-classes provided and apply it via gallery.setGroupRenderer().

Regards,
Justin
Re: How to display images with actual size in Gallery? [message #1237507 is a reply to message #1237489] Wed, 29 January 2014 22:14 Go to previous message
Nicolas Richeton is currently offline Nicolas RichetonFriend
Messages: 179
Registered: July 2009
Senior Member
Hi,

+1

Gallery is designed to display all items at the same size : they will be zoomed in/out to match the same item size.

If you don't want them to be altered that way, you can use custom drawing to display items the way you want (they must fit within the item drawing area defined by item size). You can use any tutorial/snippet for Table/Tree custom drawing, since Gallery is almost a drop-in replacement for these widgets (with additional options).

Nicolas
Previous Topic:Not display any groups in Gallery?
Next Topic:PaperClips - Cancel a print job
Goto Forum:
  


Current Time: Thu Mar 28 10:13:12 GMT 2024

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

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

Back to the top