Hi

I'm using FOP 0.20.5, and the out put format is PDF (there the images are
visible), but I'm using the following code, there the images are not visible
. I have attached my sample image of bmp (24 & 16) which I have tried.
 
private JLabel imageLabel = new JLabel();
private AWTRenderer renderer = new AWTRenderer(null);
renderer.setComponent(this);
BufferedImage pageImage = renderer.getLastRenderedPage();
imageLabel.setIcon(new ImageIcon(pageImage));
JScrollPane jsp = new JScrollPane(imageLabel);

Regards
Harshini

         

-----Original Message-----
From: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 29, 2008 6:10 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Bitmap support in FOP?

I have no trouble with BMP files in FOP 0.94. Can you post such an image and
state what FOP version you are using and what output format (PDF, PS
etc.) you're trying to produce?

On 29.01.2008 12:58:21 Harshini Madurapperuma wrote:
> 
> Hi All
> 
> Does FOP support Bitmap? Is there anything that we can do to display a 
> bitmap in FOP? I tried .bmp [24, 16 , 256] but didn't visible.
> 
> Thanks in advance
> Harshini



Jeremias Maerki


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

<<attachment: Black and red 16.bmp>>

<<attachment: Black and red 24.bmp>>

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

Reply via email to