resize

Create Window larger than desktop (display resolution)

我是研究僧i 提交于 2020-01-11 04:57:05
问题 I need to resize a window larger than screen resolution or size of desktop, programmatically & preferably also manually. Since MS-Windows XP/Vista disallows a window size larger than screen, does anybody have any ideas to work around this limitation? I trying to make pan effect on a laptop to give me more space to work. An older laptop with a smaller LCD size did have such a feature. See this: http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Windows/98/Q_21832063.html 回答1: If

How to resize image automatically on browser width resize but keep same height?

廉价感情. 提交于 2020-01-11 01:47:14
问题 I am trying to replicate the same effect that this website has: http://www.knockknockfactory.com/ When the browser width is resized the image automatically gets smaller but the height of the area in which it occupies stays the same. When i try to replicate this, my image also gets smaller but the height changes? My code so far is: <div id="image"><img src="cover.png" /></div> CSS: body { margin: 0; padding: 0; } img { max-width: 100%; height: auto; } How do i get my image to decrease/increase

Resize image map on window resize

China☆狼群 提交于 2020-01-10 05:00:07
问题 I'm trying to resize an image map on window resize event. The closest I've gotten is to use a mouseclick event, but it needs to be window resize for what I'm doing. I'm using Firefox 3.5.5 I'm using jquery somewhat. Here's my example - the area button I want to resize on window resize is in the top left (click on it to resize map and area button): http://www.whitebrickstudios.com/foghornstour/imagemap3.html Any help would be appreciated! Thank you, Rich 回答1: I wrote some simple function to

Resize elements by dragging divider handler

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-10 00:30:19
问题 I want to be able to drag a divider up and down to resize the divs above and below the divider on a fixed page height. These divs could be in a table, although they need not be. In short, I would like to be able to emulate what happens on the jsFiddle site, although I only need the vertical resize. jsFiddle have used mooTools, but I want to do it with jQuery. One important complication: I won't know the size of the div above the divider until it is actually built dynamically, so I can't just

Resize images with PHP, support PNG, JPG

旧城冷巷雨未停 提交于 2020-01-09 09:00:09
问题 I am using this class: class ImgResizer { function ImgResizer($originalFile = '$newName') { $this -> originalFile = $originalFile; } function resize($newWidth, $targetFile) { if (empty($newWidth) || empty($targetFile)) { return false; } $src = imagecreatefromjpeg($this -> originalFile); list($width, $height) = getimagesize($this -> originalFile); $newHeight = ($height / $width) * $newWidth; $tmp = imagecreatetruecolor($newWidth, $newHeight); imagecopyresampled($tmp, $src, 0, 0, 0, 0,

Change Font based on screen size change

痴心易碎 提交于 2020-01-07 02:33:22
问题 In my Java Swing application, I have buttons. If the screen size is changed, I want to change the font of my button text also. How do I implement it? 回答1: I believe that you need a JFrame window listener and simply change the button attributes there: //global JButton button1 defined earlier button1.setFont(new Font("<FONT NAME>", <FONT STYLE>, <FONT SIZE>)) 回答2: GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds() ? 回答3: Thanks to all, Based on listeners and frame size,

set size of iPhone view controller

我是研究僧i 提交于 2020-01-07 02:22:21
问题 I am segueing to a view controller called SmallerVC. I want to set the size of SmallerVC to 300 X 300. So far I am not having much luck. I have tried the answers at the following link separately and then together, they don't work: ios5 - size of modal view controller with storyboard. I am using Xcode-5 and iOS-7. Has anyone successfully done this? I came to iOS with the prejudice that anything I can do on Android I should be able to do more easily on iOS. And so far iOS has been constantly

centering an img within a div - both being resized

*爱你&永不变心* 提交于 2020-01-06 18:01:03
问题 I'm trying to center a resized image within its container (which should also be centered). I don't understand why this is so difficult, but I've been trying to get this working for 7 hours now. Please help :-) html: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <title>Title</title> <link rel="stylesheet" href="styles.css" /> <script src="http://code.jquery.com/jquery-latest.min.js"></script> <script> function imageresize() { var conHeight = ($(window).height())* 0.56; $("

centering an img within a div - both being resized

岁酱吖の 提交于 2020-01-06 18:00:43
问题 I'm trying to center a resized image within its container (which should also be centered). I don't understand why this is so difficult, but I've been trying to get this working for 7 hours now. Please help :-) html: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <title>Title</title> <link rel="stylesheet" href="styles.css" /> <script src="http://code.jquery.com/jquery-latest.min.js"></script> <script> function imageresize() { var conHeight = ($(window).height())* 0.56; $("

DialogEx with Controls: Resizing?

走远了吗. 提交于 2020-01-06 15:29:26
问题 The aim is to resize the Window of the DialogEx that best fit the configured Systemmetrics screenheight and screendepth on the object machine: int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR pCmdLine, int nCmdShow) { return DialogBoxW(hInstance, MAKEINTRESOURCEW(IDD_MAIN), nullptr, DlgProc); } IDD_MAIN is setup as the default in 768p. Let's call it IDD_760P instead and use its resource file config as the base to work on. IDD_768P DIALOGEX 0, 0, 701, 191 STYLE DS