ext/RMagick/rmmain.c in rmagick-2.1.0 vs ext/RMagick/rmmain.c in rmagick-2.2.0

- old
+ new

@@ -1,6 +1,6 @@ -/* $Id: rmmain.c,v 1.233 2008/01/02 23:06:29 rmagick Exp $ */ +/* $Id: rmmain.c,v 1.236 2008/01/28 22:31:50 rmagick Exp $ */ /*============================================================================\ | Copyright (C) 2008 by Timothy P. Hunter | Name: rmmain.c | Author: Tim Hunter | Purpose: Contains all module, class, method declarations. @@ -563,10 +563,11 @@ rb_define_method(Class_Image, "initialize_copy", Image_init_copy, 1); rb_define_method(Class_Image, "inspect", Image_inspect, 0); rb_define_method(Class_Image, "level2", Image_level2, -1); rb_define_method(Class_Image, "level_channel", Image_level_channel, -1); rb_define_method(Class_Image, "linear_stretch", Image_linear_stretch, -1); + rb_define_method(Class_Image, "liquid_rescale", Image_liquid_rescale, -1); rb_define_method(Class_Image, "magnify", Image_magnify, 0); rb_define_method(Class_Image, "magnify!", Image_magnify_bang, 0); rb_define_method(Class_Image, "map", Image_map, -1); rb_define_method(Class_Image, "matte_flood_fill", Image_matte_flood_fill, 5); rb_define_method(Class_Image, "median_filter", Image_median_filter, -1); @@ -579,12 +580,14 @@ rb_define_method(Class_Image, "negate_channel", Image_negate_channel, -1); rb_define_method(Class_Image, "normalize", Image_normalize, 0); rb_define_method(Class_Image, "normalize_channel", Image_normalize_channel, -1); rb_define_method(Class_Image, "oil_paint", Image_oil_paint, -1); rb_define_method(Class_Image, "opaque", Image_opaque, 2); + rb_define_method(Class_Image, "opaque_channel", Image_opaque_channel, -1); rb_define_method(Class_Image, "opaque?", Image_opaque_q, 0); rb_define_method(Class_Image, "ordered_dither", Image_ordered_dither, -1); + rb_define_method(Class_Image, "paint_transparent", Image_paint_transparent, -1); rb_define_method(Class_Image, "palette?", Image_palette_q, 0); rb_define_method(Class_Image, "pixel_color", Image_pixel_color, -1); rb_define_method(Class_Image, "polaroid", Image_polaroid, -1); rb_define_method(Class_Image, "posterize", Image_posterize, -1); // rb_define_method(Class_Image, "plasma", Image_plasma, 6); @@ -1089,10 +1092,13 @@ ENUMERATOR(Rec601LumaColorspace) ENUMERATOR(Rec601YCbCrColorspace) ENUMERATOR(Rec709LumaColorspace) ENUMERATOR(Rec709YCbCrColorspace) ENUMERATOR(LogColorspace) +#if defined(HAVE_ENUM_CMYCOLORSPACE) + ENUMERATOR(CMYColorspace) +#endif END_ENUM // ComplianceType constants are defined as enums but used as bit flags DEF_ENUM(ComplianceType) ENUMERATOR(UndefinedCompliance) @@ -1264,13 +1270,10 @@ ENUMERATOR(BohmanFilter) #endif #if defined(HAVE_ENUM_BARTLETTFILTER) ENUMERATOR(BartlettFilter) #endif -#if defined(HAVE_ENUM_SENTINELFILTER) - ENUMERATOR(SentinelFilter) -#endif END_ENUM // GravityType constants DEF_ENUM(GravityType) ENUMERATOR(UndefinedGravity) @@ -1682,10 +1685,10 @@ str = rb_str_new2(Q(RMAGICK_VERSION_STRING)); OBJ_FREEZE(str); rb_define_const(Module_Magick, "Version", str); sprintf(long_version, - "This is %s ($Date: 2008/01/02 23:06:29 $) Copyright (C) 2008 by Timothy P. Hunter\n" + "This is %s ($Date: 2008/01/28 22:31:50 $) Copyright (C) 2008 by Timothy P. Hunter\n" "Built with %s\n" "Built for %s\n" "Web page: http://rmagick.rubyforge.org\n" "Email: rmagick@rubyforge.org\n", Q(RMAGICK_VERSION_STRING), mgk_version, Q(RUBY_VERSION_STRING));