BMP is accessed with:
Image img = BmpImage.getImage("image.bmp");
Gifs can have many images but Bmp only one.
The next version will auto-discriminate the various file types.
Best Regards,
Paulo Soares
> -----Original Message-----
> From: Bj�rn Sommer [SMTP:[EMAIL PROTECTED]
> Sent: Friday, June 06, 2003 13:05
> To: iText
> Subject: [iText-questions] BMP-GIF differences in handling with iText
>
> Hi...
>
> why does this work with gif
>
> if(link.getName().endsWith(".gif"))
> {
> GifImage gif = new GifImage(new
> URL(config.getServerAdresse()+link.getName()));
> bild = gif.getImage(1);
> }
>
> and with bmp not??
>
> if(link.getName().endsWith(".bmp"))
> {
> BmpImage bmp = new BmpImage(new
> URL(config.getServerAdresse()+link.getName()));
> bild = bmp.getImage(1);
> }
>
> <- gets:
>
> checksoft/Fehlerreporting/BSFS/actions/PdfErzeugenAction.java [148:1]
> cannot
> resolve symbol
> symbol : constructor BmpImage (java.net.URL)
> location: class com.lowagie.text.pdf.codec.BmpImage
> BmpImage bmp = new BmpImage(new
> URL(config.getServerAdresse()+link.getName()));
>
>
> isn't this inconsistent in behaviour????
> Or is there a reason why... and how can i make this work for bmp?
>
> best regards
>
> Bj�rn Sommer
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Etnus, makers of TotalView, The best
> thread debugger on the planet. Designed with thread debugging features
> you've never dreamed of, try TotalView 6 free at www.etnus.com.
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions