Changeset 7566
- Timestamp:
- 04/19/12 10:21:14 (13 months ago)
- File:
-
- 1 edited
-
ImageMagick/branches/ImageMagick-6/coders/svg.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ImageMagick/branches/ImageMagick-6/coders/svg.c
r7237 r7566 2733 2733 } 2734 2734 2735 #if defined(MAGICKCORE_RSVG_DELEGATE)2736 static void SVGSetImageSize(int *width,int *height,gpointer context)2737 {2738 Image2739 *image;2740 2741 image=(Image *) context;2742 *width=(int) (*width*image->x_resolution/72.0);2743 *height=(int) (*height*image->y_resolution/72.0);2744 }2745 #endif2746 2747 2735 #if defined(__cplusplus) || defined(c_plusplus) 2748 2736 } … … 2846 2834 ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed"); 2847 2835 rsvg_handle_set_base_uri(svg_handle,image_info->filename); 2848 rsvg_handle_set_size_callback(svg_handle,SVGSetImageSize,image,NULL);2849 2836 if ((image->x_resolution != 72.0) && (image->y_resolution != 72.0)) 2850 2837 rsvg_handle_set_dpi_x_y(svg_handle,image->x_resolution, … … 2875 2862 SetImageProperty(image,"svg:base-uri", 2876 2863 rsvg_handle_get_base_uri(svg_handle)); 2877 SetImageProperty(image,"svg:title",rsvg_handle_get_title(svg_handle));2878 SetImageProperty(image,"svg:description",2879 rsvg_handle_get_desc(svg_handle));2880 2864 if ((image->columns == 0) || (image->rows == 0)) 2881 2865 { … … 3136 3120 #endif 3137 3121 #if defined(MAGICKCORE_RSVG_DELEGATE) 3138 rsvg_init();3122 g_type_init(); 3139 3123 (void) FormatLocaleString(version,MaxTextExtent,"RSVG %d.%d.%d", 3140 3124 LIBRSVG_MAJOR_VERSION,LIBRSVG_MINOR_VERSION,LIBRSVG_MICRO_VERSION);
Note: See TracChangeset
for help on using the changeset viewer.
