HI all ,
   why BmpCompress is not working on 3.5 and above ...

 i want to compress the image resource ...

 code is here ...

 /*************/

 tmp_handle = DmGetResource ( bitmapRsc, 1000) ;
                     if (tmp_handle != NULL)
                     {
                         bmp_ptr = MemHandleLock (tmp_handle) ;
                         size = MemHandleSize (tmp_handle) ;
                         if (size > 0 )
                         {
                             new_bmp = memalloc (size , sizeof (char)) ;
                             memcpy (new_bmp , bmp_ptr , size) ;
                         }
                         ret = BmpCompress ((BitmapPtr) new_bmp ,
 BitmapCompressionTypeRLE) ;
                         if (ret == errNone)
                         {
                             WinDrawBitmap ((BitmapPtr) new_bmp , 20 , 20) ;
                             memfree (new_bmp) ;

                         }
                         MemHandleUnlock (tmp_handle) ;
                     }
                     DmReleaseResource (tmp_handle) ;

 /**************/

 its not working ...
 why ???

 Regards ,
Balaji S


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

Reply via email to