Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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: Fri May 02 18:31:41 EDT 2025

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

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

Back to the top