The ToBitmap function creates a System.Drawing.Bitmap bitmap instance from the image data object.
The bitmap directly refers to image data in the image data object. The application must maintain the life cycle of the image data object before the bitmap is disposed.
The following color formats are supported by the .NET 4.0 framework natively:
The application may convert any native color format to one of above formats as follows:
image.AcquireAccess(PXCMImage.Access.ACCESS_READ, PXCMImage.ColorFormat.COLOR_FORMAT_DEPTH, out data);