screen-capture

Capture screenshot of a HorizontalScrollView including offscreen elements

爷,独闯天下 提交于 2020-08-10 05:41:44
问题 I have tried many methods. I am able to take screenshot of whole screen BUT my requirement is to take screenshot of whole HorizontalScrollView and save it as an image file. Here is the sample XML layout I am using: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" > <HorizontalScrollView android:layout_width="wrap_content" android:layout_height="wrap

Windows C++ fast RGBA32 DX texture to RGB24 buffer

馋奶兔 提交于 2020-04-30 08:20:19
问题 If already have a DirectX texture in hand, what is the fast(low CPU utilization) way to get a RGB24 buffer in main RAM from it (skip the A)? Strictly the format is DXGI_FORMAT_B8G8R8A8_UNORM , does this mean ARGB? I'm using https://github.com/bmharper/WindowsDesktopDuplicationSample to capture Windows desktop and the result is to be converted into RGB24 lossless format in main RAM. The existing code copy GPU texture to CPU texture then use memcpy to copy each line of the RGBA32 data to main

Getting image contents of obstructed window

心已入冬 提交于 2020-03-28 02:14:47
问题 Is it possible to get image contents of an obstructed window without bringing it to the front? Also, is it possible to send mouse clicks to a specific locations of such window using Windows API? Would the realization be different on Windows XP and Windows 7? What functions I would need and where can I read more about that. Thanks. 回答1: Windows GDI can assist you on the screenshot task. There's some VB code here to get you started. There's a lot of material on how to simulate mouse clicks:

Getting image contents of obstructed window

て烟熏妆下的殇ゞ 提交于 2020-03-28 02:13:12
问题 Is it possible to get image contents of an obstructed window without bringing it to the front? Also, is it possible to send mouse clicks to a specific locations of such window using Windows API? Would the realization be different on Windows XP and Windows 7? What functions I would need and where can I read more about that. Thanks. 回答1: Windows GDI can assist you on the screenshot task. There's some VB code here to get you started. There's a lot of material on how to simulate mouse clicks:

Getting image contents of obstructed window

孤街浪徒 提交于 2020-03-28 02:12:30
问题 Is it possible to get image contents of an obstructed window without bringing it to the front? Also, is it possible to send mouse clicks to a specific locations of such window using Windows API? Would the realization be different on Windows XP and Windows 7? What functions I would need and where can I read more about that. Thanks. 回答1: Windows GDI can assist you on the screenshot task. There's some VB code here to get you started. There's a lot of material on how to simulate mouse clicks:

Possible to detect if a user is pressing the screen capture buttons on iOS??

丶灬走出姿态 提交于 2020-01-16 04:00:13
问题 I need to know if the user is trying to take a screen capture of a specific section on an app we are building. Any advice would be helpful. We would like to then black out the screen to prevent a screen shot from being taken. 回答1: No. Its not possible to find out. 回答2: You cann't control Home and Switch buttons actions. It is the default hardware behaviour. 回答3: I also believe it to be impossible to detect. I did a few tests, thinking that the iOS might call -(void)

How to capture iPhone screen with animating UIImageView?

烂漫一生 提交于 2020-01-14 18:46:28
问题 I have a UIImageView placed over a view and I want to capture iPhone screen while that UIImageView is animating. I can successfully capture the screen shots of the still frames of the UIImageView like this: [[myView layer] renderInContext:context]; However when the UIImageView is animating throguh [MyImageView startAnimating] then, those animating frames are not captured. Is there any alternative to renderInContext available at the moment that can capture the animating frames as well? NOTE: I

Fliped cursor icon on desktop recording using directshow

杀马特。学长 韩版系。学妹 提交于 2020-01-14 12:55:09
问题 Using Directshow.NET I have developed an application which will record the desktop screen, to get mouse pointer we need to paint mouse pointer by our own. So I added SampleGrabber adn in BufferCB I have written below code: public const Int32 CURSOR_SHOWING = 0x00000001; [StructLayout(LayoutKind.Sequential)] public struct ICONINFO { public bool fIcon; public Int32 xHotspot; public Int32 yHotspot; public IntPtr hbmMask; public IntPtr hbmColor; } [StructLayout(LayoutKind.Sequential)] public

Custom output resolution DuplicateOutput DXGI

被刻印的时光 ゝ 提交于 2020-01-14 04:41:05
问题 I'm using AcquireNextFrame to make a screenshot of my desktop. Is it possible to set a dimension of the output image I want on the setup ? I saw on the documentation this function IDXGIOutput::SetDisplaySurface that could help. Here is my code : //Here I init a output texture with less resolution D3D11_TEXTURE2D_DESC desc; desc.Width = 1280; desc.Height = 720; desc.MipLevels = desc.ArraySize = 1; desc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; desc.SampleDesc.Count = 1; desc.Usage = D3D11_USAGE