/// <summary> /// loads, using a provided tcolor, the 32bpp raw image data with the specified pointer and dimensions. pitch should equal width /// </summary> internal unsafe Image LoadImage32(int width, int height, void* data, Color tcolor) { SoftGraphics sg = new SoftGraphics(); Softimage si = sg.newImage(width, height); si.load((int*)data); int* dptr = si.data; pr2.Common.Lib.alpha32(dptr, width * height, toArgb(tcolor)); Image img = NewImage(width, height); img.loadSoftimage(si); si.Dispose(); sg.Dispose(); return img; }