>>>>> "AK" == Alex Kachanov <[EMAIL PROTECTED]> writes:

AK> Hello!  I'm now working on a project that uses Cocoon to serve web
AK> content for mobile devices, including WAP-phones, i-Mode, J-Phone,
AK> EZweb, and PDA.

AK> The text part of the content is generated from a single xml file
AK> with stylesheets applied depending on requesting client. That was
AK> the easiest part of the project.

AK> Images are served from a single SVG-source file (created with Jasc
AK> WebDraw program).

AK> Cocoon already has PNG and JPG transcoders (svg2png and svg2jpeg).

AK> I managed to develop a GIF Transcoder

AK> But I'm stuck with WBMP transcoder. None of the codes that are
AK> available in Interenet are able to create a grayscale image from
AK> full color bitmap.

    Take a look at: org.apache.batik.ext.awt.image.rendered.Any2LumRed.java
This is a rendered Image that will convert just about any source Image
to a luminance image.  You should be able to use it as is with a little
bit of adapter code around it something like:

    BufferedImage src;
    RenderedImage ri = new Any2LumRed(GraphicsUtil.wrap(src));
    src = new BufferdImage(ri.getColorModel(), ri.getData(),
                           ri.getColorModel().isAlphaPremultiplied(),
                           null);


AK> If anyone interested in this task, could you please contact me.

    Good luck...

AK> If we managed to make all these transcoders working, we would be
AK> able to provide a free mobile solution to all developers.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to