Use Paint.NET API for more robust pointers
Use Paint.NET API for more robust pointers

Color-conversion code has been modified to work with ColorBgra* pointers
and call Surface.GetRowAddressUnchecked.  This is less fragile than
using MemoryBlock.Pointer directly as a byte*, as it avoids hard-
coding the byte layout of the ColorBgra structure.

imazen/psdplugin-with-text