I am trying to load and display a targa image in .net.
Since System.Drawing.Image does not support targas I have been trying
to use Direct3D to load the targa to a texture and then copy that
texture to a System.Drawing.Bitmap object.
But this hasn't worked for me yet.
Is there any other way to load a .tga file?
Thanks,
Corey
Bob Powell [MVP] - 09 May 2004 11:37 GMT
You could try the brute-force method of reading the file yourself.
http://astronomy.swin.edu.au/~pbourke/dataformats/tga/
This link points at the format spec

Signature
Bob Powell [MVP]
Visual C#, System.Drawing
Image transition effects, automatic persistent configuration and
design time mouse operations all in April's issue of Well Formed
http://www.bobpowell.net/wellformed.htm
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm
The GDI+ FAQ RSS feed: http://www.bobpowell.net/faqfeed.xml
Windows Forms Tips and Tricks RSS: http://www.bobpowell.net/tipstricks.xml
Bob's Blog: http://royo.is-a-geek.com/siteFeeder/GetFeed.aspx?FeedId=41
> I am trying to load and display a targa image in .net.
> Since System.Drawing.Image does not support targas I have been trying
[quoted text clipped - 7 lines]
> Thanks,
> Corey
Bill Broker - 25 Jun 2004 21:28 GMT
Try LEADTOOLS (www.leadtools.com), they have a .NET toolkit that handles
Targa (TGA) images, and many other formats.
> I am trying to load and display a targa image in .net.
> Since System.Drawing.Image does not support targas I have been trying
[quoted text clipped - 7 lines]
> Thanks,
> Corey