Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > 6e70548b0612ecb55935ca2cc9d0f458 > files > 377

ruby-imlib2-0.5.2-3mdv2008.1.x86_64.rpm

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>draw_line (Imlib2::Image)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre>/* 
 * Draw a line at the specified coordinates.
 *
 * Examples:
 *   # draw line from 10, 10 to 20, 20 using context color
 *   im.draw_line 10, 10, 20, 20
 *
 *   # draw magenta line from 5, 10 to 15, 20
 *   im.draw_line 5, 10, 15, 20, Imlib2::Color::MAGENTA
 *
 *   # draw line from 10, 15 to 20, 25 using context color
 *   im.draw_pixel [10, 15], [20, 25]
 *
 *   # draw line from 1000, 2000 to 2100, 4200 with funky color
 *   my_color = Imlib2::Color::CmykColor.new 100, 255, 0, 128
 *   im.draw_line [1000, 2000], [2100, 4200], my_color
 *
 */
static VALUE image_draw_line(int argc, VALUE *argv, VALUE self) {
</pre>
</body>
</html>