Windowsã§PPTãJPGãPNGã®ç»åã«ããããªã¨æã£ããDrawToBitMapããã解ããªãã£ããã PowerPointã®APIãå©ããã¨ã«ããã PowerPointã®ç»åå SlideSaveAsPNG.rb #!/usr/bin/env ruby require 'win32ole' #PPTã¢ããªãèµ·åãæ¥ç¶ pp = WIN32OLE.new 'PowerPoint.Application' #PPTã®ã¡ã¤ã³Windowãæç» pp.Visible = true if pp.Visible == 0 #ã¤ãã³ããæ±ããããã«ããã ev = WIN32OLE_EVENT.new pp ,'EApplication' #PPå®ç¾©æ¸ã¿å¤æ°ãRubyå¤æ°ã«ãããã³ã°ããã class PowerPointConst end WIN32OLE.const_load pp, P
{{#tags}}- {{label}}
{{/tags}}