[JAVA2D] Canvas level BufferStrategy

2008-08-11 Thread java2d
Hello I’m new to graphics and am in the process of bringing myself up to speed on java 2d.I am now looking at how to use the BufferStratergy to manage the offscreen buffer. I’ve written a test program but nothing appears in my canvas/frame. Any idea what I’m doing wrong? I’m sure it

Re: [JAVA2D] Generic ZoomPanel?

2008-08-11 Thread java2d
Look at AffinePanel which is part of JGUI http://reader.imagero.com/jgui/ http://reader.imagero.com/jgui/doc/com/imagero/swing/renderer/AffinePanel.html and is able not only to zoom but general AffineTransform children. [Message sent by forum member 'imagero' (imagero)]

Re: [JAVA2D] JPG profiles

2008-08-11 Thread Andrew Brygin
Hello Guillermo, I suspect that you are using java.awt.Toolkit to read images. Tooklit does not provide support for built in color profiles for JPEG. Embedded profile is ignored and this will likely lead to color discrepancies you described. I'd suggest to use ImageIO API to read images.

Re: [JAVA2D] Generic ZoomPanel?

2008-08-11 Thread java2d
Hi and thanks, sounded almost too good to be true! Alas, I can't get this to work and the javadocs aren't exactly very verbose, either. I wrapped my viewer (a JPanel) in that AffinePanel and added a slider to my control panel (which is NOT part of the above viewer), so that I can control the

Re: [JAVA2D] Generic ZoomPanel?

2008-08-11 Thread java2d
Hello Michaelbrbr a href=https://jxlayer.dev.java.net/;JXLayer/a is very similar to what you described, it is a universal decorator for Swing components.br It works like a JScrollPane and allows you to create any kind of visual decorations for your componentsbrbr Piet Blok recently a

Re: [JAVA2D] upper memory limit to vmem cached images with direct3d pipeline?

2008-08-11 Thread Dmitri Trembovetski
Hi John, glad to hear that the d3d pipeline works for you. Which release are you using? There's no Java2D-induced limit on the amount of VRAM that the application can allocate, it's handled by the Direct3D runtime. Run your application with J2D_TRACE_LEVEL=4 environment variable

Re: [JAVA2D] VolatileImage.validate() does not (always) work

2008-08-11 Thread Dmitri Trembovetski
[EMAIL PROTECTED] wrote: Dmitri, I have my rendering code in a separate thread for performance, so I cache the GraphicsConfiguration so that it can access it in a thread safe way. Is there a better way of doing this? Or can I just get the GraphicsConfiguration from the component from a

Re: [JAVA2D] Canvas level BufferStrategy

2008-08-11 Thread Dmitri Trembovetski
You don't want to use Swing components and Canvas together. Use Frame instead of JFrame. Thanks, Dmitri [EMAIL PROTECTED] wrote: Hello I’m new to graphics and am in the process of bringing myself up to speed on java 2d.I am now looking at how to use the BufferStratergy to

Re: [JAVA2D] Generic ZoomPanel?

2008-08-11 Thread Dmitri Trembovetski
I believe that bug has been fixed in recent releases. Which java version is this on? Thanks, Dmitri [EMAIL PROTECTED] wrote: Hi and thanks, sounded almost too good to be true! Alas, I can't get this to work and the javadocs aren't exactly very verbose, either. I wrapped my

[JAVA2D] whether my print job is successful or not?

2008-08-11 Thread java2d
hi i am new to java please suggest what is the code for whether my print job is successful or not? that is if any reason of printer problems (cartridge or paper out) the printing process not completed. at that time how can i get in java my print process is successfully completed or not?

Re: [JAVA2D] whether my print job is successful or not?

2008-08-11 Thread java2d
The print job is successful if PrinterJob's print method does not return a PrinterException. Otherwise, you may query the status of the printer by using PrintService's getAttribute method. [Message sent by forum member 'jg_at_sun' (jg_at_sun)]

Re: [JAVA2D] Generic ZoomPanel?

2008-08-11 Thread java2d
Alas, neither JXLayer nor JXTransformer do work properly. To get an idea what I mean by do not work properly try the below test program. If the scaling-factor (at the begin of ZoomPanelUI) is set to 1.0, things work OK, if I change it to e.g. 0.5 then part of the content is not drawn, elements

Re: [JAVA2D] Generic ZoomPanel?

2008-08-11 Thread java2d
Well, I think that you making something wrong here. Just look at this stacktrace part: at javax.swing.JComponent.paint(JComponent.java:1026) at test.Test$6.paint(Test.java:386) at com.imagero.swing.renderer.AffinePanel.paintComponent(AffinePanel.java:247) at