Re: win32eru.ew Query : ATTN : Bernie Ryan

new topic     » goto parent     » topic index » view thread      » older message » newer message

Rad wrote:
> 
> Hi Bernie,
> 
> How do I get the size of bitmap file present in the include generated by
> win32eru?
> 
> In Andy Drummond's grprint.ew, the actual bitmap file is opened and read using
> getc() to get the size.
> In win32eru.ew the bitmap handles are generated. How can I get the size of
> these
> bitmaps?
> 
> Regards,
> Rad.


  
   -- once you have a handle you can do this :

   atom bm, width, height

   -- allocate structure memory for bitmap information.
   bm = w32acquire_mem( mset, SIZEOF_BITMAP )
   -- fill the structure with the bitmap information.
   ok = xGetObject( handle_of_bitmap, SIZEOF_BITMAP, bm )
   -- fetch the info that you want
   width  = fetch( bm, bmWidth )
   height = fetch( bm, bmHeight )

   





Bernie

My files in archive:
WMOTOR, XMOTOR, W32ENGIN, MIXEDLIB, EU_ENGIN, WIN32ERU, WIN32API 

Can be downloaded here:
http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu