Join us in building a kind, collaborative learning community via our updatedCode of Conduct.

Questions tagged [resize]

Issues relating to the resizing of controls, windows, forms or screens.

360
votes
28answers
281k views

The simplest way to resize an UIImage?

In my iPhone app, I take a picture with the camera, then I want to resize it to 290*390 pixels. I was using this method to resize the image : UIImage *newImage=[image _imageScaledToSize:...
299
votes
8answers
268k views

Using jQuery To Get Size of Viewport

How do I use jQuery to determine the size of the browser viewport, and to redetect this if the page is resized? I need to make an IFRAME size into this space (coming in a little on each margin).For ...
271
votes
34answers
316k views

Creating a textarea with auto-resize

There was another thread about this, which I've tried. But there is one problem: the textarea doesn't shrink if you delete the content. I can't find any way to shrink it to the correct size - the ...
237
votes
11answers
257k views

Cross-browser window resize event - JavaScript / jQuery

What is the correct (modern) method for tapping into the window resize event that works in Firefox, WebKit, and Internet Explorer?And can you turn both scrollbars on/off?
213
votes
17answers
374k views

Resize an Image C#

As Size, Width, Height are Get() properties of System.Drawing.Image,How can I resize an Image object at run-time in C#.Right now, I am just creating a new Image using:// objImage is the original ...
202
votes
22answers
184k views

jQuery - how to wait for the 'end' of 'resize' event and only then perform an action?

So I currently use something like:$(window).resize(function(){resizedw();});But this gets called many times while resizing process goes on. Is it possible to catch an event when it ends?
193
votes
20answers
206k views

Android: Resize a large bitmap file to scaled output file

I have a large bitmap (say 3888x2592) in a file. Now, I want to resize that bitmap to 800x533 and save it to another file.I normally would scale the bitmap by calling Bitmap.createBitmap method but ...
172
votes
14answers
110k views

Rerender view on browser resize with React

How can I get React to re-render the view when the browser window is resized?BackgroundI have some blocks that I want to layout individually on the page, however I also want them to update when ...
141
votes
10answers
206k views

How to resize a custom view programmatically?

I am coding a custom view, extended from RelativeLayout, and I want to resize it programmatically, How can I do?the custom view Class is something like:public ActiveSlideView(Context context, ...
133
votes
17answers
256k views

How to resize images proportionally / keeping the aspect ratio?

I have images that will be quite big in dimension and I want to shrink them down with jQuery while keeping the proportions constrained, i.e. the same aspect ratio.Can someone point me to some code, ...
127
votes
7answers
154k views

Image resizing client-side with JavaScript before upload to the server

I am looking for a way to resize an image client-side with JavaScript (really resize, not just change width and height).I know it's possible to do it in Flash but I would like to avoid it if possible....
125
votes
7answers
255k views

WPF: Setting the Width (and Height) as a Percentage Value

Say I want a TextBlock to have its Width equal to it's Parent container's Width (ie, stretch from side to side) or a percentage of it's Parent Container Width, how can I accomplish this in XAML ...
114
votes
16answers
142k views

How can I resize an image using Java?

I need to resize PNG, JPEG and GIF files. How can I do this using Java?
114
votes
8answers
219k views

How can I scale an entire web page with CSS?

Using Firefox, you can enlarge an entire web page by simply pressing CTRL +. What this does is proportionally enlarge the entire web page (fonts, images, etc).How can I replicate the same ...
111
votes
4answers
205k views

Android: How to Programmatically set the size of a Layout

As part of an Android App I am building a button set. The buttons are part of a nested set of LinearLayouts. Using weight I have the set resizing itself automatically based on the size of the ...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,