FlashPlayerControl looks great.
Is there a way to turn transparency off?
Since FlashPlayerControl renders the swf twice each frame and then does calculations to get the alpha channel, can this be turned off to get a serious increase in speed?
Delphium wrote:Is there a way to turn transparency off?
Since FlashPlayerControl renders the swf twice each frame and then does calculations to get the alpha channel, can this be turned off to get a serious increase in speed?
Code: Select all
SFPCGetFrameBitmap FPCGetFrameBitmap = { 0 };
::SendMessage(g_hwndFlashPlayerControl, FPCM_GET_FRAME_BITMAP, 0, (LPARAM)&FPCGetFrameBitmap);
HBITMAP hBitmap = FPCGetFrameBitmap.hBitmap;
{
BITMAP bmp_info;
GetObject(hBitmap, sizeof(bmp_info), &bmp_info);
BYTE* pTextureBits = (BYTE*)rcLockedRect.pBits;
DWORD* pBitmapBits = (DWORD*)bmp_info.bmBits;
Softanics wrote:If FPCS_TRANSPARENT is not using, pBitmapBits == NULL.
You can get pixels, using winapi function GetDIBits.
Users browsing this forum: No registered users and 11 guests