ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 show the exif thumbnail separately?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Primus

10 Posts

Posted - Apr 22 2013 :  06:45:50  Show Profile  Reply
Is it possible to load an image, display it in imageenview and show the Exif thumbnail in an sperately imageenview? Is it also possible to store an completely other picture as exif thumbnail?

w2m

USA
1990 Posts

Posted - Apr 22 2013 :  07:52:50  Show Profile  Reply
quote:
Is it possible to load an image, display it in imageenview and show the Exif thumbnail in an sperately imageenview?

Yes this is possible:
procedure TForm1.Button1Click(Sender: TObject);
begin
  if OpenPictureDialog1.Execute then
  begin
    { Load just the EXIF_Bitmap into ImageEnView1 }
    ImageEnView1.IO.Params.GetThumbnail := True;
    ImageEnView1.IO.LoadFromFile(OpenPictureDialog1.FileName);
    if Assigned(ImageEnView1.IO.Params.EXIF_Bitmap) then
      ShowMessage('ImageEnView1 Has EXIF Bitmap.')
    else
      ShowMessage('No EXIF Bitmap in ImageEnView1.');
    { Load the full image into ImageEnView2 }
    ImageEnView2.IO.Params.GetThumbnail := False;
    ImageEnView2.IO.LoadFromFile(OpenPictureDialog1.FileName);
    ImageEnView1.Hint := IntToStr(ImageEnView1.Bitmap.Width) + ' x ' + IntToStr(ImageEnView1.Bitmap.Height);
    ImageEnView2.Hint := IntToStr(ImageEnView2.Bitmap.Width) + ' x ' + IntToStr(ImageEnView2.Bitmap.Height);
  end;
end;


quote:
Is it also possible to store an completely other picture as exif thumbnail?

No I do not think this is possible. In my tests if you replace the EXIF_Bitamp, the image itself changes to the "old" EXIF thumbnail. I would not recommend doing this.

William Miller
Adirondack Software & Graphics
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: