![]() Special thanks to Mamba for pointing me torwards the DDSReader Class (see below) and offering some sample code.Special thanks to Tamschi for providing his TQ.Texture library under the GPL and not getting tired of answering my questions.Int Width = GDImageLibrary._DDS.GetFileHeight(byte DDsFileContent) Int Width = GDImageLibrary._DDS.GetFileHeight(string DDsfile) The GetFileHeight method returns an integer that declares the height of a. Int Width = GDImageLibrary._DDS.GetFileWidth(byte DDsFileContent) Int Width = GDImageLibrary._DDS.GetFileWidth(string DDsfile) The GetFileWidth method returns an integer that declares the width of a. dds files.īitmap bm = GDImageLibrary._DDS.LoadImage(string DDsFile) īitmap bm = GDImageLibrary._DDS.LoadImage(byte DDsFileContent) dds file and returns an object of the type “bitmap” for easy displaying of. GDImageLibrary._TEX.SaveAsDDS(string texfile, string DDsFileName, bool overwrite) GDImageLibrary._TEX.SaveAsDDS(string texfile, bool overwrite) Int Height = GDImageLibrary._TEX.GetTexFileHeight(byte TexFileContent) Int Height = GDImageLibrary._TEX.GetTexFileHeight(string Texfile) The GetTexFileHeight Method returns an integer that declares the height of a. Int Width = GDImageLibrary._TEX.GetTexFileWidth(byte TexFileContent) Int Width = GDImageLibrary._TEX.GetTexFileWidth(string Texfile) The GetTexFileWidth method returns an integer that declares the width of a. tex files.īitmap bm = GDImageLibrary._TEX.LoadTexImage(string Texfile) īitmap bm = GDImageLibrary._TEX.LoadTexImage(byte TexFileContent) tex file and returns a bitmap for easy displaying of. dds file and returns an array of bytes containing the whole image file.īyte DDsFile = GDImageLibrary._TEX.ConvertTexToDDS(string Textfile) īyte DDsFile = GDImageLibrary._TEX.ConvertTexToDDS(byte TexFileContent) The ConvertIntArrayToByteArray method converts, as the name says, an integer array to a byte array.īyte ByteArray = GDImage.ConvertIntArrayToByteArray(int IntArray) It also requires the width and height of the image.īitmap bm = GDImage.ImageBuild(byte PixelArray, int ImageWidth, int ImageHeight) The ImageBuild Method builds an object of the type “Bitmap” from a byte array that holds the pixels of an image. To add it as namespace, add it to your code like this:.You now should be able to use the GDImageLibrary. If you did everything right, it should look like this:.Navigate to “GDImageLibrary.dll” and double click it.Choose “browse” on the lower right of the window.Choose “browse” on the left of the window that should now appear.Right click “references” in your project explorer.The library is written in C#, using Visual Studio Express 2013 for desktop. dds files from Grim Dawn as I want to prevent you guys from getting frustrated the same way I did. The idea is to provide an easy-to-use library that allows displaying the. I was looking for a way to display textures from Grim Dawn properly for a long time now and had a really hard time getting on with it which is why I started this project.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |