IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

AWT/Swing Java Discussion :

Diaporama d'image à partir d'un dossier


Sujet :

AWT/Swing Java

  1. #1
    Membre du Club Avatar de smh_master
    Inscrit en
    Août 2005
    Messages
    143
    Détails du profil
    Informations forums :
    Inscription : Août 2005
    Messages : 143
    Points : 53
    Points
    53
    Par défaut Diaporama d'image à partir d'un dossier
    Salut tous le monde,
    voilà mon problème est le suivant : j'ai une classe java dans laquelle je veux faire un diaporama d'image à partir d'un dossier.

    et j'ai le code suivant qui permet de d'afficher une frame avec des icones et lorsqu'on appui sur une icone elle s'affiche dans la frame.
    ce que je veux c'est d'enlever les icones et rendre l'affichage automatique en plein écran, mais malheureusement j'arrive pas
    voici le code:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    package slider;
     
    import java.awt.BorderLayout;
    import java.awt.Graphics2D;
    import java.awt.Image;
    import java.awt.RenderingHints;
    import java.awt.event.ActionEvent;
    import java.awt.image.BufferedImage;
    import java.io.File;
    import java.util.List;
    import javax.swing.AbstractAction;
     
    import javax.swing.BorderFactory;
    import javax.swing.Box;
    import javax.swing.Icon;
    import javax.swing.ImageIcon;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JToolBar;
    import javax.swing.SwingUtilities;
    import javax.swing.SwingWorker;
     
    public class IconDemoApp extends JFrame {
     
        private JLabel photographLabel = new JLabel();
        private JToolBar buttonBar = new JToolBar();
     
        private String imagedir = "images/";
     
        private MissingIcon placeholderIcon = new MissingIcon();
     
        /**
         * List of all the descriptions of the image files. These correspond one to
         * one with the image file names
         */
        private String[] imageCaptions = { "Original SUNW Logo", "The Clocktower",
        "Clocktower from the West", "The Mansion", "Sun Auditorium"};
     
        /**
         * List of all the image files to load.
         */
        //File fd=new File(imagedir);
        //private String imageFileNames[]=fd.list();
     
    //    private String[] imageFileNames = { "sunw01.jpg", "sunw02.jpg",
    //    "sunw03.jpg", "sunw04.jpg", "sunw05.jpg"};
        private String[] imageFileNames = { "42-17425640.jpg", "e_logo.gif",
    "reversed-saya.jpg", "logo.jpg", "mitsubishi_concept_ra-2.jpg"};
     
        /**
         * Main entry point to the demo. Loads the Swing elements on the "Event
         * Dispatch Thread".
         *
         * @param args
         */
        public static void main(String args[]) {
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    IconDemoApp app = new IconDemoApp();
                    app.setVisible(true);
                }
            });
        }
     
        /**
         * Default constructor for the demo.
         */
        public IconDemoApp() {
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            setTitle("Icon Demo: Please Select an Image");
     
            // A label for displaying the pictures
            photographLabel.setVerticalTextPosition(JLabel.BOTTOM);
            photographLabel.setHorizontalTextPosition(JLabel.CENTER);
            photographLabel.setHorizontalAlignment(JLabel.CENTER);
            photographLabel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
     
            // We add two glue components. Later in process() we will add thumbnail buttons
            // to the toolbar inbetween thease glue compoents. This will center the
            // buttons in the toolbar.
            buttonBar.add(Box.createGlue());
            buttonBar.add(Box.createGlue());
     
            add(buttonBar, BorderLayout.SOUTH);
            add(photographLabel, BorderLayout.CENTER);
     
            setSize(400, 300);
     
            // this centers the frame on the screen
            setLocationRelativeTo(null);
     
            // start the image loading SwingWorker in a background thread
            loadimages.execute();
        }
     
        /**
         * SwingWorker class that loads the images a background thread and calls publish
         * when a new one is ready to be displayed.
         *
         * We use Void as the first SwingWroker param as we do not need to return
         * anything from doInBackground().
         */
        private SwingWorker<Void, ThumbnailAction> loadimages = new SwingWorker<Void, ThumbnailAction>() {
     
            /**
             * Creates full size and thumbnail versions of the target image files.
             */
            @Override
            protected Void doInBackground() throws Exception {
                for (int i = 0; i < imageCaptions.length; i++) {
                    ImageIcon icon;
                    icon = createImageIcon(imagedir+imageFileNames[i], imageCaptions[i]);
     
                    ThumbnailAction thumbAction;
                    if(icon != null){
     
                        ImageIcon thumbnailIcon = new ImageIcon(getScaledImage(icon.getImage(), 32, 32));
                        thumbAction = new ThumbnailAction(icon, thumbnailIcon, imageCaptions[i]);
     
                    }else{
                        // the image failed to load for some reason
                        // so load a placeholder instead
                        thumbAction = new ThumbnailAction(placeholderIcon, placeholderIcon, imageCaptions[i]);
                    }
                    publish(thumbAction);
     
                }
                // unfortunately we must return something, and only null is valid to
                // return when the return type is void.
                return null;
            }
     
            /**
             * Process all loaded images.
             */
            @Override
            protected void process(List<ThumbnailAction> chunks) {
                for (ThumbnailAction thumbAction : chunks) {
                    JButton thumbButton = new JButton(thumbAction);
                    // add the new button BEFORE the last glue
                    // this centers the buttons in the toolbar
                    buttonBar.add(thumbButton, buttonBar.getComponentCount() - 1);
                }
            }
        };
     
        /**
         * Creates an ImageIcon if the path is valid.
         * @param String - resource path
         * @param String - description of the file
         */
        protected ImageIcon createImageIcon(String path,
                String description) {
            java.net.URL imgURL = getClass().getResource(path);
            if (imgURL != null) {
                return new ImageIcon(imgURL, description);
            } else {
                System.err.println("Couldn't find file: " + path);
                return null;
            }
        }
     
        /**
         * Resizes an image using a Graphics2D object backed by a BufferedImage.
         * @param srcImg - source image to scale
         * @param w - desired width
         * @param h - desired height
         * @return - the new resized image
         */
        private Image getScaledImage(Image srcImg, int w, int h){
            BufferedImage resizedImg = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB);
            Graphics2D g2 = resizedImg.createGraphics();
            g2.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR);
            g2.drawImage(srcImg, 0, 0, w, h, null);
            g2.dispose();
            return resizedImg;
        }
     
        /**
         * Action class that shows the image specified in it's constructor.
         */
        private class ThumbnailAction extends AbstractAction{
     
            /**
             *The icon if the full image we want to display.
             */
            private Icon displayPhoto;
     
            /**
             * @param Icon - The full size photo to show in the button.
             * @param Icon - The thumbnail to show in the button.
             * @param String - The descriptioon of the icon.
             */
            public ThumbnailAction(Icon photo, Icon thumb, String desc){
                displayPhoto = photo;
     
                // The short description becomes the tooltip of a button.
                putValue(SHORT_DESCRIPTION, desc);
     
                // The LARGE_ICON_KEY is the key for setting the
                // icon when an Action is applied to a button.
                putValue(LARGE_ICON_KEY, thumb);
            }
     
            /**
             * Shows the full image in the main area and sets the application title.
             */
            public void afficherImage(){
                photographLabel.setIcon(displayPhoto);
                setTitle("Icon Demo: " + getValue(SHORT_DESCRIPTION).toString());
            }
            public void actionPerformed(ActionEvent e) {
                photographLabel.setIcon(displayPhoto);
                setTitle("Icon Demo: " + getValue(SHORT_DESCRIPTION).toString());
            }
        }
    }
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    package slider;
     
    import java.awt.BasicStroke;
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import javax.swing.Icon;
     
    public class MissingIcon implements Icon{
     
        private int width = 32;
        private int height = 32;
     
        private BasicStroke stroke = new BasicStroke(4);
     
        public void paintIcon(Component c, Graphics g, int x, int y) {
            Graphics2D g2d = (Graphics2D) g.create();
     
            g2d.setColor(Color.WHITE);
            g2d.fillRect(x +1 ,y + 1,width -2 ,height -2);
     
            g2d.setColor(Color.BLACK);
            g2d.drawRect(x +1 ,y + 1,width -2 ,height -2);
     
            g2d.setColor(Color.RED);
     
            g2d.setStroke(stroke);
            g2d.drawLine(x +10, y + 10, x + width -10, y + height -10);
            g2d.drawLine(x +10, y + height -10, x + width -10, y + 10);
     
            g2d.dispose();
        }
     
        public int getIconWidth() {
            return width;
        }
     
        public int getIconHeight() {
            return height;
        }
     
    }
    Je suis quasi bloqué donc un coup de pouce ou quelques pistes sera apprécié et merci.
    Never forget this : Relax & just stay cool
    Tout savoir doit être partagé par tout le monde,
    sinon on ne peut pas évoluer dans le bon sens

  2. #2
    Membre du Club Avatar de smh_master
    Inscrit en
    Août 2005
    Messages
    143
    Détails du profil
    Informations forums :
    Inscription : Août 2005
    Messages : 143
    Points : 53
    Points
    53
    Par défaut
    j'ai réussi à faire ceci:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    public void afficherImage(int x){
                ImageIcon icon = new ImageIcon();
                icon = createImageIcon(imagedir+imageFileNames[x], imageCaptions[x]);
                photographLabel.setIcon(icon);
                System.out.println(imagedir+imageFileNames[x]);
                photographLabel.setVisible(true);
     
            }
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    public void run() {
                    IconDemoApp app = new IconDemoApp();
                    app.setVisible(true);
                    //app.afficherImage(0);
     
                    try {
                        for (int i = 0; i < 3; i++) {
                        app.afficherImage(i);
                        Thread.sleep(2000);
                        }
                    } catch (Exception e) {
                    }
                }
            });
    mon problème c'est qu'il m'affiche directement la dernière image sans pour autant afficher les autres
    Quelqu'un d'ingénieux pourrais me répondre svp ??
    Never forget this : Relax & just stay cool
    Tout savoir doit être partagé par tout le monde,
    sinon on ne peut pas évoluer dans le bon sens

  3. #3
    Membre à l'essai
    Profil pro
    Inscrit en
    Juin 2009
    Messages
    17
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2009
    Messages : 17
    Points : 18
    Points
    18
    Par défaut
    Bonjour,

    Je crois avoir compris ou tu t'est planté. D'ailleurs au début je me suis posé la question car ton code marchait parfaitement chez moi (il courait même). En faite j'ai pensé à une autre façon de faire et vu ton run(), je pense que tu l'as utiliser, c'est à dire tu as utilisé ton run dans SwingUtilities.invokeLater dans le main(). Et la cela marchai plus pour moi (même problème que toi ).

    Déjà, tu veux sa mort à l'EDT ? Balançer un Thread.sleep dans le EDT ... L'EDT marche suivant le principe que moins il en fait mieux il se porte. Il faut donc balançait le code de changement de l'image dans un autre Thread à côtés qui va s'occuper de rappeler EDT pour afficher l'image.

    Mieux qu'un grand discours :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
     
        // J'avais besoin de ses variables dans l'objet pour les balançait dans l'EDT
        private IconDemoApp app;
        private int numimage;
     
        public static void main(String args[]) {
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                	IconDemoApp app = new IconDemoApp();
                    app.setVisible(true);
     
                    new Thread(app).start();
                }
            });
        }
     
        public void run() {
        	app = this;
            try {
                for (numimage = 0; numimage < 3; numimage++) {
                    SwingUtilities.invokeLater(new Runnable() { 
                    	public void run() {app.afficherImage(numimage);}
                    });
                	Thread.sleep(2000);
            	} 
            } catch (Exception e) {		}
    	}
    P.S. : Si n'a rien compris quand je parlais de l'EDT, va lire ça (super tutoriel).

  4. #4
    Membre du Club Avatar de smh_master
    Inscrit en
    Août 2005
    Messages
    143
    Détails du profil
    Informations forums :
    Inscription : Août 2005
    Messages : 143
    Points : 53
    Points
    53
    Par défaut
    j'ai testé ce que tu m'as dit mais apparement il y a un problème dans l'instruction suivante :
    new Thread(app).start();

    Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: Uncompilable source code

    Never forget this : Relax & just stay cool
    Tout savoir doit être partagé par tout le monde,
    sinon on ne peut pas évoluer dans le bon sens

  5. #5
    Membre du Club Avatar de smh_master
    Inscrit en
    Août 2005
    Messages
    143
    Détails du profil
    Informations forums :
    Inscription : Août 2005
    Messages : 143
    Points : 53
    Points
    53
    Par défaut
    j'ai presque trouvé ce que je cherche :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    package slider;
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.DisplayMode;
    import java.awt.FlowLayout;
    import java.awt.Frame;
    import java.awt.Graphics;
    import java.awt.Image;
    import java.awt.Toolkit;
    import java.awt.Window;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.io.File;
    import java.io.IOException;
    import javax.imageio.ImageIO;
    import javax.swing.ImageIcon;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
     
    public class Interface extends JFrame  implements ActionListener{
     
    	private JPanel p1 = new JPanel();
        private JPanel p2 = new JPanel();
    	private JButton B1 = new JButton("Afficher");
    	private JButton B2 = new JButton("Annuler");
        private JLabel label= new JLabel();
        private String directory="D:/divers/";
        private String listImages[]=getFilesNames(directory);
        private ImageIcon img = new ImageIcon("D:/loading/loading.gif");
     
        public int getScreenWidth(){
            Dimension dimm = Toolkit.getDefaultToolkit ().getScreenSize();
            return dimm.width;
        }
        public int getScreenHeight(){
            Dimension dimm = Toolkit.getDefaultToolkit ().getScreenSize();
            return dimm.height;
        }
     
        public Interface(){
     
        	 this.setTitle("Afficher image");
             this.setSize(800, 600);
             //this.setLocationRelativeTo(null);
             this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
             //JFrame f = new JFrame();
             Window w = new Window(this);
             Dimension dimm = Toolkit.getDefaultToolkit ().getScreenSize();
             w.setSize(dimm.width,dimm.height);
             this.setLocation(0,0);
             //this.setSize(dimm.width, dimm.height);
             //end of addition
     
             p1.setLayout(new BorderLayout() ) ;
             p2.setLayout(new FlowLayout());
             p1.add(label, BorderLayout.CENTER);
             p1.add(p2, BorderLayout.SOUTH);
             label.setSize(32, 32);
             p2.add(B1);
             p2.add(B2);
             this.setContentPane(p1);
             //this.setVisible(true);
             B1.addActionListener(new BoutonListener());
             B2.addActionListener(new BoutonListener());
    	}
        public String [] getFilesNames(String directory){
            File fd=new File(directory);
            String fichiers[];
            fichiers=fd.list();
            for (int i = 0; i < fichiers.length; i++) {
                fichiers[i]=directory+fichiers[i];
     
            }
            return fichiers;
        }
    	@Override
    	public void actionPerformed(ActionEvent e) {
    		// TODO Auto-generated method stub
     
    	}
    	public class Picture extends JPanel {
     
    		public void paintComponent(Graphics g){
                    try {
                            Image img = ImageIO.read(new File("D:/loading/loading.gif"));
                            g.drawImage(img, 200, 200, this);
     
                    } catch (IOException e) {
     
                            e.printStackTrace();
                    }
     
            }
     
     
    }
    	class BoutonListener  implements ActionListener{
    		public void actionPerformed(ActionEvent e) {
    			Object source = e.getSource();
     
    			if(source == B1){
                    for (int i = 0; i < listImages.length; i++) {
                         img = new ImageIcon(listImages[i]);
                         label.setIcon(img);
                         System.out.println(label.getSize().height+" "+label.getSize().height);
                         label.paintAll(getGraphics());
                         try {
                            Thread.sleep(500);
                        } catch (Exception ee) {
                        }
                    }
     
    			}
                else if (source == B2){
                    //label.setIcon(null);
                    img = new ImageIcon("D:/loading/loading.gif");
                    label.setIcon(img);
     
                }
            }
        }
        public static void main(String args[]) {
            Interface ii=new Interface();
            ii.setVisible(true);
            /*ScreenManager sm = new ScreenManager();
            DisplayMode dm;
            dm=new DisplayMode(1280,800,16,DisplayMode.REFRESH_RATE_UNKNOWN);
            sm.setFullScreen(ii,dm);*/
        }
    }
    mon seul soucis maintenant c'est la taille des images qui s'affichent:
    les images que j'ai sont de tailles différentes et ce que je veux c'est les afficher centré (vertical et horizontal) et aussi au cas où il dépasse la taille de l'écran il faut les redimensionner tout en gardant la proportionalité.
    merci
    Never forget this : Relax & just stay cool
    Tout savoir doit être partagé par tout le monde,
    sinon on ne peut pas évoluer dans le bon sens

  6. #6
    Membre à l'essai
    Profil pro
    Inscrit en
    Juin 2009
    Messages
    17
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2009
    Messages : 17
    Points : 18
    Points
    18
    Par défaut
    Salut,

    Désolé pour mon code mais mon eclipse arrivait sans problème à le compiler chez moi. le fait que tu n'est pas réussi me laisse perplexe.

    Ensuite pour ton code actuellement, il y a un très gros problème. J'avais raison, tu veux achever EDT, tu aurais du lire le tutoriel que je te proposais. Parce que ton bouton Annuler ne sert à rien. En effet, ActionPerfomed agit dans l'EDT et donc il gèle avec ton Tread.sleep, ne pouvant plus prendre en compte aucun élément. Ouvre ton traitement dans un autre Thead qui rapellera EDT en tant voulu.

    Ensuite pour l'image, javadoc a la réponse

    Pour le positionnement, je ne voie pas d'autres solutions que de le faire à la main. Tu fais la taille de canvas moins la taille de l'image et tu divise par deux. Tu obtiens la position de l'image.

    Netwak

  7. #7
    Membre du Club Avatar de smh_master
    Inscrit en
    Août 2005
    Messages
    143
    Détails du profil
    Informations forums :
    Inscription : Août 2005
    Messages : 143
    Points : 53
    Points
    53
    Par défaut
    - pour mettre mon label centré voici le code
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    label.setHorizontalAlignment(JLabel.CENTER);
             label.setVerticalAlignment(JLabel.CENTER);
    et ça marche nickel.
    - En faite tu as raison concernant le bouton annuler ça sert à rien pour le moment puisque j'ai pas encore écrit le code adéquat.
    - pour le ETD je vais me concentrer bien pour comprendre son principe parceque là il faut lire tout le doc à tête reposée.
    et je vais reposter une autre fois.
    juste une question à l'aveuglette : est ce que je peux intégrer un lecteur de vidéo dans le frame pourqu'il puisse lire image et vidéo à la fois ?
    Never forget this : Relax & just stay cool
    Tout savoir doit être partagé par tout le monde,
    sinon on ne peut pas évoluer dans le bon sens

  8. #8
    Membre à l'essai
    Profil pro
    Inscrit en
    Juin 2009
    Messages
    17
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2009
    Messages : 17
    Points : 18
    Points
    18
    Par défaut
    Bonjour,

    Non ton bouton ne marche pas. Si tu n'écris aucun code dans un bouton, il ne fais rien mais il fonctionne. Là on ne peut pas appuyer dessus. Dés que le code du bouton sera mis, le bouton continuera de ne pas marcher.

    Pour lire ton diaporama à part de ton lecteur vidéo intégré, il faudra, je pense, que tu crée le diaporama dans un fichier qu'il comprend, genre swf.

    Netwak.

  9. #9
    Membre du Club Avatar de smh_master
    Inscrit en
    Août 2005
    Messages
    143
    Détails du profil
    Informations forums :
    Inscription : Août 2005
    Messages : 143
    Points : 53
    Points
    53
    Par défaut
    au faite dès le départ mon dossier contient des images et des vidéos donc je cherche une solution pour lire les 2 à la fois en mode diaporama et en boucle infini.
    voilà
    Never forget this : Relax & just stay cool
    Tout savoir doit être partagé par tout le monde,
    sinon on ne peut pas évoluer dans le bon sens

Discussions similaires

  1. lecture d'une image à partir d'un dossier
    Par yasminacha dans le forum Android
    Réponses: 5
    Dernier message: 28/04/2011, 15h45
  2. afficher des images à partir d'un dossier externe
    Par belfafi dans le forum Flash
    Réponses: 1
    Dernier message: 22/04/2010, 00h12
  3. selection d'une liste d'image à partir d'un dossier
    Par bachboucha dans le forum Langage
    Réponses: 2
    Dernier message: 06/11/2008, 13h31
  4. selection d'une liste d'image à partir d'un dossier
    Par bachboucha dans le forum Général JavaScript
    Réponses: 4
    Dernier message: 05/11/2008, 15h41
  5. Modif à un tutoriel j'ai trouvé : Loader mes images à partir d'un dossier externe
    Par Renegade_Mtl dans le forum ActionScript 1 & ActionScript 2
    Réponses: 1
    Dernier message: 02/04/2008, 07h05

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo