Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

RasterImage jpg Description
Started by LeicaCoder at 08-22-2008 12:37. Topic has 1 replies.

Print Search « Previous Thread Next Thread »
  08-22-2008, 12:37
LeicaCoder is not online. Last active: 8/22/2008 2:18:32 PM LeicaCoder

Not Ranked
Joined on 08-22-2008
Posts 1
RasterImage jpg Description
Reply Quote
I want to write a description into my jpeg file with a RasterImage and later read it out with a BitmapFrame (.net 3)

I have tried adding to the comments property of the RasterImage, and turning on Comment saving in the RasterCodecs - but when I read the image back the comments field is empty (and thus presume that BitmapFirame would do no better).

Is what I am trying to do possible? I know I can use a BitmapFrame to write out data to a Jpg file - but I also need to be able to do it from the leadtools components.
   Report 
  08-22-2008, 16:23
GregR is not online. Last active: 1/2/2009 9:03:27 AM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 1,816
Re: RasterImage jpg Description
Reply Quote
What is the file version of Leadtools.dll that you are using?

The Comments is for Exif files (which can be JPEG compressed).  Are you saving the file format as Jpeg or ExifJpeg?  I'm pretty sure this functionality won't work for regular JPEGs.

As for loading them back in, make sure that RasterCodecsOptions.Markers is set to true.

Our v15 .NET help file has an example of how to do use these properties in the documentation for RasterImage.Comments.

Greg Ross
LEADTOOLS Technical Support
   Report 
Post
LEAD Support Fo... » Developer » Image Compressi... » RasterImage jpg Description

Powered by Community Server, by Telligent Systems