JavaFX - Image Viewer


One of the questions I received in comments of one post

actually regarding the carousel and display shelf samples written on the net.this samples r feasible for 100 x100 pics. i am getting photos from flickr. if i want to implement this view how can it be done.. or is it at all feasible..

A genuine valid question! Yes Carousel and DisplayShelf are written with smaller dimensions. Carousel was targeting mobile profile as well, so its size was small. Also most of samples I have too didn't have large dimensions.

So here is a sample which uses larger dimension - [800X650].

For Applet mode, click on above image

For standalone mode

It loads images from flickr. If you click on the thumbnails below, it will move to scroll to next thumbnail and zooms the image. Its very basic demo, just to demonstrate use of large images. It uses hard-coded values for coordinates and scale, so not really the best demo.


<script type="text/javascript">var dzone_style = '2';</script> <script language="javascript" src="/rakeshmenonp/resource/ImageViewer/zoneit.js"></script>

Comments:

I am trying out the Carousel sample app for a demo and tried to change the images to my own images. I have scaled the images down to 100x100 and they do not show. The only difference between my images and that in the sample is the resolution. Mine are 96x96 and the samples are 72x72. is this a problem?

Posted by Pieter Viljoen on September 02, 2009 at 05:33 AM IST #

@Pieter Viljoen I'm not able to identify the issue.. Is the image loading fine with just ImageView + Image? Is the issue only with these specific images and loads other images?

Posted by Rakesh Menon on September 02, 2009 at 11:36 AM IST #

Hello can you tell me what must i change to load and display images form harddisk

Posted by Damian on December 27, 2009 at 09:23 AM IST #

@Damian In Carousel.fx I have hardcoded the URL to point to some images from Flickr. Instead you can change those URL to file URL

http://blogs.sun.com/rakeshmenonp/resource/ImageViewer/Carousel_fx.html

Posted by Rakesh Menon on December 30, 2009 at 01:10 AM IST #

Is it possible to handle large images in javafx?

Posted by Silvio Schneider on January 25, 2010 at 08:57 AM IST #

@Silvio Schneider Can you provide more info? It should be able to load large images (you may have to increase the max-memory settings [-Xmx] of the application)

Posted by Rakesh Menon on January 27, 2010 at 02:55 AM IST #

i'm trying to change the list of image dependding to the selected image.
for example when user click on the scadeled image, a new images should appears in the image group bellow depinding to his choice.
Can any body help me doing that?

Posted by Mohamed on April 07, 2010 at 03:35 PM IST #

Post a Comment:
Comments are closed for this entry.
About


The views expressed on this blog are my own and do not necessarily reflect that of my organization

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today