[JAVA2D] Migrate from heavyweight to lightweight

2007-10-24 Thread java2d
Hello to everyone. Im make a bridge from the POutputVideoDevice (a output class of PWLib project) to a AWT Canvas. The bridge consists in a simple descendant on native side that instances a awt.Frame descendant, fill a java integer array and call the frame paint method. The frame contains a

Re: [JAVA2D] Migrate from heavyweight to lightweight

2007-10-24 Thread java2d
All this is made with AWT and works perfectly (we are very happy with the results, wrapping the OpenH323 to java with this java video window). But now I'm need to port this implementation to Swing fashion. But in Swing I can not use Cnvas class so, I'm asking for help of the community to

Re: [JAVA2D] Faster way to access bytes in image than .getElem()

2007-10-24 Thread Roman Kennke
Hi Mark, I have an application where I have the image data in a ByteBuffer and I want to scan through the elements. My Profiler shows getElem() or getElemDouble() as the major performance bottlenecks. Is there a way to convert a ByteBuffer to byte[] so I can scan the bytes much faster? I

[JAVA2D] Is createContext for TexturePaint broken in OS X

2007-10-24 Thread Mark Stephens
We have a custom TexturePaint where we override createContext. This is not working in Apples Java 1.5. It seems that our over-ridden context is never called. Has anyone else seen this behaviour? Is there a work around? Regards, MArk

Re: [JAVA2D] How to set custom paper size using printer jobs

2007-10-24 Thread java2d
Hi Phil, The problem I have posted regarding the custom paper size is very important for one of our customers who has more than 60 clients with the same printer and the same paper format. I need to know if there is another way around to solve this problem. If this is a bug of the jdk, when it

Re: [JAVA2D] How to set custom paper size using printer jobs

2007-10-24 Thread Phil Race
[EMAIL PROTECTED] wrote: Hi Phil, The problem I have posted regarding the custom paper size is very important for one of our customers who has more than 60 clients with the same printer and the same paper format. I need to know if there is another way around to solve this problem. Sorry

Re: [JAVA2D] Is createContext for TexturePaint broken in OS X

2007-10-24 Thread Jim Graham
Hi Mark, In an ideal world we would have made TexturePaint, or at least its createContext() method, final. Internally it is useful for us to know that a texture is being applied so we can use optimized code to paint with the texture directly rather than having to call createContext() and cause