screenshot

Take a screenshot of a particular area in Delphi 7

南楼画角 提交于 2019-12-13 03:46:56
问题 I have a panel in the form delphi that contains pictures, labels and others. I need to take screenshots in the panel area. How can I perform this ? 回答1: Assuming that you have a panel named Panel1 to be screenshot, a button named Button1 to do the screen shoot, and Image1 to display the screenshot, here is simple code you can use: procedure TForm1.Button3Click(Sender: TObject); var bitmap: TBitmap; dc: HDC; begin bitmap := TBitmap.Create(); try dc := GetDC(Panel1.Handle); try bitmap.Width :=

Share screen shoot android studio(multi-times)

。_饼干妹妹 提交于 2019-12-13 03:41:12
问题 I have app and i am letting user to make screenshot and share it, all working fine just one problem.. When user for example make screenshot and press on Facebook icon > then he press cancel sharing ,next time when he want to do another share he will see the old screen shoot , how can make it take the last screenshot always?? ** i have each image has different file name but the share always taking the last action that didn't finish. (if user do share all will work fine ,next screen shoot will

Mac Cocoa How to scroll another App that under a view?

北城以北 提交于 2019-12-13 03:26:27
问题 I'm trying to make a screenshot capture App. The App will first place a semitransparent full screen dark view over other Apps, this will make other Apps not responding to mouse scrolling event. How can I set a view covers other Apps and keep them respond to scrolling event? Thanks. Ignore MyApp's dark view? or Send event to other Apps in MyApp? -(void)scrollWheel:(NSEvent *)theEvent { NSLog(@"user scrolled %f horizontally and %f vertically", [theEvent deltaX], [theEvent deltaY]); } Edited:

Taking screenshot of screen(programmatically)

帅比萌擦擦* 提交于 2019-12-13 02:33:18
问题 I would like to take a screenshot of an Android device programmatically. I know this question has been asked many times.I am aware of two ways to do it. Using screenshot library(But I am getting black screen all the time). getting data from frame buffer with rooting from \dev\graphics\fb0 (But it is always 0 byte and I do not know exact location where current screenshot of device is stored). My preferred requirement is getting better frame rate.My code is public void onCreate(Bundle

Java- screen capture behind the application

亡梦爱人 提交于 2019-12-13 02:02:34
问题 Is there a way to capture the screen but without the app itself getting shown. I know how to minimize or make a frame invisible but this has to be done real fast cos it's going to happen alot in each second (at least once every second). I want it to look something like the magnifier in Windows Vista/7. (The app can see behind itself.) 回答1: This is not possible in Java without tight native integration with the window-manager of the platform in question. 回答2: Call setVisible(false) on your main

How to take screen shot of Windows Form with Scroll Bar in c#

拥有回忆 提交于 2019-12-13 02:01:17
问题 I have a windows form application. The form is large & has scroll bars to view its entire content. I need to take the screen shot of the entire form(including the area which is outside of screen due to the forms height). I tried following code, but it captures only the part of the form which is visible on screen: ScreenCapture sc = new ScreenCapture(); // capture entire screen, and save it to a file Image img = sc.CaptureScreen(); // display image in a Picture control named imageDisplay this

How to screenshot just part of a screen

为君一笑 提交于 2019-12-13 01:37:02
问题 I need to crop an image to a rectangle with a height of 25 and a width the length of the screen. I have the image ready and positioned in the center of the screen. I'd like to screenshot ONLY the rectangle. I followed this answer, but it does not seem to be working for me for some reason. UIGraphicsBeginImageContextWithOptions(CGSizeMake(self.view.frame.width,25), false, 0) self.view.drawViewHierarchyInRect(CGRectMake(self.view.frame.width,25,view.bounds.size.width,view.bounds.size.height),

Take screenshot of screen behind form?

ⅰ亾dé卋堺 提交于 2019-12-13 01:15:47
问题 I am trying to take a screenshot with a form of a screen BUT I don't want my form to be included in the screenshot. This is my current Code for getting the screenshot. Bitmap bt; Graphics screenshot; private void button1_Click_1(object sender, EventArgs e) { this.Opacity = 0; bt = new Bitmap(Screen.FromControl(this).Bounds.Width, Screen.FromControl(this).Bounds.Height, PixelFormat.Format32bppArgb); screenshot = Graphics.FromImage(bt); screenshot.CopyFromScreen(Screen.FromControl(this).Bounds

Capture the screenshot of a webpage using html2canvas with png extension

喜欢而已 提交于 2019-12-13 01:05:41
问题 How to capture a screenshot of a webpage using html2canvas with png extension, and save it in a local folder? I tried the following code. It saves the screenshot with the file name download but without a png/jpeg extension. Any way to make it work? I also want to save the screenshot to a local folder. <html> <head> <meta charset="utf-8"/> <title>test2</title> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.js"></script> <script type="text/javascript" src ="http://code

Trouble capturing window with winAPI BitBlt for some applications only

大兔子大兔子 提交于 2019-12-13 00:10:24
问题 I've put together a simple python script that is supposed to take a screenshot of a window whose name contains a specific string. The code I use is the following, import win32gui, win32ui, win32con import PIL.Image def getWindowHandle(name): windowList = [] win32gui.EnumWindows(lambda hwnd, wndList: wndList.append((win32gui.GetWindowText(hwnd), hwnd)), windowList) for pair in windowList: if name in pair[0]: return pair[1] return None class Window(): def __init__(self, hwnd = None): if not