Re: How to display bmp/jpeg in LinkLayer-LinkServer scenerio

From: Don Dietrick <dietrick@bbn.com>
Date: Tue Jul 10 2001 - 09:32:36 EDT

Hi Nischal,

Is the bmp image a 1 bit depth image? That's what the LinkBitmap is
expecting. Can you show a screen shot of what it looks like vs the
original image?

- Don

On Tuesday, July 10, 2001, at 07:06 AM, NVohra@eq-technologic.com wrote:

>
> Hello,
> i am trying to display bitmap in LinkServer-LinkLayer scenerio.
> i tried like this
>
> File bmpfile = new File("ss.bmp");
> FileInputStream ios = new FileInputStream(bmpfile);
> int filesize = (new Long(bmpfile.length())).intValue();
> byte[] bmpdata = new byte[filesize];
> ios.read(bmpdata, 0, filesize);
>
> LinkProperties lineProperties = new LinkProperties();
>
> int count = 0;
> LinkGraphicList gr = new LinkGraphicList(link, new
> LinkProperties());
>
> gr.addBitmap(flog, flat, 25, 25, bmpdata,
> lineProperties);
>
> but when the bitmap shows up on the layer, it looks distorted. Basically
> doesn't show up as expected.
>
> How to go for it?
>
> Nischal vohra
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> - - -
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> The future belong to those who believe in the beauty of their dreams.
> -Roosevelt.
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> - - -
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>
>
> --
> [To unsubscribe to this list send an email to "majdart@bbn.com"
> with the following text in the BODY of the message "unsubscribe
> openmap-users"]
>

--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Tue Jul 10 09:33:00 2001

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:31 EDT