Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Tuesday, December 19, 2006 6:31:20 AM(UTC)

uKER  
uKER

Groups: Registered
Posts: 2


Hi. I'm having some difficulties trying to determine the format of a file when it has an EXIF embedded.
The problem is that the 'OriginalFormat' property reports 'RasterImageFormat.Exif', and I can't even find out whether it's a TIFF, a BMP, or a JPG. Let alone the encoding.
I'll appreciate your assistance.
Thanks in advance.
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Wednesday, December 20, 2006 6:04:37 AM(UTC)

Adnan Ismail  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

To determine the file format of an image please do as follows
1. Before loading the image you need to call the RasterCodecs.GetInformation Method to get the information about the specified image.
2. Examine the CodecsImageInfo.Format Property to know the format of the image.

You can use the following VB.NET code lines demonstrate the above:

Dim Imageformat As String
Dim ImageInfo As CodecsImageInfo = codecs.GetInformation("c:\TEST.jpg", False)
Imageformat = ImageInfo.Format.ToString()
MsgBox(Imageformat)
 
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.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.192 seconds.