Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


ID: 22079, UniBitmapClass for C#

by Endre Simay Email: Anonymous


An implementation of TUniBitmap Component into C# for using encoded BMPs and binary resources of them.
Download Details
FTP  download also available
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Delphi, Version 10.0  to 10.0 45 downloads
Copyright: No significant restrictions


Size: 115,648 bytes
Updated on Mon, 07 Nov 2005 09:17:43 GMT
Originally uploaded on Mon, 09 Aug 2004 11:14:03 GMT
SHA1 Hash: AF48FB1C92DFE772028BC5535627644E88BDE869
MD5 Hash: A196EDE93EC929CB90E9ECC289AB6F61

    Explore the files in this upload

Description
A class named TUniBitmap was developed for world of Win32 to use LZRW/KH-encoded bitmaps from resources. As well as the algorithmic part of this compressing method was ported to the .NET, the UniBitmap also became portable to the new environment. Especially for compatibility issues, which mean moreless back-compatibility. This backward compatibility could serve compatibility for pictures stored earlier in this encoded format.

The images could be opened and decoded with this Class, while the usage is slightly different from the component made for Win32 earlier. So, the LoadFrom... methods are serving Streams instead of a Bitmap. This should be easy handling and is not in conflict with FrameWork's restrictions.

You see a LoadFromResources method among of loading ones, which is use a streamed resource saved as TBytes (System.Byte[]) and also serves a decoded stream.

On other hand, the images saved with this source of Class could be used for the old Win32 component, too. Including the Body_compressed image, which could serve a Bitmap-like headers (e.g. for using format-identifiers). The Class could read and write uncoded bitmaps (BMP), and File_Compressed one, too. The later is equivalent of a compressing made with native LZRW/KH-compressor (see LZRW1/KH De/Compressor).

The source probably need some optimization later, while it was tested as I can for functionality. The old Win32-component is under porting for new VCL-world and hosted as free component at Torry (torry.net).

Files of bitwiseclass.cs and LZRW1_EIS.cs also needed for working.

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Server Response from: ETNACDC03