DDS
-
- Posts: 108
- Joined: Sat May 07, 2005 8:21 pm
- Contact:
-
- Posts: 5426
- Joined: Sat Jul 24, 2004 12:12 pm
- Location: I'm a Paranoid
- Contact:
-
- Posts: 42
- Joined: Tue Jun 08, 2004 2:52 am
Theres an image library called DevIL which can open a whole lot and save a whole lot. You can find more info about it here: http://openil.sourceforge.net/
The library on its own is for use in non-.NET languages but someone called Marco Mastropaolo made a .NET wrapper that allows it to be used in .NET languages quickly and simply. You can get it here.
It loads the image into a System.Drawing.Bitmap so its really easy to show it in a picture box
The library on its own is for use in non-.NET languages but someone called Marco Mastropaolo made a .NET wrapper that allows it to be used in .NET languages quickly and simply. You can get it here.
It loads the image into a System.Drawing.Bitmap so its really easy to show it in a picture box
-
- Posts: 5426
- Joined: Sat Jul 24, 2004 12:12 pm
- Location: I'm a Paranoid
- Contact:
-
- Posts: 13
- Joined: Thu Mar 03, 2005 7:53 pm
.dds files rednering code
i also had a try at loading .dds files into picture holder of some kind but i can not just import a libary cause i am using java so i ended up looking through darkmatter source code on how he rendered the .dds files not easy stuff i have not done it yet but if you want to do it with out libarys the code is there if you are using c# you could just copy and paste really it is hard trying to under stand it cause some of the names he has used are not very easy to make out what it means IE int poo ???? lol but that is how i am going to try and read my .dds files
-
- Posts: 42
- Joined: Tue Jun 08, 2004 2:52 am
Well the .NET library should come with all the dlls required but I advise replacing them with the dlls found on the DevIL website to make sure their up to date. I think the dlls are devil.dll, ILU.dll and IL.dll but I cant be sure.Zenaku213 wrote:Thank you firescythe
also im preety stupid. DO i need to donwload both of those things, and to make it wrok umm how do i include it into my porgram cuase when i tired adding a refernece it doestn wrok:(
You only need to reference the Devil.NET.dll, because that is the interface to the DevIL library. Just make sure all the dlls are in the same place.
well i tried loading them in VB 2005 EE and i think they work, but when i try them in VB.net 2003 i get something that says about COM and that thier valid format?
EDIT:: DO i have to place the dll folder in the Project folder?
EDIT:: DO i have to place the dll folder in the Project folder?
All those losers in gym must have it then.CLuis wrote:Being goth is a disease.
-
- Posts: 42
- Joined: Tue Jun 08, 2004 2:52 am
I've only used VB.NET 2005 EE, but i'm assuming the program compiling is the same. When I compile a program it automatically copies the devil.net.dll reference to the project/bin (or where ever the exe is compiled to) but it doesnt copy the devil.dll, IL.dll,etc. So those have to be manually put in the same folder.
Also from looking at the site I get the impression that devil.net V1.2 is .NET V2.0 only so if VB.NET 2003 uses .NET V1.* then you'll need to use the devil.net V1.1 .
Also from looking at the site I get the impression that devil.net V1.2 is .NET V2.0 only so if VB.NET 2003 uses .NET V1.* then you'll need to use the devil.net V1.1 .
-
- Posts: 42
- Joined: Tue Jun 08, 2004 2:52 am
-
- Posts: 13
- Joined: Thu Mar 03, 2005 7:53 pm
DDS troubles
I am also having difficult rendering and outputting some DDS files DXT ones i am extracting them from the make and decoding them into a raw rgba stuct and then adding a bitmap header onto them and turning it into a bufferedImage and then rendering it
PROBLEMS
puts a blue shade of there image
reverse the pixcels so the top is actualy at the bottom
i have left my code on the storage area i know it is a forum but i only use it to store files please do not post on there or anything the code is in java but most C# users should understand it
http://www.halo2mutator.5gigs.com/forum ... ad.php?t=5
PROBLEMS
puts a blue shade of there image
reverse the pixcels so the top is actualy at the bottom
i have left my code on the storage area i know it is a forum but i only use it to store files please do not post on there or anything the code is in java but most C# users should understand it
http://www.halo2mutator.5gigs.com/forum ... ad.php?t=5
-
- Posts: 13
- Joined: Thu Mar 03, 2005 7:53 pm