resize

Enable Maximize, Minimize and Restore Window in WPF (Manual Resize is disable)

Hi, I need to enable the following on my application (C# WPF application): 1) Have normal size of 1024*768 2) The user can maximize the application 3) The user can minimize the application 4) The user can restore the application (1024*768) 5) The user cannot manually resize the application by draging its border. There isn't any ResizeM...

Dynamically resizing a dialog at runtime to fit embedded WebBrowser

Hi, I am creating a WebBrowser ActiveX control inside an ActiveX dialog (ATL::CAxDialogImpl). The control is loaded with some text content at run-time before the dialog is displayed, and so the dialog window must be resized dynamically in order to fit the WebBrowser control. I've seen a similar question asked with C# but couldn't get it...

Detect when window vertical scrollbar appears

Is there a simple and reliable solution for detecting window vertical scrollbar appears/disappears? window.onresize isn't triggered when after JavaScript DOM manipulation page becomes high enough for appearing scrollbar. In this very similar post Detect if a page has a vertical scrollbar described solution how to detect whether scrollb...

how do I resize an original image in an HTML table?

Hi I created a table with 4 rows and 16 columns in HTML and I inserted an image in one cell and text in another until I had all my rows and columns. See my code below. My problem lies with the image: the image size is too big. I don't know how to get it to about the size of a thumbnail. Also the text isn't sitting right next to the imag...

Scale proportionally below movieclip size

Hi there, I'm trying to make a movieclip scale proportionally only if the item is being resize smaller than the current. Obviously I can use the ScaleX/Y values like so: if (cont.scaleX < cont.scaleY ) { cont.scaleY = cont.scaleX; } else { cont.scaleX = cont.scaleY; } I need to restrict/reset the scale proportions only in special cas...

Problem trying to do window resize with jquery cycle slideshow

Im trying to run a javascript window resize script on a page with a jquery cycle slideshow but im hitting some bugs I cant seem to work out. It resizes the first image fine on page load but then forgets the new height/width attributes for subsequent slides. I can set these again on before and after using jquery but the images always flas...

trying to limit window resizing. how to do it?

I'm trying to set a limitation for down sizing the browser window. I managed to resize to desirable size if resizing under this limit, but it only works in FF(not in IE and Chrome). My questions are: What's the best way for limiting resizing? Why doesnt resizeTo does not work on Chrome and IE? ...

What algorithms are available to resize a hash table?

I have implemented my own hash table functions in C, but currently it doesn't support resizing. I was wondering what algorithms do exist apart from the brute-force way of creating a new empty hash table and moving everything there? ...

How to have form resizeable C#

Hi, I currently have all the usual components inside a panel in a form, but how can I have it so when I resize the form it will move the components with it? I already tried this.panel1.size = new System.Drawing.Size(this.form.size.width, this.form.size.height); but it didn't work ...

Resize an Image file?

I'm writing an iPhone app. I want a UIImagePicker control to come up when the app is launched. When the user selects an image, I want to resize that to being 512x512 with the original image just in the top-left. I then want to save it to a new file in my app's folder. How do I achieve this? ...

Resolve Rounding Errors while Resizing Controls on Winform

Hi, I have a requirement to resize all the controls on a form when my form resizes. Unfortunately, due to some issues I can not use any container control or make use of anchor/dock property. I need to do everything using code. I am able to resize the controls as per the ratio the screen is resized. While performing this resizing, I need ...

Constantly running javascript?

How can I have my javascript code constantly run? The situation is that I want some page elements to be resized when the page resizes. I'm thinking that the way to do this would be to have some javascript code that constantly runs, and whenever the page size changes, it resizes that element. I tried doing this with setTimeout() and a rea...

Automatically resize jQuery UI dialog to the width of the content loaded by ajax

I'm having a lot of trouble finding specific information and examples on this. I've got a number of jQuery UI dialogs in my application attached to divs that are loaded with .ajax() calls. They all use the same setup call: $(".mydialog").dialog({ autoOpen: false, resizable: false, modal: true }); I just wa...

Does Python PIL resize maintain the aspect ratio?

Edit: Does PIL resize to the exact dimensions I give it no matter what? Or will it try to keep the aspect ratio if I give it something like the Image.ANTIALIAS argument? ...

WPF Path Resizing

Hi ! This is my Path: <Style x:Key="MyPath" TargetType="{x:Type Path}"> <Setter Property="SnapsToDevicePixels" Value="true" /> <Setter Property="Stroke" Value="Blue" /> <Setter Property="Data" Value="M0,100 L 80,40 160,100 M 40,80 L 40,160 120,160 120,80" /> </Style> <Pat...

How I can access resources of local filesystem and manipulate them from browser

I need a technology to: a) From the a browser, a web page, browse to the user filesystem (with his authorization) b) Let user select a folder and search for images c) The folder can contain huge jpg images (up to 20Mb) d) show a resized version, very tiny version, of the founded images inside the browser e) play with the thumbnail (reor...

How to reduce file size using PHP and JPEGs

I am using a the standard PHP functions imagecopytruecolor and imagejpeg to rescale and produce uploaded images from a standard HTML form. The images appear at the correct size however the image filesize is quite high (e.g. 540px * 350px = 250kb) When compared to Photoshop's Save for Web using JPEG high quality settings the same files ...

Resize JComponent for file export

I have a JPanel upon which I draw a number of custom-written JComponents using the usual 'paintComponent(Graphics g)' method. I use a JLayeredPane to control the display order of the custom components, as follows: public Class MyPanel extends JPanel { private JLayeredPane layeredPane = new JLayeredPane(); private JComponent com...

jquery + flash: looking for plugin that resize images before upload

i'm looking for a jquery plugin that can upload multiple images. I've tried uploadify and it works well. But with huge images it's very slow. is There anything like uploadify that resize also the images before upload them? thanks ...

Resizing UITableViewCell when entering edit mode.

I have a cell that I have designed in Interface Builder, and when I enter edit mode, it moves the whole cell to the right to make space for the delete icon, but it pushes all items to the right, not shrink them down. It pushes a UILabel off of the edge of the cell. Also, this is over the move handles. How do I shrink these items down,...