You are here

function image_gd_textimage_draw_line in Textimage 7.3

Draw a line.

File

effects/textimage_text.gd.inc, line 278
GD2 toolkit for image manipulation within Textimage.

Code

function image_gd_textimage_draw_line($image, $data = array()) {
  $color = image_toolkit_invoke('textimage_imagecolor', $image, array(
    array(
      'rgba' => $data['rgba'],
    ),
  ));
  return imageline($image->resource, $data['a'][0], $data['a'][1], $data['b'][0], $data['b'][1], $color);
}