2017-01-14 6 views
0
public class Main { 
    public static void main(String[] args) throws MalformedURLException { 
     URL url= new URL("<file path>"); 
     Icon icon= new ImageIcon(url); 
     JLabel label= new JLabel(icon); 

     JFrame mainFrame = new JFrame("Test"); 
     mainFrame.getContentPane().add(label); 
     mainFrame.setSize(800, 600); 
     mainFrame.setVisible(true); 
     mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 
     mainFrame.setResizable(false); 
    } 
} 

Gifファイルの速度を変更するにはどうすればよいですか? JFrameフレームの速度を変更する方法を見つけようとしましたが、何も見つかりませんでした。GIFファイルの速度を変更する方法

+1

ルック:

identify -verbose your.gif | grep Delay Delay: 5x100 ... 

が新しいGIFを作成します。現在の速度を検出すること

ためImageMagickを使用しますof-animated-gif-in-java – Tunaki

答えて

1

できません。あなたができることは、あなたの現在のものに基づいて別のGIFを作成することだけです。 http://stackoverflow.com/questions/26801433/fix-frame-rate-に

convert -delay 10x100 your.gif your_slow.gif 
関連する問題