fullscreen

HTML5 Video scale modes?

自古美人都是妖i 提交于 2019-11-28 17:39:09
I'm trying to make a fullscreen HTML background, which is easy enough. But because HTML5 video get's resized to fit the container while maintaining aspect ratio, I can't gett he desired effect. Are there different scale modes for HTML5 video? I'd like to scale to fill-and-crop. This is the desired effect done in Flash: http://www.caviarcontent.com/ If you resize the window you'll see it scale and crop. You will never get black bars. Thanks for the help! Another way to do this with CSS is to use the object-fit property. This works on video or img elements video { object-fit: cover; } http:/

How to open two instances of Chrome kiosk mode in different displays (Windows)

对着背影说爱祢 提交于 2019-11-28 16:50:56
问题 We are developing a web application that needs to open in two different browser instances each on a different Screen. Obviously the pc we are using has dual display already, and both monitors have the same size and resolution. The idea is that as soon as Windows starts the two applications should open immediately in fullscreen, our preferred browser is Chrome as it counts with several commands that might help us accomplish the task. We have succeeded on adding to the startup programs two

How do I set the window / screen size in xna?

和自甴很熟 提交于 2019-11-28 16:48:39
How can I adjust the size of the window in XNA. Default it starts in a 800x600 resolution. As of XNA 4.0 this property is now found on the GraphicsDeviceManager . Ie. this code would go in your Game's constructor. graphics = new GraphicsDeviceManager(this); graphics.IsFullScreen = false; graphics.PreferredBackBufferHeight = 340; graphics.PreferredBackBufferWidth = 480; // if changing GraphicsDeviceManager properties outside // your game constructor also call: // graphics.ApplyChanges(); I found out that you need to set the GraphicDevice.PreferredBackBufferHeight = height; GraphicDevice

Hide status bar in android 4.4+ or kitkat with Fullscreen

纵饮孤独 提交于 2019-11-28 14:14:07
I'm using following code for hiding status bar with full screen purpose: void HideEverything(){ if (Build.VERSION.SDK_INT < 16) { getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); } else { View decorView = getWindow().getDecorView(); // Hide the status bar. int uiOptions = View.SYSTEM_UI_FLAG_FULLSCREEN; decorView.setSystemUiVisibility(uiOptions); // Remember that you should never show the action bar if the // status bar is hidden, so hide that too if necessary. ActionBar actionBar = getActionBar(); actionBar.hide(); } } It shows

Creating a dot/pixel outside of a JFrame, any location on the screen

本小妞迷上赌 提交于 2019-11-28 13:08:12
I would like the be able to display points on the screen for my Java application. At some point I want to be able to let the user move the points and drag them around. Currently I am having trouble trying to draw a single dot/pixel on the screen outside of a JFrame. Any ways to draw outside of your JFrame area? You might create a full screen JFrame with full transparency, and draw to a panel or image on that. Much like this, which uses a custom panel to create a 'flashlight' effect for the mouse. We can see wherever the mouse is pointing, the rest of the screen is darkened. import java.awt.*;

True Full Screen JFrame/Swing Application in Mac OSX

有些话、适合烂在心里 提交于 2019-11-28 13:01:55
I'm working on application and I'm making the GUI with Swing. I would like my application to be fullscreen. I can easily set the size of the window however I have not been able to make the application truly fullscreen (IE With the apple menu bar and dock hidden). All the answers I have found online don't seem to work for me. I'm new to Java so any help is appreciated. frame = new JFrame("Test"); frame.setTitle("Test"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JLabel emptyLabel = new JLabel(""); Dimension dimension = Toolkit.getDefaultToolkit().getScreenSize(); frame.getContentPane

Making Winforms Fullscreen

与世无争的帅哥 提交于 2019-11-28 12:41:33
I need to make a winform full screen. This is what i found online. 1. Hook WinProc to catch WM_SYSCOMMAND 2. Check wParam == SC_MAXIMIZE and then 3. Set my windiw's attributes Me.ResizeMode = ResizeMode.NoResize Me.WindowStyle = WindowStyle.None Me.WindowState = WindowState.Maximized I am fairly new to vb.net and do not know how to do Steps 1 or 2. Can someone give me a snippet or point me in the right direction? Thanks giodamelio The trick is to obtain the HwndSource and call its AddHook() method. This works: Imports System.Windows.Interop Class Window1 Protected Overrides Sub

How to take a screenshot of a Full Size window in C#

蹲街弑〆低调 提交于 2019-11-28 11:47:56
I am trying to create an application in C#.net that captures the screenshot of the current active window including the area that has to be scrolled using scroll bars.I found the following code to take screenshot. To be very clear I want the code to take screenshot of the active window including the area that is not displayed and is only revealed by using scroll bars. public class ScreenShot { /// <summary> /// Captures the screenshot of the entire desktop /// </summary> /// <returns>Image object containing the screenshot of the desktop</returns> private Image CaptureDesktop() { return

Java Fullscreen mode not working on Ubuntu

血红的双手。 提交于 2019-11-28 11:20:21
So I'm using Ubuntu and when I want to enter fullscreen mode in Java, a normal window appears with max screen size, instead of a fullscreen window without title bar etc. I admit, I'm not even sure what the fullscreen mode should look like in Java, because I have not tried it on any other OS. But I assume it should be a screen without title bar. Anyone else who has this problem? This is the code I use. ; pretty straight forward. public static void main(String[] args) { GraphicsEnvironment env = GraphicsEnvironment .getLocalGraphicsEnvironment(); GraphicsDevice vc = env.getDefaultScreenDevice();

The values of meta viewport attribute are not reflected when in full screen mode in android chrome browser

南楼画角 提交于 2019-11-28 10:37:54
When I am in full screen mode in android using fullscreen api, the values of meta viewport attribute like initial-scale and user-scalable are not reflected in the browser. If I am not in full screen mode, the values of meta viewport are reflected. You can check it by accessing MDN:Fullscreen api example from a mobile browser I don’t find any source saying meta viewport will be disabled in fullscreen in android. So am I making any mistake or no one has documented it? Also pinch and zoom is disabled when in fullscreen Raised a issue in https://github.com/whatwg/fullscreen/issues/111 but no luck.