This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Tuesday, October 23, 2012 10:21:32 AM(UTC)
Groups: Registered
Posts: 47
Hi - can you tell me if the attached file is a format recognized by LEAD, and if so, what is the format and which DLLs to I need to reference in my program to get LEAD to recognize it?
Leadtools.dll version: 17.0.0.17
Thank you,
John Reichert
#2
Posted
:
Wednesday, October 24, 2012 6:58:48 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
John,
The file appears to contain a group of JPEG images appended one after the other.
As a full file, this does not appear to be a common format. However, if you use our method RasterCodecs.Load(stream, offset, count), it should work.
For example, this code loads the first image in the file:
+------------+
System.IO.FileStream Fstream = new System.IO.FileStream(fileName, System.IO.FileMode.Open);
Fstream.Seek(0, System.IO.SeekOrigin.Begin);
RasterCodecs codecs = new RasterCodecs();
rasterImageViewer1.Image = codecs.Load(Fstream, 16, Fstream.Length - 16);
+------------+
To find other images, you can look for the JFIF image signature, which is hex "FF D8 FF E0".
Thanks,
Maen Badwan
LEADTOOLS Technical Support
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.