AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
July 2006

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2006.07.18 07:30 "C# interop for libtiff?", by Gerben Vos
2006.07.24 11:32 "Re: C# interop for libtiff?", by Rob Van Den Tillaart

2006.07.24 11:32 "Re: C# interop for libtiff?", by Rob Van Den Tillaart

Hi Gerben,

I did some C# interop in a project last year (no libtiff, sorry). In
this project I added an serialization layer between the C++ library and
the C# stuff. In fact I packed it all into plain strings as performance
was no issue (using stringbuilder on the C# side). Maybe this same
technique can be used for varargs. At least you can implement up to N
varargs by mapping them straightforward.

A more elaborate example of how to call the sprintf from C# can be found
@
http://www.sadeveloper.net/Articles_View.aspx?articleID=107

Regards,
rob

> -----Original Message-----
> From: tiff-bounces@lists.maptools.org 
> [mailto:tiff-bounces@lists.maptools.org] On Behalf Of Gerben Vos
> Sent: dinsdag 18 juli 2006 9:31
> To: tiff
> Subject: [Tiff] C# interop for libtiff?
> 
> Inspired by Ivan Kopcanski's question, I have been 
> experimenting a bit in my spare time with C# interoperation 
> for LibTIFF; I've gotten
> TIFFOpen() and TIFFClose() to work already, but am still 
> thinking about how to implement the variable-arguments 
> TIFFSetField() in a nice way.
> (I've even been thinking  about emitting appropriate 
> functions during runtime, generating them from the tags table.)
> 
> Has someone else already done something in this area which 
> you can share?
> 
> 					Gerben Vos.
> 
> _______________________________________________
> Tiff mailing list: Tiff@lists.maptools.org 
> http://lists.maptools.org/mailman/listinfo/tiff
> http://www.remotesensing.org/libtiff/
> 
> 

This message and attachment(s) are intended solely for the use of the
addressee and may contain information that is privileged, confidential or
otherwise exempt from disclosure under applicable law.  
If you are not the intended recipient or agent thereof responsible for
delivering this message to the intended recipient, you are hereby notified
that any dissemination, distribution, or copying of this communication is
strictly prohibited.  
If you have received this communication in error, please notify the sender
immediately by telephone and with a "reply" message.  
Thank you for your cooperation.