| Tivo :: HME :: Resource. TiVo :: HME :: Resource´Â TiVo HME ÀÚ¿øÀÇ Perl ĸ½¶ÈÀÔ´Ï´Ù. |
Áö±Ý ´Ù¿î·Îµå |
Tivo :: HME :: Resource. ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Perl Artistic License
- °Ô½ÃÀÚ À̸§:
- Mark Ethan Trostler
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~metzzo/Java-4.7/Java.pm
Tivo :: HME :: Resource. ű×
Tivo :: HME :: Resource. ¼³¸í
Tivo :: HME :: Resource´Â TiVo HME ÀÚ¿øÀÇ Perl ĸ½¶ÈÀÔ´Ï´Ù. Tivo :: HME :: Resource´Â TiVo HME ResourceÀÇ Perl ĸ½¶ÈÀÔ´Ï´Ù .Synopsis Tivo :: HME :: Application; @isa = qw (Tivo :: HME :: Applicaton); # Buncha Resources¸¦ ¸¸µì´Ï´Ù. # r, g, b, alpha = 0 ... 255 My $ color = $ t_resource-> »ö»ó ($ »¡°, $ green, $ blue, $ alpha); # ³» $ font = $ t_resource-> ÆùÆ® ([ '½Ã½ºÅÛ'| '±âº»', $ point_size, ½ºÅ¸ÀÏ); # Æ÷ÀÎÆ® Å©±â´Â float # ½ºÅ¸ÀÏÀÔ´Ï´Ù : # $ t_const-> font_plain # $ t_const-> font_bold # $ t_const-> font_italic # $ t_const-> font_bolditalic # true type font (ÆÄÀÏÀ» Æ÷ÇÔÇÑ ÆÄÀÏÀÌ ÇÊ¿äÇÕ´Ï´Ù) ³» $ ttf = $ t_resource-> ttf_file ($ ttf_file_name); # ÅؽºÆ® My $ text = $ T_Resource-> ÅؽºÆ® ($ ±Û²Ã, $ color, $ string); # $ Font (TTF ¶Ç´Â ±Û²Ã) ¹× $ »ö»óÀº # $ ¹®ÀÚ¿ÀÌ yer ¹®ÀÚ¿ # À̹ÌÁö (JPEG, MPEG ¶Ç´Â PNG)°¡ ÀÖ½À´Ï´Ù. MY $ image = $ t_resource-> image_file ($ path_to_image_file); # soess my $ sound = $ t_resource-> sound_file ($ path_to_sound_file); # Stream My $ Sound = $ T_Resource-> ½ºÆ®¸² ($ URL, $ CONTONT_TYPE, $ PLAY); # $ URL RESOUCE RESOUCE # $ CONTURE_TYPE ½ºÆ®¸²ÀÌ # $ PLAYÀÎÁö ¾Ë ¼ö ÀÖµµ·Ï TIVOÀÇ ÈùÆ®ÀÔ´Ï´Ù. ); # $ durationÀº miliponds # $ your = -1ÀÔ´Ï´Ù. À§Ä¡ ($ POS); # $ POS = ¹Ð¸® ÃÊ ÀÚ¿ø # ¼Óµµ $ ÀÚ¿ø -> SET_SPEED (0 .. 1.); # 0 = ÀϽà ÁßÁö # 1 = Á¤»óÀûÀÎ ¼Óµµ·Î Àç»ý # Å° À̺¥Æ®°¡ ³» $ À̺¥Æ® = $ T_Resource-> make_key_event (1, $ Á¶Ä¡, $ code, $ rawcode); # Áö±Ý ´çÀå '1'À» ³ÖÀ» ¼ö ÀÖ½À´Ï´Ù ... # $ Á¶Ä¡´Â »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù : # $ t_const-> key_press # $ t_const-> key_repeat # $ t_const-> key_release # $ ÄÚµå - ¸ðµç Å°¸¦ º¸¾Æ¶ó. TiVo :: HME :: Const # $ Rawcode¿¡ Á¤ÀÇ µÈ ÄÚµå´Â ¹«¾ùÀÌµç µÉ ¼ö ÀÖ½À´Ï´Ù # Å° À̺¥Æ® º¸³»±â $ T_Resource-> set_event (1, $ ¾Ö´Ï¸ÞÀ̼Ç, $ À̺¥Æ®); # ±×³É '1'À» Áö±Ý ´çÀå ³ÖÀ¸½Ê½Ã¿À ... # $ ¾Ö´Ï¸ÞÀ̼ÇÀº (¼±Åà »çÇ×) ¾Ö´Ï¸ÞÀÌ¼Ç ÀÚ¿ø (¹«½ÃÇÒ 0) # $ À̺¥Æ®´Â 'make_key_event'# ´Ý±â $ Resource-> ´Ý±â; # TIVO $ Resource-> Á¦°Å¿¡¼ ÀÚ¿ø Á¦°Å; $ image = $ t_resource-> image_file ( 'toivo.jpg'); ÀÚ¿øÀ» ¸¸µé°í Á¶ÀÛÇÕ´Ï´Ù. Áï, TiVO¿¡¼ Ç¥½Ã / Àç»ýÇÒº¸±â¿¡ ºä¿¡ ÇÒ´çÇÕ´Ï´Ù. ¿ä±¸ »çÇ× : ¡¤ Perl.
Tivo :: HME :: Resource. °ü·Ã ¼ÒÇÁÆ®¿þ¾î