fullscreen

Taking screenshot in Java (Robot, code working but not with external full screen application)

▼魔方 西西 提交于 2019-12-01 00:23:00
I am using the following code for taking a screenshot: Robot robot = new Robot(); BufferedImage image = robot.createScreenCapture(screenRectangle); ImageIO.write(image,"png", file); This code is running good. It takes screen shots of my desktop when I run the program, etc. However, when I try to run first some game, application in full screen , it doesn't work properly. It renders either black screen, either the same "initial" picture. Is this problem known, and how to fix this please? Second question : Is this possible to simulate some "Print Screen" key we can have on keybord in order to

Fullscreen with pyqt4?

爱⌒轻易说出口 提交于 2019-11-30 22:27:22
问题 I'm new to pyqt and I've been looking for some docs about pyqt and fullscreen mode. but I couldn't find nothing. So here is my question: is there any way to run a PyQT 4 application on fullscreen? 回答1: use showFullScreen() on your widget. 来源: https://stackoverflow.com/questions/6541771/fullscreen-with-pyqt4

Taking screenshot in Java (Robot, code working but not with external full screen application)

久未见 提交于 2019-11-30 19:54:03
问题 I am using the following code for taking a screenshot: Robot robot = new Robot(); BufferedImage image = robot.createScreenCapture(screenRectangle); ImageIO.write(image,"png", file); This code is running good. It takes screen shots of my desktop when I run the program, etc. However, when I try to run first some game, application in full screen , it doesn't work properly. It renders either black screen, either the same "initial" picture. Is this problem known, and how to fix this please? Second

How to fullscreen a QGLWidget?

烂漫一生 提交于 2019-11-30 19:53:27
I am new to OpenGL and Qt, and I am learning both simultaneously(3 days already:). I couple of years ago I did some exmerimenting with DirectX and I clearly remember that it was possible to make a full-screen window there. By full-screen I mean really full-screen, even without the top part where you have the close fullscreen and minimize buttons. I have this program so far: #include <QApplication> int main(int argc, char** argv) { QApplication app(argc, argv); QGLWidget w; w.show(); return app.exec(); } What should I add to it to make w full-screen? Martin Beckett showFullScreen() Although I

Borderless window application takes up more space than my screen resolution

冷暖自知 提交于 2019-11-30 19:13:01
I have created a borderless application in WPF, and it works pretty good. However, when I set the WindowState to full screen, the application takes up more space than my screen resolution, so there are some pixels outside the screen in all directions! (looks like some hard coded negative margins are added to hide the default border) Any Ideas how to prevent this from happening? My xaml: <Window x:Class="MyApp.Shell" WindowStyle="None" BorderThickness="0" AllowsTransparency="True" Background="Transparent" ResizeMode="CanResizeWithGrip" WindowState="{Binding MainApplicationWindowState}" ... Also

Can not scroll <body> while fullscreen is enabled in MS IE11

痴心易碎 提交于 2019-11-30 18:47:16
问题 I have a page with fixed header and footer using Bootstrap3. The content beneath is scrollable. The user may enable the fullscreen mode via F11 or a button (using the FullScreen-API). This works fine in Chrome and FF but has problems in IE11. Fullscreen with F11 works always fine. But toggling fullscreen mode with javascript causes my page to be placed at the top bottom with shrinked width and height when using IE11. My header and footer remain intact. <body> <header>Fixed</header> <main

Java setFullScreenWindow() keep on top

自作多情 提交于 2019-11-30 18:29:19
I'm writing an application that is intended to be run on a dual monitor setup, with a "Display" JFrame going fullscreen on one monitor and a "Control" JFrame on the other monitor, sending instructions to the Display. I've tried two separate methods of setting the Display fullscreen; the success of each seems to depend on the OS. display.setUndecorated(true); display.setExtendedState(JFrame.MAXIMIZED_BOTH); Works in Windows, but the JFrame gets hidden under the dock/panels in OS X and Linux. My other method, utilizing GraphicsDevice.setFullScreenWindow(display); Works in all three OSes that I

Using full screen Activity

梦想的初衷 提交于 2019-11-30 18:27:28
I am making a simple game and so far I've been using the Blank Activity. Now I want it to cover the entire screen, Will I need to Recode the entire thing using a FullScreen Activity? I've tried looking for something online but every thing i came across had adding this bit:​ requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); Which causes the app to crash as soon as it is launched on a device. SO please if anyone can show me my error. Here is a link to the logcat output as well as the game

Is there a way to overlay a <canvas> over a fullscreen HTML5 <video>?

ぃ、小莉子 提交于 2019-11-30 18:26:45
问题 I'm using videojs to play video, and I've done some manipulation on the video content frame by frame and display it in a <canvas> (ID: 'display'). When the video is playing, <canvas> can display in front of the <video> with the following css. <style type="text/css"> canvas#display { z-index: 1; postion: relative; top: some-video-height-px; } video#videoDiv_html5_api { z-index: -2; } div.vjs-controls { z-index: 3; } </style> It seems that z-index attribute is not working when <video> enters

FULL_SCREEN_INTERACTIVE mode: the “Allow” button click is passed to the application

六月ゝ 毕业季﹏ 提交于 2019-11-30 17:51:55
问题 In an AS3 game (using Flex 4.10.0) I would like to allow players to chat, even when they are in fullscreen mode. So I am using the following ActionScript code (the _fullBox checkbox triggers fullscreen mode in my web application): public function init():void { if (stage.allowsFullScreenInteractive) stage.addEventListener(FullScreenEvent.FULL_SCREEN, handleFullScreen, false, 0, true); } private function toggleFullScreen(event:MouseEvent):void { stage.displayState = stage.displayState ==