Module: RFreeImage
- Defined in:
- lib/rfreeimage/image.rb,
lib/rfreeimage/version.rb,
ext/rfreeimage/rfi_main.c
Defined Under Namespace
Modules: Color, Filter, ImageBPP
Classes: Image, ImageError
Constant Summary
collapse
- VERSION =
'0.2.4'
Class Method Summary
collapse
Class Method Details
.freeimage_string_version ⇒ Object
52
53
54
55
56
57
58
|
# File 'ext/rfreeimage/rfi_main.c', line 52
static VALUE rb_rfi_string_version(VALUE self)
{
VALUE result = Qnil;
const char *v = FreeImage_GetVersion();
result = rb_str_new(v, strlen(v));
return result;
}
|
.freeimage_version ⇒ Object
46
47
48
49
50
|
# File 'ext/rfreeimage/rfi_main.c', line 46
static VALUE rb_rfi_version(VALUE self)
{
return rb_ary_new3(3, INT2NUM(FREEIMAGE_MAJOR_VERSION),
INT2NUM(FREEIMAGE_MINOR_VERSION), INT2NUM(FREEIMAGE_RELEASE_SERIAL));
}
|