ext/image.c
static
VALUE ray_image_write(VALUE self, VALUE filename) {
  if (!say_image_write(ray_rb2image(self), StringValuePtr(filename))) {
    rb_raise(rb_eRuntimeError, "%s", say_error_get_last());
  }

  return self;
}
/*
 * @overload write(filename)
 *   Saves the image in any format supported by Ray
 *
 *   This will try to guess the format based on the filename extension
 *   (regardless of the case). If Ray can't guess the filename, the image will
 *   be saved anyway using TGA.
 */
@overload write(filename)
Saves the image in any format supported by Ray

This will try to guess the format based on the filename extension
(regardless of the case). If Ray can't guess the filename, the image will
be saved anyway using TGA.
@overload write ( filename ) Saves the image in any format supported by Ray This will try to guess the format based on the filename extension ( regardless of the case ) . If Ray can ' t guess the filename the image will be saved anyway using TGA .
static
VALUE ray_image_write(VALUE self, VALUE filename) {
  if (!say_image_write(ray_rb2image(self), StringValuePtr(filename))) {
    rb_raise(rb_eRuntimeError, "%s", say_error_get_last());
  }
  return self;
}
static VALUE ray_image_write ( VALUE self , VALUE filename ) { if ( ! say_image_write ( ray_rb2image ( self ) , StringValuePtr ( filename ) ) ) { rb_raise ( rb_eRuntimeError , " " , say_error_get_last ( ) ) ; } return self ; }
@overload write(filename)
   Saves the image in any format supported by Ray
@overload write ( filename ) Saves the image in any format supported by Ray