~ubuntu-branches/ubuntu/hardy/libtioga-ruby/hardy

« back to all changes in this revision

Viewing changes to split/Tioga/pdfimage.c

  • Committer: Bazaar Package Importer
  • Author(s): Vincent Fourmond, Paul van Tilburg, Vincent Fourmond
  • Date: 2007-06-03 21:11:47 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070603211147-ndimn314vp8qepvx
Tags: 1.6-1
[ Paul van Tilburg ]
* Added team address, since this package is team-maintained!

[ Vincent Fourmond ]
* New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
260
260
   height = rb_Integer(height);
261
261
   mask_obj_num = rb_Integer(mask_obj_num);
262
262
   filename = rb_String(filename);
263
 
   c_show_jpg(p, RSTRING(filename)->ptr, NUM2INT(width), NUM2INT(height), dest, NUM2INT(mask_obj_num));
 
263
   c_show_jpg(p, RSTRING_PTR(filename), NUM2INT(width), NUM2INT(height), dest, NUM2INT(mask_obj_num));
264
264
   return fmkr;
265
265
}
266
266
 
487
487
      hival = rb_Integer(hival);
488
488
      hivalue = NUM2INT(hival);
489
489
      lookup = rb_String(lookup);
490
 
      lookup_str = (unsigned char *)(RSTRING(lookup)->ptr);
491
 
      lookup_len = RSTRING(lookup)->len;
 
490
      lookup_str = (unsigned char *)(RSTRING_PTR(lookup));
 
491
      lookup_len = RSTRING_LEN(lookup);
492
492
   }
493
493
   dest[0] = convert_figure_to_output_x(p,NUM2DBL(llx));
494
494
   dest[1] = convert_figure_to_output_y(p,NUM2DBL(lly));
497
497
   dest[4] = convert_figure_to_output_x(p,NUM2DBL(ulx));
498
498
   dest[5] = convert_figure_to_output_y(p,NUM2DBL(uly));
499
499
   int obj_num = c_private_show_image(p, image_type, dest, (interpolate != Qfalse), (reversed == Qtrue), NUM2INT(w), NUM2INT(h), 
500
 
      (unsigned char *)RSTRING(data)->ptr, RSTRING(data)->len, mask_min, mask_max, hivalue, lookup_str, lookup_len, NUM2INT(mask_obj_num));
 
500
      (unsigned char *)RSTRING_PTR(data), RSTRING_LEN(data), mask_min, mask_max, hivalue, lookup_str, lookup_len, NUM2INT(mask_obj_num));
501
501
   return INT2FIX(obj_num);
502
502
}
503
503