-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integration #2
Comments
I think the following changes should work for you. I can't tell what type using Imaging.DDSReader; // <--
private void DDSFile(FileRecord selectedRecord)
{
var buffer = selectedRecord.ReadData(path);
ImageOutput.Visibility = Visibility.Visible;
var dds = DDS.LoadImage(buffer); // <--
using (var ms = new MemoryStream())
{
dds.Save(ms, ImageFormat.Png); // <--
var bmp = new BitmapImage();
bmp.BeginInit();
bmp.CacheOption = BitmapCacheOption.OnLoad;
bmp.StreamSource = ms;
bmp.EndInit();
ImageOutput.Source = bmp;
}
} |
I get this and other error no matter how i try:....Details: Object reference not set to an instance of an object. This is the program that i want to integrate it: https://github.com/vmv/VisualGGPK/tree/master/VisualGGPK Thank you,.. |
I'm not sure, it looks like it should work. I don't have PoE to test it out, sorry. |
Hi,
I want to use your code in another application that has a very old dds reader and is not updated or working anymore...
The question is how do i use your app into this function, how to call it:
Old calls are commented.
Thank you in advance for any small help.
The text was updated successfully, but these errors were encountered: