You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by 엄세용 <ar...@hanbbs.net> on 2001/04/25 09:07:47 UTC

getBitmaps() of FOPImage

What does mean byte[] returned by getBitmaps() in FOPImage?

The comment in FOPImage.java is "get uncompressed image bytes".


FOP seems to convert source image type(jpg, gif, etc) to another image type.

My question is "What is converted image type?"


--
Seyong, Um.
Republic of Korea

Re: getBitmaps() of FOPImage

Posted by Eric SCHAEFFER <e-...@wanadoo.fr>.
----- Original Message -----
From: "Alex McLintock" <al...@yahoo.com>
To: <fo...@xml.apache.org>
Sent: Wednesday, April 25, 2001 3:35 PM
Subject: Re: getBitmaps() of FOPImage


> --- ¾ö¼¼¿ë <ar...@hanbbs.net> wrote:
> > What does mean byte[] returned by getBitmaps() in FOPImage?
> >
> > The comment in FOPImage.java is "get uncompressed image bytes".
> >
> >
> > FOP seems to convert source image type(jpg, gif, etc) to another image
type.
> >
> > My question is "What is converted image type?"
>
> A Bitmap!

You're right.

> <fx Homer Simpson says DOH!>
>
> The internal format for a bitmap image is (I believe) a big array of
coloured dots
> called pixels, stop me if I am going too fast for you.

In fact, it is an array of bytes (you need to read the array 3 by 3 to have
the pixels). That's because PDF uses bytes array internally, but that's not
a good raison.
I tried to use java native representation (int array, raster, etc..), but it
needs some work, and that was JDK 1.2 only.

If you want to work on it, you're wellcomed ;)

> Sorry. No matter what format the input bitmap is in I belive it gets
converted to
> an array of pixels inside the FOPImage class.
>
> Presumably the bitmap bytes[] is all the rows of the two dimensional array
stuck
> together to form one block of memory.

Yes, as all image files...

> If you are only concerned with how the bitmap is stored in Java - well you
have the source,
> you know which class it is in, go for it!
>
> I hope this helps and wasn't too sarcastic for you :-)
>
>
> Alex
>
>
> =====
> Alex McLintock        alex@OWAL.co.uk
> OpenWeb Analysts Ltd, http://www.OWAL.co.uk/
> Software for Complex Websites.
> Publisher of http://www.DiverseBooks.com
> Get Your XML T-Shirt <t-shirt/> at http://www.inversity.co.uk/
>
> ____________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
> or your free @yahoo.ie address at http://mail.yahoo.ie
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: getBitmaps() of FOPImage

Posted by Alex McLintock <al...@yahoo.com>.
--- ¾ö¼¼¿ë <ar...@hanbbs.net> wrote: 
> What does mean byte[] returned by getBitmaps() in FOPImage?
> 
> The comment in FOPImage.java is "get uncompressed image bytes".
> 
> 
> FOP seems to convert source image type(jpg, gif, etc) to another image type.
> 
> My question is "What is converted image type?"

A Bitmap! 
<fx Homer Simpson says DOH!>

The internal format for a bitmap image is (I believe) a big array of coloured dots
called pixels, stop me if I am going too fast for you.

Sorry. No matter what format the input bitmap is in I belive it gets converted to
an array of pixels inside the FOPImage class. 

Presumably the bitmap bytes[] is all the rows of the two dimensional array stuck
together to form one block of memory.

If you are only concerned with how the bitmap is stored in Java - well you have the source, 
you know which class it is in, go for it!

I hope this helps and wasn't too sarcastic for you :-)


Alex


=====
Alex McLintock        alex@OWAL.co.uk
OpenWeb Analysts Ltd, http://www.OWAL.co.uk/ 
Software for Complex Websites.
Publisher of http://www.DiverseBooks.com
Get Your XML T-Shirt <t-shirt/> at http://www.inversity.co.uk/

____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org