KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /home/queenjbs/www/FusionChart/Code/RoR/SampleApp/lib/fusioncharts/exporter/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/queenjbs/www/FusionChart/Code/RoR/SampleApp/lib/fusioncharts/exporter/fc_exporter_img.rb
=begin

  Copyright (c) 2009 Infosoft Global Private Limited
 
=end
# Export Handler for Image formats like jpg, png. 
class Fusioncharts::Exporter::FcExporterImg
  require 'fusioncharts/exporter/generator'

  #FusionCharts Exporter -  IMAGE Class
  #version 2.0 [ 19 February 2009]

  # Function to handle the export process
  def process_export(stream,meta,format)
    fc_error = nil
    @image=nil
    #ext = format.downcase
   @image=nil
    begin
      image_generator = Fusioncharts::Exporter::Generator::ImageGenerator.new(stream, meta["width"].to_i, meta["height"].to_i, meta["bgColor"],format)
      @image=image_generator.get_image
    rescue Exception => e
      print "Exception occurred="+e.to_s
      fc_error= Fusioncharts::Exporter::FcError.new("515")
    end
   return @image!=nil ? @image.to_blob : @image,fc_error!=nil ? fc_error : true
      
  end
  # Writes the image to file.
  def write_to_file(fileName)
    @image.write(fileName)
  end
end

Anon7 - 2021