[JAVA2D] ColorConvertOp with non-ICC color space

2008-06-28 Thread Harald Kuhr
Hi everyone, Sorry for cross-posting. I guess this belongs to the Java2D list, but my assumption is that someone in the imageio-community is more likely to have run into this problem before, and have some hints. I'm currently writing an ImageIO plugin for Photoshop Document format

Re: [JAVA2D] Pushing int[] pixel data into Image

2008-07-07 Thread Harald Kuhr
Hmmm.. According to some very naive and simple tests, creating and drawing a BufferedImage is faster than creating and drawing an Image from a MemoryImageSource, at least on my Mac. The time creating the image from a preallocated int array is really neglible in both cases though. So I'd

Re: [JAVA2D] is it possible?

2008-07-10 Thread Harald Kuhr
On 10. juli. 2008, at 11.18, [EMAIL PROTECTED] wrote: but i want to Draw it Try something like: @Override protected void paintComponent(Graphics g) { ... String html = ...; JLabel label = new JLabel(html); label.setBounds(getBounds());

Re: [JAVA2D] Join images (tiles) with low memory footprint

2008-07-11 Thread Harald Kuhr
Hi, The quick answer is you can't do that with one large BufferedImage because, as it name suggests, it's buffered (in memory). It might be that you could use some kind of RenderedImage though. I suggest you search the JAI/ImageIO mailing list archives, or ask the list. They probably

Re: [JAVA2D] drawimage on a bilevel image does not work

2008-08-04 Thread Harald Kuhr
Hi, You can't do an alpha-blended composition of two bi-level images, as a bilevel image has only two levels, either completely white or completely black. So you first have to create a new temporary true color BufferedImage (any of the TYPE_INT_RGB or TYPE_3/4BYTE_RGB/BGR will probably

Re: [JAVA2D] Any way to make ANTIALIAS only use one color

2008-08-04 Thread Harald Kuhr
Once again, this time to the list.. ;-) On 2. aug.. 2008, at 00.24, Jim Graham wrote: Since it doesn't seem to be working well with your particular colormap, my suggestion is to not use Antialiasing - or to come up with a better selection of colors in your colormap that provide enough

Re: [JAVA2D] Dynamics of acceleration of BufferedImages (managed images)

2008-09-10 Thread Harald Kuhr
Hi, On 10. sep.. 2008, at 14.12, [EMAIL PROTECTED] wrote: 2) When using ImageIO, sticking a BufferedImage into the params object (forcing the ImageIO to use the supplied BI instead of allocating itself), will this permanently defeat acceleration for this BI instance? (Basically, does

[JAVA2D] LinearGradientPaint not accurate?

2008-09-12 Thread Harald Kuhr
Hi, I've been doing some fun wor,k creating cusomt UI delegates for Swing lately. And I've come across an issue with LineGradientPaint, where I want to create a gradient from some color (say white) to the background color of my component, to create a typical gloss effect. However, I find

Re: [JAVA2D] LinearGradientPaint not accurate?

2008-09-17 Thread Harald Kuhr
Hi Steve, Thanks a lot for the response! At first my colors were fully opaque. And for some reason it just don't work.. I actually ended up doing something similar to what you describe. I first fill the component with a solid, opaque color (the background), then I do a fade from the

Re: [JAVA2D] Long-running rendering ...was Re: Drawing to an off screen buffer

2008-09-26 Thread Harald Kuhr
Hi Chris, You might want to take a look at the Task class from Swing Application Framework. It is a great abstraction for long-running operations in general. It's basically a fancy SwingWorker, with support for a nice publish/process-protocol, which I think you could use for your drip-

Re: [JAVA2D] Availability of PhotoComposite API with hardware accelaration

2008-10-08 Thread Harald Kuhr
Hi Vince, I know this is probably not what you are looking for (and it certainly isn't hardware accelerated). Oh, and you proably already knew about it.. But given the lack of response on this topic, I'll post it anyway. ;-) Romain Guy did some work on advanced blending modes for photo