Watch, Follow, &
Connect with Us

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

ID: 13459, Generic Store/Load TGraphic descendants to/from Stream/Blobfield

by Kay Schubert Email: Anonymous

Use TPicture's ReadData/WriteData methods to load/store TGraphic desc. in a generic way
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 1.0  to 6.0 1132 downloads
Copyright: No significant restrictions

Size: 1,378 bytes
Updated on Sat, 18 May 2002 11:17:27 GMT
Originally uploaded on Fri, 25 Jun 1999 00:00:00 GMT
SHA1 Hash: CA3C24F50F6539AA68F28945A24A76251C06CEC8
MD5 Hash: F1AB9B722C1FBB3045179037F5F9A728

    Explore the files in this upload

TPicture can load any registered (TPicture.RegisterFileFormat) Fileformat and can save this in a dfm file. But its generic ReadData(Stream: TStream) and WriteData(Stream: TStream) methods are privat. The code shows how to get access to these methods and how to store and load any registered TGraphic descendant to/from stream/blobfield in a generic way. This means, to support additional graphic formats it is only needed to add the units to the uses clause - no changes in the store/load code are necessary. For instance, Graphics.pas already register windows bitmap (TBitmap), windows icons (TIcon), windows metafiles. Add "jpeg" to the uses clause of your program, and jpeg files (TJpegImage) are ready to use.

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Could not retrieve comments. Please try again later.

Server Response from: ETNACDC03