1. win32eru.ew Query : ATTN : Bernie Ryan

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.

new topic     » topic index » view message » categorize

2. Re: win32eru.ew Query : ATTN : Bernie Ryan

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 message » categorize

3. Re: win32eru.ew Query : ATTN : Bernie Ryan

Bernie Ryan wrote:
> 
>    }}}
<eucode>
> 
>    -- 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 )
> 
>    </eucode>
{{{


It worked fine, Thanks Bernie. 

Rad.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu