1. why I asked about 'speed'
- Posted by wolfgang fritz <wolfritz at KING.IGS.NET> Apr 22, 1999
- 480 views
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) Wolf.
2. Re: why I asked about 'speed'
- Posted by Davi Figueiredo <davitf at USA.NET> Apr 23, 1999
- 573 views
>...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=
3. Re: why I asked about 'speed'
- Posted by David Cuny <dcuny at LANSET.COM> May 04, 1999
- 448 views
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
4. Re: why I asked about 'speed'
- Posted by Davi Figueiredo <davitf at USA.NET> May 05, 1999
- 456 views
- Last edited May 06, 1999
------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