Hi Nischal,
If you try to use the same file to build an OMBitmap in a local layer,
does it work? I really don't know that much about the internal format
of the bmp file, so I'm not sure how the data bits correspond to pixel
values.
The screen shot is a little weird, though, almost as if there is some
other image information at the beginning of the file. The bits that you
send to the LinkBitmap should be strictly pixel bits.
- Don
On Wednesday, July 11, 2001, at 08:21 AM, NVohra@eq-technologic.com
wrote:
>
> Hello Don,
> i am sending screen shot and original image.
> Even i bitmap depth image is not coming properly.
> (See attached file: scrshots.zip)
> Nischal vohra
>
>
>
>
>
> Don Dietrick
> <dietrick@bbn.com To:
> NVohra@eq-technologic.com
>> cc: openmap-users@bbn.com
> Sent by: Subject: Re: How to
> display bmp/jpeg in LinkLayer-LinkServer scenerio
> owner-openmap-use
> rs@bbn.com
>
>
> 07/10/01 07:02 PM
>
>
>
>
>
> 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"]
>
>
<Attachment missing>
-- [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 Sun Jul 15 21:58:53 2001
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:31 EDT