Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: FreeImage  (Read 3524 times)
serial
Customers
Community Member
*****
Posts: 380


« on: December 10, 2010, 02:48:29 AM »

For those people who are creating world editors and use DDS files.  On of the primary problems you'll face is how to display a DDS file in a win form.  Form a create little free .NET api that is fast and easy to use. 

http://freeimage.sourceforge.net

Basically once you add the referance and copy the unmanaged DLL in to the appropriate folder all you have to do is

using FreeImageAPI;

pictureBox1.Image = new FreeImageBitmap(@"texture.dds").ToBitmap();

Make sure you take a look at the licensing options though.  You don't have to pay money but it may affect any method you wish to use to distribute your software. 
Logged
beyonder
Moderator
Community Member
*****
Posts: 470


« Reply #1 on: December 10, 2010, 02:57:02 AM »

Excellent. I use ImageXPress for my image loading and manipulation. However no DDS. This might solve that problem. Thanks serial.

Logged

"And what I saw scared me to the depths of my miserable soul. It was true, it was all a sham, it ain't real." - The Thirteenth Floor
Lenn
Customers
Community Member
*****
Posts: 876

+/-


« Reply #2 on: December 10, 2010, 06:36:34 AM »

Hmm, this is curious, I was just about to go looking for something like this. Thanks.  Smiley
Logged

TV3D 6.5 Community Docs - Read, use and please contribute!
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks