You are here

function image_gd_textimage_draw_ellipse in Textimage 7.3

Draw an ellipse.

File

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

Code

function image_gd_textimage_draw_ellipse($image, $data = array()) {
  $color = image_toolkit_invoke('textimage_imagecolor', $image, array(
    array(
      'rgba' => $data['rgba'],
    ),
  ));
  return imagefilledellipse($image->resource, $data['c'][0], $data['c'][1], $data['width'], $data['height'], $color);
}