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 07:40 Go to next message
Dims Mising name is currently offline Dims Mising name
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 16:13 Go to previous messageGo to next message
Justin Dolezy is currently offline Justin Dolezy
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 17:14 Go to previous message
Nicolas Richeton is currently offline Nicolas Richeton
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: Wed Aug 27 15:15:25 EDT 2014

Powered by FUDForum. Page generated in 0.01631 seconds