1. why I asked about 'speed'

Suppose I wrote a program like Ray Smith's Hangman.
It uses lots of little BMP's, so, creating a resource file to attach
all these ( compressed ) BMP's to an executable would:
1] make the distribution ( program ) a lot smaller !
2] save some disk space, a minor consideration,

...BUT if someone !! ( hint to all you Windoze wizards ) ever figures
out how to do something like setBitmap() from MEMORY, instead of from a
file, it would make the program 'run' a lot faster as well, even though
it would be slower to start up initially.

3] all these 'resources' would be hidden from the user, making EUPHORIA
appear even more 'magical',
...which is why I was so 'keen' to see exw.exe either compressed or
compressible ( another hint to Rob  blink )
Wolf.

new topic     » topic index » view message » categorize

2. Re: why I asked about 'speed'

>...BUT if someone !! ( hint to all you Windoze wizards ) ever figures
>out how to do something like setBitmap() from MEMORY, instead of from a
>file...

In Win32Lib, you can use loadBitmapFromFile() to load bitmaps from
the disk or createDIB() to create bitmaps from a sequence (I believe
this is what you want). They will return a handle for the bitmap,
which can be used to display it with drawBitmap() or setBitmap().

createDIB() does not create 24-bit bitmaps, however; if you (or
anyone else) want it, I can post a routine I made some time ago to
create true color bitmaps from sequences.

Regards,
Davi Figueiredo
davitf at usa.net

____________________________________________________________________
Get free e-mail and a permanent address at http://www.amexmail.com/?A=3D1=

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

3. Re: why I asked about 'speed'

Davi Figueiredo wrote:

> createDIB() does not create 24-bit bitmaps, however; if
> you (or anyone else) want it, I can post a routine I made
> some time ago to create true color bitmaps from sequences.

I'm interested.

Someone reminded me again that Win32Lib does not support compressed bitmaps.
The default routine that Win32Lib calls is not supported under NT
(grrrr...), so for NT I load the data structures manually. That's why if you
are using compressed bitmaps, the work fine under Win95, but not under NT.
Just something to keep in mind for portability.

-- David Cuny

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

4. Re: why I asked about 'speed'

------NetAddressPart-00--=_FcAA8544S6363f0cfc8
Content-Transfer-Encoding: quoted-printable

>> createDIB() does not create 24-bit bitmaps, however; if
>> you (or anyone else) want it, I can post a routine I made
>> some time ago to create true color bitmaps from sequences.
>
>I'm interested.

Here it is; it is simply a modified version of createDIB() that
will create 24-bit pictures. Each pixel in the sequence is an
integer containing the intensities of red, green and blue in
#RRGGBB hex format. I also created a small (and slow) example
of how to create pictures using the routine.

Regards,
Davi T. Figueiredo
davitf at usa.net

____________________________________________________________________
Get free e-mail and a permanent address at http://www.amexmail.com/?A=3D1=


------NetAddressPart-00--=_FcAA8544S6363f0cfc8

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

Search



Quick Links

User menu

Not signed in.

Misc Menu