public static extern void FreeBMP(ref BMPExport bmp);
public static extern bool WriteToMemory(ref BMPExport bmp, IntPtr destination, UIntPtr stride);
public static extern void FreeBMP(ref BMPExport bmp);
public static extern bool WriteToMemory(ref BMPExport bmp, IntPtr destination, UIntPtr stride);