image-viewer

Need for multiple elastislide image viewers on one page

▼魔方 西西 提交于 2019-12-25 18:30:36
问题 I found this nifty image slider: http://tympanus.net/codrops/2011/09/12/elastislide-responsive-carousel/ Since im developing an events site with this design: my webpage design, i would love to add multiple (3) sliders on one page. I am new to jquery so its difficult to edit the jquery code so it can identify multiple lists on the html for rendering the carousel. <!-- Elastislide Carousel rendering on html--> <ul id="carousel" class="elastislide-list"> <li><a href=""><img src="images/small/1

How to make or use a standard Image Viewer for WP7

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-18 16:55:31
问题 I want to make an app that shows pictures. But I want to be able to zoom in and out with gestures. I fixed this by including a toolkit into my project. But my actual question is, can I use or is there a control that's already created for me to show pictures like the picture library of the WP7 phone itself. I thought there wasn't but the Facebook app has a similar way of showing the pictures. Did Facebook rewrite the whole thing or is there a control somewhere that someone made? 回答1: The

How to change image with the click of a button in java

可紊 提交于 2019-12-13 07:52:58
问题 If already an image is display, by clicking a button how can i change it to another one? Say I have two image buffered. bi = ImageIO.read(new File("1.jpg"); bi2 = ImageIO.read(new File("2.jpg")); and to display the bi I am using public void paint(Graphics g){ super.paintComponent(g); Dimension dim = Toolkit.getDefaultToolkit().getScreenSize(); int w = ((int) dim.getWidth() / 2) - (bi.getWidth() / 2); int h = ((int) dim.getHeight() / 2) - (bi.getHeight() / 2); g.drawImage(bi, w, h, null); } I

How to make or use a standard Image Viewer for WP7

China☆狼群 提交于 2019-11-30 14:45:06
I want to make an app that shows pictures. But I want to be able to zoom in and out with gestures. I fixed this by including a toolkit into my project. But my actual question is, can I use or is there a control that's already created for me to show pictures like the picture library of the WP7 phone itself. I thought there wasn't but the Facebook app has a similar way of showing the pictures. Did Facebook rewrite the whole thing or is there a control somewhere that someone made? The SlideView control in Telerik's RadControls for Windows Phone sounds like what you're looking for. Have you tried

how to set JFrame background transparent but JPanel or JLabel Background opaque?

柔情痞子 提交于 2019-11-27 01:38:44
As per assignment, we have to create a image viewer just like Picasas one. picture in the middle, translucent black background and changing images with left/right buttons. i can display an image set it to undercoated, set it to translucent frame but along with frame the the picture becomes translucent. what am i doing wrong. Dimension dim = Toolkit.getDefaultToolkit().getScreenSize(); JFrame f1 = new JFrame("ShowImage"); f1.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); f1.setSize(dim); f1.setUndecorated(true); f1.setOpacity(0.5f); ShowImage panel = new ShowImage(); panel.setBackground(Color

how to set JFrame background transparent but JPanel or JLabel Background opaque?

孤人 提交于 2019-11-26 09:44:44
问题 As per assignment, we have to create a image viewer just like Picasas one. picture in the middle, translucent black background and changing images with left/right buttons. i can display an image set it to undercoated, set it to translucent frame but along with frame the the picture becomes translucent. what am i doing wrong. Dimension dim = Toolkit.getDefaultToolkit().getScreenSize(); JFrame f1 = new JFrame(\"ShowImage\"); f1.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); f1.setSize(dim); f1