Bessemer

Members
  • Content count

    25
  • Joined

  • Last visited

Posts posted by Bessemer


  1. I am currently using the program "fusion chart v3 Enterprise version".

    When I tried to export into an image, I couldn't find the exportHandlers folder which I was able to when I was using the evaluation version, and I couldn't see the "save as image" menu on my right click.

    Is the file I have the problem? or am I just not capable of using your program?

    and I use PHP.

     

    Try integrating and implementing an image saving add-on to the chart exporting application.


  2. I only know how to I convert Fusionchart SVG to image format, such as png, gif, or jpeg, but I don't know how to convert Fusionchart SVG tO DataUrl. SVG is a vector image format, and png, gif, bmp or jpeg is raste image files, it is quite easy to convert vector image to raster image as long as you refer to a mature image converter, then load and click the convert button, you can get raste image formats.


  3. I agree with following steps to save to pdf document:

    1. Batch export the charts and save them as images.

    2. When the export callback function is raised call the PDF generator to convert the entire page into PDF.

    3. Now use PHP library functions to overlay the exported chart images at the required positions in the generated PDF file.

     

    Or you may try to use a pdf converting tool to directly convert the chart as image.

     

     


  4. If you are going to export and save the charts directly as images, such as JPG/JPEG/PNG/PDF directly without rendering it in the browser, you may integrate an image saving plugin within your ipage loading application. Of course, you need to be sure that the image saving add-on should be compatible with your currently used application.


  5. Please try this image saving methods to program a simple image saving application, which supports saving image file using different image encoders, including tif encoder, jpg encoder, png encoder, bmp encoder and gif encoder.

     

    Shared Sub SaveImageFile(image As REImage, filePath As String)
    End Sub
    Public Shared Sub SaveImageFile(image As REImage, filePath As String, enc As BaseEncoder)
    End Sub

  6. The programming concept of adding and showing line annotation on linear gauge is similar with line annnotation add-on to raster image file:

     

    Private Sub button1_Click(sender As Object, e As EventArgs)

    Dim obj As LineAnnotation = AnnotationGenerator.CreateLineAnnotation(60F, 45F, 560F, 228F)
    'create a new LineAnnotation with start and end point
    obj.LinePen = PenGenerator.CreateLinePen(Color.Blue, 5F)
    'set line color and width
    'set line startcap
    obj.LinePen.StartCap = New RasterEdge.Imaging.Annotation.Basic.LineCap()
    obj.LinePen.StartCap.Cap_Width = 2F
    'set startcap width
    obj.LinePen.StartCap.CapStyle = RasterEdge.Imaging.Annotation.LineCapStyle.Diamond
    'set startcap style
    'set line endcap
    obj.LinePen.EndCap = New RasterEdge.Imaging.Annotation.Basic.LineCap()
    obj.LinePen.EndCap.Cap_Width = 10F
    obj.LinePen.EndCap.CapStyle = RasterEdge.Imaging.Annotation.LineCapStyle.Rectangle

    Dim folderName As String = "C:/"
    Dim img As Bitmap = obj.CreateAnnotation()
    img.Save(folderName & "LineAnnotation.png")
    End Sub


  7. Did  you mean that you want to save the image from pdf document independently but not save the whole pdf file? Well, to this issue, how about exporting all the image files out from the pdf by using an ocr reader to extract the text and image. After extracting the image out, then you can use an image saving plugtin to save the images as your needs.


  8. well, have you ever tried to implement a pdf saving plugin to your project, I can share following pdf saving methods with you that come from a third party, you can call the apis to prorgam a small pdf saving application:

     

     

    Private Sub Save(filePath As [string]) Implements PDFDocument.Save
    End Sub
    Private Sub Save(s As Stream) Implements PDFDocument.Save
    End Sub
    Private Sub SaveDocumentFile(doc As REDocument, filePath As [string], decoder As BaseDecoder) Implements REFile.SaveDocumentFile
    End Sub


  9. I am not so clear on using annotation to render a image. We know, annotation is a object tool that we use to highlight, note, underline the image or document page contents. I linked the url, and it explain how to add annotation to image using XML code. I didn't use XML code tp program annotation tool, but javascript and asp.net controls. If it can be helpful, my pleasure.


  10. As to how to create and set the position of annotation text to the center above the gauge like fusion charts XT which has option of "Caption", we can call the methods of location of X and Y coordinates, see text annotation creation and positon adjusting below:

     

    Public Shared Function
    CreateTextAnnotation(x As Single, y As Single, w As Single, h As Single, text As String, font As Font) As TextAnnotation
    End Function

    Public Shared Function
    CreateTextAnnotation(x As Single, y As Single, w As Single, h As Single, text As String, font As Font, _
    fontBrush As AnnotationBrush, outline As AnnotationPen, fill As AnnotationBrush, shadow As AnnotationBrush, shadowX As Single, shadowY As Single) As TextAnnotation
    End Function