http://ljensen.com/misc/Demo_SaveAsBMP.rbp.zip

On WinXP, I tried it in RB 5.5.5, where it did not work.

Here's one that works in 5.5 and later:

 http://ljensen.com/misc/Demo_SaveAsBMP_RB55.rb.zip

And here's one that works in 3.5.2 and later, with some compromises:

 http://ljensen.com/misc/Demo_SaveAsBMP_RB35.rb.zip

That's as far back as I go with RB. Most of the work was just
rearranging Dim statements and using signed instead of unsigned
integers. Also, the further back in time I went, the more I had to
resort to things like "GetFolderItem" instead of "new FolderItem".
Most of these tweaks have little practical significance, but some do
affect modularity:

- In RB 5.0 and earlier, you can't use Extends syntax, so calling my
routine doesn't look like calling other built-in SaveAsXXX routines in
RB.

- In RB 3.5.2 and earlier, CreateBinaryStream requires a known file
type to exist in the project; you can't just pass an empty string.

And there was one that might decrease efficiency:

- In RB 5.2 and earlier, BinaryStream can't write a MemoryBlock
directly; you have to use a temporary string. (I say this _might_
decrease efficiency because for all I know, in 5.5 and later, a
temporary string is created behind the scenes anyway.)

This was a fun exercise. It's been a while since I looked at some of
those older versions of RB. Though it lacks some gloss, 4.5.2 is still
the leader for me in terms of feel -- it's super responsive, with
near-zero wait for execution, and I like the multi-window UI. On the
other hand, not having multiple projects open at once really sucks,
remote debugging is nonexistent, and the language enhancements since
then allow for much better engineering.

On WinXP, I tried it in RB 2006r2 and it seemed to work fine.

Thanks for reporting that.

I've decided to use PNG Utilities Plugin.

Well you can't go wrong with that! Most of my projects use it. BMP
format does allow for compression and alpha channels, but support for
them is not widespread.

lj
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to