ãã£ã±ããã®ããã°ã©ã ã§ãQuickTimeã ã¼ãã¼ãä½æãã¦ã¿ã¾ããã
ã¨ãããã¨ã§ããã®QuickTimeã ã¼ãã¼ä½æé¨åã
JMFã使ãã®ã§ãããããJMFã®ã©ã¤ãã©ãªãã¨ã£ã¦ãã¦ãjmf.jarãã¯ã©ã¹ãã¹ã«å«ããå¿
è¦ãããã¾ãã
Oracle Technology Network for Java Developers | Oracle Technology Network | Oracle
ä»åã¯ã ã¼ãã¼ã®åçãªã©ã¯è¡ããªãã®ã§ãé©å½ãªPlatformãé¸ãã§Optional Filesã®Cross-platform Javaçã使ã£ã¦ããã¨ãé¢åãªJMFã¤ã³ã¹ãã¼ã«ã®å¿
è¦ãããã¾ããã
JMFã使ã£ã¦åç»ãã¡ã¤ã«ãä½æãããµã³ãã«ã¯ããã§ã
Oracle Technology Network for Java Developers | Oracle Technology Network | Oracle
ãã©ããã®ã½ã¼ã¹ã¯ãã®ã¾ã¾ä»ã®ç¨éã§ä½¿ããå½¢ã§ã¯ãªãã®ã§ãæ±ç¨ã§ä½¿ãããã®ãä½ã£ã¦ã¿ã¾ããã
ä¸ã®ImageToMovã¯ã©ã¹ã使ãã¨ãããªæãã§ã³ã¼ããæ¸ãã¾ãã
public static void main(String[] arg){ ImageReader ir = new ImageToMov.ImageReader() { public BufferedImage getImage(int idx) { if(idx >= 4) return null; BufferedImage img = new BufferedImage(400, 300, BufferedImage.TYPE_INT_RGB); Graphics g = img.getGraphics(); g.setColor(Color.WHITE); g.fillRect(0, 0, 400, 300); g.setColor(Color.GREEN); if(idx >= 1){ g.drawLine(0, 0, 400, 300); } if(idx >= 2){ g.drawLine(0, 300, 400, 0); } if(idx >= 3){ g.setColor(Color.BLUE); g.fillOval(150, 100, 100, 100); } g.dispose(); return img; } }; String filename = "C:\\Users\\naoki\\Desktop\\test.mov"; ImageToMov.createMovFromImages(filename, 400, 300, 1, ir); }
ããããã¨ããããªæãã®movãã¡ã¤ã«ãã§ãã¾ãã
ImageToMovã¯ã©ã¹ã®ã½ã¼ã¹ã¯ãããªæãã§
ç¶ããèªã