Java 2D

Log in to follow, share, and participate in this community.
Filter by tag
  • Performance ImageIO read

    hi, for our system i have to read a lot of png images and scale them down to about 25%. The images are 2500x3500px. the are read by following code BufferedImage image= ImageIO.read(new BufferedInputStream...
    803039
    last modified by 803039
    Performance ImageIO read

    in Java 2D

      Back
    • Text is not rotated correctly on Mac OS X

      Java 7 breaks proper text rotation on Mac OS X. If one used graphics.rotate( theta, x, y ) and then draws a string using graphics.drawString() the line of text is drawn in one angle and the characters are rotated alon...
      user5321087
      created by user5321087
      Text is not rotated correctly on Mac OS X

      in Java 2D

        Back
      • custom shape rotation issue

        Preview not available.
        990282
        created by 990282
        custom shape rotation issue

        in Java 2D

          Back
        • How to read large images in Java ??

          Hello All I am reading an Jpeg file using following snippets view plaincopy to clipboardprint? Note: Text content in the code blocks is automatically word-wrapped BufferedImage img = ImageIO.read(f); ...
          990282
          last modified by 990282
          How to read large images in Java ??

          in Java 2D

            Back
          • Java printing

            Hi, I'm a bit confused by the PrintJob and how it works. When the PrintJob is created, it opens the print dialog. I am using a PDF printer to test with. Like many physical printers, the dialog for this PDF print...
            989313
            last modified by 989313
            Java printing

            in Java 2D

              Back
            • GIF image loses transparency after converting to byte[]

              Hi I have a transparent background gif file which I am reading into an Image .... I am writing this Image to a mysql BLOB column after converting it to a byte[] and am losing the transparency in the process ... ...
              433331
              last modified by 433331
              GIF image loses transparency after converting to byte[]

              in Java 2D

                Back
              • GRAY and Alpha ColorSpace

                I am trying to draw an image with ColorSpace.CS_GRAY with hasAlpha=true and transparency set to Transparency.TRANSLUCENT. For alpha=1 I should expect the display to be same as with Transparency set OPAQUE and hasAl...
                987274
                created by 987274
                GRAY and Alpha ColorSpace

                in Java 2D

                  Back
                • Java2D, filling polygon

                  I have two polygons, one is inside the other. I want to fill the portion between the polygons using some Paint. Currently I am doing as follows: Graphics2D g2d; Paint thePaint; Polygon outer, inner; g2d.set...
                  976196
                  last modified by 976196
                  Java2D, filling polygon

                  in Java 2D

                    Back
                  • Zoom and centralize object

                    Hello everybody, I am developing an application which will be necessary to implement the zoom on a particular map. The Zoom I could implement using the AffineTransform class, but I would like the location where the u...
                    981937
                    last modified by 981937
                    Zoom and centralize object

                    in Java 2D

                      Back
                    • Help with understanding drawPolygon()

                      I have a triangle that I want to draw using drawPolygon(). This is what I have: public void paint(Graphics g)     {         int[] xPoints =     &...
                      795605
                      last modified by 795605
                      Help with understanding drawPolygon()

                      in Java 2D

                        Back
                      • how to convert a import com.lowagie.text.Image; to a java.awt.image?

                        I am trying to convert an itext image to a java.awt image ByteArrayOutputStream bas = new ByteArrayOutputStream(); ImageIO.write((RenderedImage)image, "png", bas); byte[] data = bas.toByteArray(); InputStrea...
                        975635
                        last modified by 975635
                        how to convert a import com.lowagie.text.Image; to a java.awt.image?

                        in Java 2D

                          Back
                        • sun.java2d.d3d.D3DRenderQueue.flushBuffer() too slow

                          Sometimes my Java desktop app slows down very much and I did thread dump and I can see that it is executing this line of code for about 30 seconds and uses 50% of CPU: at sun.java2d.d3d.D3DRenderQueue.flushBuffer(N...
                          507066
                          last modified by 507066
                          sun.java2d.d3d.D3DRenderQueue.flushBuffer() too slow

                          in Java 2D

                            Back
                          • Java2D

                            I have few closed java2D polygons say (7 or 8 Nos.) and each polygon lies within the other. For Example in case of 8 polygons(2 is inside 1, 3 is inside 2, 4 is inside 3 , 5 is inside 4 so on and so forth). i want ...
                            976196
                            last modified by 976196
                            Java2D

                            in Java 2D

                              Back
                            • How to enable OpenGL pipeline in Windows Server 2008 R2

                              My application relies on being able to draw large images (1920x1080, full desktop) quickly. We are using Matrox Extio2 video cards and extenders to drive a twelve headed workstation as one large desktop. My code uses ...
                              802101
                              last modified by 802101
                              How to enable OpenGL pipeline in Windows Server 2008 R2

                              in Java 2D

                                Back
                              • AffineTransform: Rotating too fast.

                                Preview not available.
                                959990
                                last modified by 959990
                                AffineTransform: Rotating too fast.

                                in Java 2D

                                  Back
                                • TextAttribute.TRACKING and LineBreakMeasurer

                                  TRACKING textattribute is not properly handled by LineBreakMeasurer. getJustifiedLayout does not work correctly with TRACKING
                                  966324
                                  created by 966324
                                  TextAttribute.TRACKING and LineBreakMeasurer

                                  in Java 2D

                                    Back
                                  • How to draw a Fibonacci retracement

                                    Hi all, I need to draw a Fibonacci retracement, a very popular tool for technical charting. Can anyone guide me to it? It must be a Shape. Regards, June
                                    959617
                                    last modified by 959617
                                    How to draw a Fibonacci retracement

                                    in Java 2D

                                      Back
                                    • Question about JInternalFrame inside JDesktopPane.

                                      I know and understand that for full and correct control, when doing java 1.6.0 desktop gui programming with swing and awt both involved, I want to add my JInternalFrame object inside a JDesktopPane, for correct ma...
                                      851442
                                      last modified by 851442
                                      Question about JInternalFrame inside JDesktopPane.

                                      in Java 2D

                                        Back
                                      • Reading Unkown Image file or Image data from a file

                                        Any idea of hints how to read an image data from a file which has legacy image data such as .ITW file with grayscale I have tried using BufferedImage constructor with different flavors and went through the Buffere...
                                        Alan.M
                                        last modified by Alan.M
                                        Reading Unkown Image file or Image data from a file

                                        in Java 2D

                                          Back
                                        • Pls helpme implement Canvas and BufferStrategy on my old "self made" buffer

                                          Hai all! As suggested to me by gimbal2 over here: Re: AWT - How to delete (make transparent) a part of an Image I was trying to implement Canvas and BufferStrategy in my project. My old selfmade buffer method was...
                                          Patcha
                                          last modified by Patcha
                                          Pls helpme implement Canvas and BufferStrategy on my old "self made" buffer

                                          in Java 2D

                                            Back

                                          Actions