2 Replies Latest reply on May 2, 2011 3:31 AM by S k R Pasha

    Increase dpi of a image (Chart , process )

    S k R Pasha Level 1

      Hi All,


          I am getting the generated image of Charts , processes etc from Java(JFree Charts) to Flex.

      But my requirement is to increase dpi of those charts in flex.


      How to do that ...is there any solution for that??

       

      thanks in Advance..

        • 1. Re: Increase dpi of a image (Chart , process )
          Karl_Sigiscar_1971 Level 3

          Why do you want to increase the resolution for ?

           

          Is that for printing (including the chart in a PDF form) or for screen display ?

           

          I say that because if you were in the case where you would have Flex generated charts that you would want to take a snapshot of and send as XML data to the LCDS server for on the fly PDF generation, you could use ImageSnapshot.captureImage(source, dpi);

           

          When I have to display logos or charts in a PDF, I always make sure their resolution is 300 dpi so that the printing quality is high.

          • 2. Re: Increase Resolution of a image (Chart , process )
            S k R Pasha Level 1

            Hi All ,

             

                I am getting the generated image of Charts , processes etc from Java(JFree Charts) to Flex.
            But my requirement is to increase dpi of those charts in flex or   Increase resolution of charts and process diagrams..

            My code is like ::

             

            private var image:Image;


            image = new Image();

            image.source = "Some url .. which generates chart in Java" ;

             

            At this point .. after getting image in Flex .. i want to increase resolution of that image in AS3 .. i Heard about JPGEncoder

             

            How to do that ...is there any solution for that??

             

             

             

            Thanks..