I created an AIR application that has two windows. The first is the main window (spark window application), and the second is the component (spark window). I use Java to capture the desktop screen using Flex-Java Bridge Flerry.
Here is the code for capturing the screen: -
HDC hdcWindow = User32.INSTANCE.GetDC(hWnd); HDC hdcMemDC = GDI32.INSTANCE.CreateCompatibleDC(hdcWindow); RECT bounds = new RECT(); User32Extra.INSTANCE.GetClientRect(hWnd, bounds); int width = bounds.right; int height = bounds.bottom ; HBITMAP hBitmap = GDI32.INSTANCE.CreateCompatibleBitmap(hdcWindow, width, height); HANDLE hOld = GDI32.INSTANCE.SelectObject(hdcMemDC, hBitmap); GDI32Extra.INSTANCE.BitBlt(hdcMemDC, 0, 0, width, height, hdcWindow, 0, 0, WinGDIExtra.SRCCOPY);
I do not want the main flex window to be captured. It should be skipped (transparent) from capture.
Is this possible by changing the configuration of the flex project?
If this cannot be done in flex and java, on which platform can this be done?
java flex air winapi jna
Vishnu Jun 18 '15 at 3:10 2015-06-18 03:10
source share