ImageMan ActiveX
Loading Images embedded in other Files

Images can be loaded from images that are embedded in other files in addition to loading from standalone image files. The EmbedLength and EmbedOffset properties are used to specify the position and length of the image in the containing file. Both properties must be set prior to setting the Picture property to the name of the containing file. ImageMan will use its AutoDetection logic to determine the file type.


The following code sample illustrates opening a TIFF file embedded in a data file that starts at offset 1024 and is 3096 bytes long:


ImageControl1.EmbedOffset = 1024

ImageControl1.EmbedLength = 3096

ImageControl1.Picture = "c:\data.dat"

ImageControl1.Refresh                    ' Display the Image



© 2014 Data Techniques, Inc. All rights reserved.

Submit feedback on this topic