Now I'm considering the best bitmap format to bring the rendered page back into Pharo.����
I'm seeking advise on...
Q1. Looking at the two significant bitmap creation functions below from the C header file,
which of PDFium's bitmap formats is the best match for Pharo?
// Gray scale bitmap, one byte per pixel.
#define FPDFBitmap_Gray 1
// 3 bytes per pixel, byte order: blue, green, red.
#define FPDFBitmap_BGR 2
// 4 bytes per pixel, byte order: blue, green, red, unused.
#define FPDFBitmap_BGRx 3
// 4 bytes per pixel, byte order: blue, green, red, alpha.
#define FPDFBitmap_BGRA 4
// Function: FPDFBitmap_CreateEx
//�� �� �� �� �� Create a device independent bitmap (FXDIB)
// Parameters:
//�� �� �� �� �� width�� �� �� ��-�� ��The number of pixels in width for the bitmap.
//�� �� �� �� �� �� �� �� �� �� �� �� �� Must be greater than 0.
//�� �� �� �� �� height�� �� �� -�� ��The number of pixels in height for the bitmap.
//�� �� �� �� �� �� �� �� �� �� �� �� �� Must be greater than 0.
//�� �� �� �� �� format�� �� �� -�� ��A number indicating for bitmap format, as defined
//�� �� �� �� �� �� �� �� �� �� �� �� �� above.
//�� �� �� �� �� first_scan�� -�� ��A pointer to the first byte of the first line if
//�� �� �� �� �� �� �� �� �� �� �� �� �� using an external buffer. If this parameter is NULL,
//�� �� �� �� �� �� �� �� �� �� �� �� �� then the a new buffer will be created.
//�� �� �� �� �� stride�� �� �� -�� ��Number of bytes for each scan line, for external
//�� �� �� �� �� �� �� �� �� �� �� �� �� buffer only.
// Return value:
//�� �� �� �� �� The bitmap handle, or NULL if parameter error or out of memory.
// Comments:
//�� �� �� �� �� Similar to FPDFBitmap_Create function, but allows for more formats
//�� �� �� �� �� and an external buffer is supported. The bitmap created by this
//�� �� �� �� �� function can be used in any place that a FPDF_BITMAP handle is
//�� �� �� �� �� required.
//
//�� �� �� �� �� If an external buffer is used, then the application should destroy
//�� �� �� �� �� the buffer by itself. FPDFBitmap_Destroy function will not destroy
//�� �� �� �� �� the buffer.
FPDF_BITMAP��
FPDFBitmap_CreateEx(
�� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� int width,
�� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� int height,
�� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� int format,
�� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� void* first_scan,
�� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� int stride);