tk :: À̹ÌÁö :: °è»êTK :: Image :: °è»êÀº ±×·¡ÇÈ °è»êÀ»À§ÇÑ Perl È®ÀåÀÔ´Ï´Ù. | |
Áö±Ý ´Ù¿î·Îµå |
tk :: À̹ÌÁö :: °è»ê ¼øÀ§ ¹× ¿ä¾à
±¤°í
- ƯÇã:
- Perl Artistic License
- °¡°Ý:
- FREE
- °Ô½ÃÀÚ À̸§:
- Torsten Knorr
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~knorr/
tk :: À̹ÌÁö :: °è»ê ű×
tk :: À̹ÌÁö :: °è»ê ¼³¸í
TK :: Image :: °è»êÀº ±×·¡ÇÈ °è»êÀ»À§ÇÑ Perl È®ÀåÀÔ´Ï´Ù. TK :: Image :: °è»êÀº ±×·¡ÇÈ °è»êÀ»À§ÇÑ Perl È®ÀåÀÚÀÔ´Ï´Ù. ½Ä ³ëÇÁ # ----------------------------------) ---------------- tk :: À̹ÌÁö :: °è»ê; My @points_oval = (10, 10, 30, 50); ³» @points_circle = (20, 20, 60, 60); @points_polygon = (136, 23, 231, 55, 463, 390, 338, 448, 182, 401, 148, 503, 15, 496, 9, 87); # polygon = (x1, y1, x2, y2, x3, y3, x4, y4, ... µîµî) # ----------------------- --------------------------- ³» $ cal = tk :: À̹ÌÁö :: °è»ê -> new (); ³» $ ref_array = $ cal-> getPointSinoval (@points_oval); # ³» $ ref_array = $ cal-> getPointSoutoval (@points_oval); # ³» $ ref_array = $ cal-> getPointSecircirle (@points_circle); # ³» $ ref_array = $ cal-> getPointSoutCircle (@points_circle); # ³» $ ref_array = $ cal-> getPointSinPolygon (@points_polygon); # ³» $ ref_array = $ cal-> getPointSoutPolygon (@points_polygon); (@ {$ ref_array}) {Àμâ ( "x : $ _-> y : $ _-> n"); } ³» $ ref_array1 = $ cal-> getLinesinoval (@points_oval); # ³» $ ref_array1 = $ cal-> getLinesOutoval (@points_oval); # $ ref_array1 = $ cal-> getLinesIRCircle (@points_circle); # ³» $ ref_array1 = $ cal-> getLinesOutcircle (@points_circle); # ³» $ ref_array1 = $ cal-> getLinesinpolygon (@points_polygon); # ³» $ ref_array1 = $ cal-> getLinesOutpolygon (@points_polygon); (@ {$ ref_array1}) {print ( "x1 : $ _> y1 : $ _-> x2 : $ _-> Y2 : $ _-> n" ); } # --------------------------------------------------------------------------------------- - my $ cal1 = tk :: À̹ÌÁö :: °è»ê -> new (-points => @points_circle, -form => "¿ø", # ¶Ç´Â "Ÿ¿ø"¶Ç´Â "´Ù°¢Çü"); $ Subset ( "points_inside", "points_outside") {print ( "n $ ÇÏÀ§ ÁýÇÕ ¿ø : n"); (@ {$ CAL1 -> {$ SUBSET}}) {Àμâ ( "X : $ _-> Y : $ _-> N"); }} My $ Subset ( "lines_inside", "linion_outsidids") {Àμâ ( "n $ ÇÏÀ§ ÁýÇÕ ¿ø : n"); (@ {$ cal1 -> {$ subset}}) {print ( "x1 : $ _> y1 : $ _-> x2 : $ _-> Y2 : $ _- > n "); }} # ----------------------------------------------------------------------- - my $ cal2 = tk :: À̹ÌÁö :: °è»ê -> new (-points => @points_polygon, # Àû¾îµµ 3 Á¡ ÇÊ¿ä - Àû¾îµµ - polygon ", -subset =>"lines_outside ", # defaults to" ¸ðµÎ" ); TK¸¦ »ç¿ëÇϽʽÿÀ; MY $ MW = MADWINDOW-> NEW (); MY $ CANVAS = $ MW-> ĵ¹ö½º (-width => 800, -height => 600,) -> pack (); (@ {$ cal2 -> {line_outside}}) {$ canvas-> createLine (@ {$ _}); } mainloop (); # ---------------------------------------------------- TK¸¦ »ç¿ëÇϽʽÿÀ; tk :: jpeg; MY $ MW = MADWINDOW-> NEW (); MY $ image = $ mw-> »çÁø (-file => "test.jpg"); MY $ CAL3 = TK :: À̹ÌÁö :: °è»ê -> new (); ³» $ ref_points = $ cal3-> getPointSoutCircle (50, 50, 150, 150); $ image-> put ( "# ffffff", -to => $ _-> , $ _-> ) for (@ {$ ref_points}); $ image-> write ( "new.jpg", -from => 50, 50, 150, 150); # ---------------------------------------------------- ÀÌ ¸ðµâÀº °£´ÜÇÑ ±×·¡ÇÈ °´Ã¼¿¡¼ ³»ºÎ ¶Ç´Â ¿ÜºÎÀÇ Æ÷ÀÎÆ®¿Í ¼±À» °è»êÇÕ´Ï´Ù. ÀÌ ½Ã°£¿¡ °¡´ÉÇÑ °´Ã¼ : "Ÿ¿ø", "¿ø", "´Ù°¢Çü"¿ä±¸ »çÇ× : ¡¤ Perl.
tk :: À̹ÌÁö :: °è»ê °ü·Ã ¼ÒÇÁÆ®¿þ¾î
net :: connection :: sniffer :: util.
NET :: Connection :: Sniffer :: UtilÀº NetAddr À¯Æ¿¸®Æ¼ÀÔ´Ï´Ù. ...
177
Gooooops.
GooOoops´Â GoogleÁöµµ ŸÀÏÀÇ GPS ¼ö½Å±â¿¡¼ ¾òÀº À§Ä¡¸¦ Ç¥½ÃÇÏ´Â Java MIDletÀÔ´Ï´Ù. ...
125