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
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)]
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.
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
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
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
[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
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
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
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?
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)]
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
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
13 matches
Mail list logo