Module: MagickWand

Defined in:
lib/magickwand.rb,
ext/magickwand/magickwand.c

Defined Under Namespace

Classes: Drawing, FatalImageMagickError, ImageMagickError, Wand

Constant Summary collapse

IMAGEMAGICK_CONFIG =
config_hash
QUANTUM_DEPTH =
LONG2FIX((long)qdepth)
QUANTUM_RANGE =
LONG2FIX((long)qrange)
QUANTUM_SIZE =
INT2FIX((int)sizeof(Quantum))
VERSION =
version

Class Method Summary collapse

Class Method Details

.list_fontsObject



84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# File 'ext/magickwand/magickwand.c', line 84

static VALUE magickwand_list_fonts(VALUE mod)
{
    unsigned long n, nfonts;
    char **fonts;
    volatile VALUE font_ary;

    font_ary = rb_ary_new();
    fonts = MagickQueryFonts("*", &nfonts);
    for (n = 0; n < nfonts; n++)
    {
        rb_ary_push(font_ary, rb_str_new2(fonts[n]));
    }
    return font_ary;
    mod = mod;
}

.option_values(*args) ⇒ Object

MagickWand.option_values(option-name) returns the valid values of the specified option, or all options if option-name is omitted. Values returned in a hash. The key is the option name and the value is an array of option values.



109
110
111
112
113
114
115
116
117
118
119
120
121
122
# File 'ext/magickwand/magickwand.c', line 109

static VALUE magickwand_option_values(int argc, VALUE *argv, VALUE mod)
{
    volatile VALUE option;
    char *name = NULL;

    (void) rb_scan_args(argc, argv, "01", &option);
    if (option != Qnil)
    {
        option = rb_String(option);
        name = StringValuePtr(option);
    }
    return mwr_option_values_to_hash(name);
    mod = mod;
}