I saw a code in 
 "http://oasis.palm.com/dev/kb/samples/docs/1412/Signature++-1.zip";  
which converts Palm bit map to windows bitmap.
File is SignatureConduit.cpp, function  is WriteOutBitmap. This does 
quite lot of things. Looking at the code I plan to try following algorithm.

Read the Bitmap from palm. save this to a file on windows.
Open the file. Read header part and determine width, row bytes.
Read remaining part of palm bit map.
While reading convert this into BigEndian format.
Write bitmap header,  bitmap info, color table  and actual bitmap data.

My code (263 lines)  now writes  some vague characters into windows 
bitmap. I am sort of struck here. Can I post it here?

regards
Jayan

Zack Shenkle wrote:

>I'm not sure about Palm to Windows bmp converstion, but if you use Code
>Warrior, you can go to Metrowerks\CodeWarrior for Palm OS Platform
>7.0\Thrill Seekers\PilRC CW Plugin\PilRC CW Plugin Source\PilRCSrc and among
>all the C and H files there should be a file called bitmaps.c.  This is the
>bitmaps section of the PilRC plugin that converts an rcp file (used mainly
>in GNU Palm programming to define the UI part of your app, but also used in
>CW thanks to this plugin) into the .r file for your app.  In bitmaps.c is a
>function called BMP_ConvertWindowsBitmap, and if you can figure out how this
>works, you can write a vice versa algorithm.  This will probably be a last
>resort for you, as it's an arguous task.
>
>-Zack
>
>"Jayanarayanan M N" <[EMAIL PROTECTED]> wrote in message
>news:91027@palm-dev-forum...
>  
>
>>(Subject changed .  was "Re: Screen Capture using
>>WinGetBitmap- Viewing the BMP on desktop")
>>
>>Where can  find a conversion program.
>>-Jayan
>>
>>--- Joe Malone <[EMAIL PROTECTED]> wrote:
>>    
>>
>>>--- Jayanarayanan M N <[EMAIL PROTECTED]> wrote:
>>>      
>>>
>>>>I am trying to capture image from a form on a palm
>>>>        
>>>>
>>>and
>>>      
>>>
>>>>display back it on browser.
>>>>...
>>>>I can view the image back on Palm(on same Form).
>>>>        
>>>>
>>>but ,
>>>      
>>>
>>>>when I try to view on Windows 2000(using GIMP or
>>>>        
>>>>
>>>MS
>>>      
>>>
>>>>Paint) it gives format error. Fails to open the
>>>>        
>>>>
>>>file.
>>>
>>>Palm bitmaps do not use the same format as Windows
>>>bitmaps.
>>>
>>>__________________________________________________
>>>Do You Yahoo!?
>>>Sign up for SBC Yahoo! Dial - First Month Free
>>>http://sbc.yahoo.com
>>>
>>>
>>>--
>>>For information on using the Palm Developer Forums,
>>>or to unsubscribe, please see
>>>      
>>>
>>http://www.palmos.com/dev/support/forums/
>>
>>
>>__________________________________________________
>>Do You Yahoo!?
>>Yahoo! Autos - Get free new car price quotes
>>http://autos.yahoo.com
>>
>>
>>
>>    
>>
>
>
>
>  
>





-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to