XNB plugin for Paint.NET

Today I have released the first (read: very alpha) version of a plugin I’m making for Paint.NET. It allows you to load XNBs containing compiled Texture2D resources and edit them at your pleasure. Current supported data format is uncompressed assets compiled for Windows or Windows Phone (Xbox 360 uses a different endian and is on the works), with pixel formats Color, Bgr565, Bgra4444 and Bgra5551.

Future additions will include the ability to load the full mipmap chain, DXT-compressed textures, Xbox assets and resaving your work in a new XNB. So, if you want to try it, go to the project’s Downloads page at CodePlex, or browse the lastest changesets.

One thought on “XNB plugin for Paint.NET

  1. Thanks for this XNB plug-in for Paint.net – I’ve been using it for a couple years now.

    The plug-in had been working fine until very recently when I updated to the latest version of Paint.net and started using VS2013. I can no longer open XNB files with the plugin because it crashes:

    System.MissingMethodException: Method not found: ‘!!0[] PaintDotNet.ArrayExtensions.Subarray(!!0[], Int32, Int32)’.

    at PdnXnb.XnbFileType.OnLoad(Stream input)

    at PaintDotNet.FileType.Load(Stream input) in d:\src\pdn\paintdotnet\src\Data\FileType.cs:line 477

    at PaintDotNet.Functional.Func.Eval[T1,TRet](Func`2 f, T1 arg1) in d:\src\pdn\paintdotnet\src\Base\Functional\Func.cs:line 158

    I opened your source code but it no longer compiles – I fixed a few compatibility issues but one final issue I couldn’t get around: PaintDotNet.Data.Dds namespace no longer exists and your code uses it in four places.

    I’m not that familiar with the PaintDotNet UI – was wondering if you could look into this and possibly make a fix for it – ?

    Thanks,
    Dan

Leave a Reply