Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 17:34

  • Please register to post and access all features, it's quick, easy and FREE!

 

[Help]-C#-64Bit-Load and Display .DDS Image

Reply
 
Old   #1
 
elite*gold: 20
Join Date: Sep 2007
Posts: 1,767
Received Thanks: 1,692
[Help]-C#-64Bit-Load and Display .DDS Image

Hi guys,

You might not know me too well here as I spend like 90% of my time here in EOPserver section. I am trying to make a map editor for EO but I have hit a wall (a big one at that).
The problem is not being able to load .DDS format. I have tried using the following libraries/plugins.

GDImage
FreeImage
DevIL

Neither work with 64bit OS. I was curious if anyone knows of a simple to use method somewhere I can use for this. I only wish to display the DDS not save nor edit it.


Important Notes:
Vista Ultimate 64bit
Visual Studio 2008 Express
.Net 3.5


Any help is appreciated.



funhacker is offline  
Old   #2
 
elite*gold: 0
Join Date: May 2013
Posts: 1
Received Thanks: 0
you might wanna try to this image app, it perfectly. hope it helps.


redimage is offline  
Old   #3
 
elite*gold: 20
Join Date: Sep 2007
Posts: 1,767
Received Thanks: 1,692
Quote:
Originally Posted by redimage View Post
you might wanna try to this image app, it perfectly. hope it helps.
Thank you but due to how old this is, I've much more experience these days, and had incorporated XNA into win forms to allow what I was after (not just purely loading DDS)
funhacker is offline  
Old   #4
 
elite*gold: 0
Join Date: Sep 2005
Posts: 420
Received Thanks: 83
Tried the XNA native method yet ?
Texture2D.FromFile Method (GraphicsDevice, String)


kissein is offline  
Old   #5
 
elite*gold: 20
Join Date: Sep 2007
Posts: 1,767
Received Thanks: 1,692
Quote:
Originally Posted by kissein View Post
Tried the XNA native method yet ?
Texture2D.FromFile Method (GraphicsDevice, String)
Seriously? Did you even read what was just said?
funhacker is offline  
Old   #6
 
elite*gold: 5
Join Date: Mar 2008
Posts: 450
Received Thanks: 433
You can set your Project to 32-Bit Mode.
So you can use the 32 Bit Methods that you have.

On Express it's not that's easy, but it works.

If you need help to set your Project to 32Bit contact me.
SwarN is offline  
Old   #7
 
elite*gold: 37
Join Date: Apr 2004
Posts: 2,156
Received Thanks: 250
how about using devil x64 version??

but if you only wish do display the image, then install a codec pack which contains a dds codec, then you can load the image with System.Windows.Media.Imaging library
x]vIrus[x is offline  
Old   #8

 
elite*gold: 237
Join Date: Sep 2010
Posts: 1,151
Received Thanks: 4,892
You won't find a DDS codec pack anywhere. DDS is a proprietary format from Microsoft. You probably have two options right now. First is go and check out the SDK from NVidia which if I remember correctly can read DDS files and has a .NET library. Your second option is using DirectX and one of the many managed DirectX wrapper libraries for .NET considering a DDS is a DirectDraw Surface file. I've had good experiences with the tiny SlimDX library.

A quick google also turned up this: . Depending what file format it is, it may help you.

If you need any more help, I'll be back around in a day and can post some code from one of my projects.

-jD


»jD« is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
LOG (failed to load image) Fehler beim starten
Hey Com, wenn ich den Server HeavenMt2 starten will kommt immer eine Meldung namens: LOG Failed to load image (filename: d:/ymir...
9 Replies - Metin2 PServer - Discussions / Questions
Creature- Display-IDS
Hi! ich bräuchte n paar display-ids von n paar mobs (am besten dämonen). könnte jmd die posten? wäre echt nett^^
4 Replies - WoW Private Server
Neuer Image Hoster / New Image Hoster
Hi, ich habe einen neuen Image-Hoster erstellt. Ich hoffe das ich einige Nutzer finde. Falls ihr irgendwelche verbesserungs vorschläge habt bitte...
9 Replies - Main
Lab Map display
Is there a tool that will display your location on a graphic of the lab map? I tried searching, but 3-letter searches "lab map" are turned off and...
0 Replies - CO2 Main - Discussions / Questions
i want to trade my 100m SRO gold to your levelup load or RF load
hi..........anyone want SRO gold i have 100m i want to trade this to your levelup load or RF load anyone have just pm me or contact me this email...
1 Replies - Silkroad Online Trading



All times are GMT +2. The time now is 17:34.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2017 elitepvpers All Rights Reserved.