resize

Resize transparent images using C#

Does anyone have the secret formula to resizing transparent images (mainly GIFs) without ANY quality loss - what so ever? I've tried a bunch of stuff, the closest I get is not good enough. Take a look at my main image: http://www.thewallcompany.dk/test/main.gif And then the scaled image: http://www.thewallcompany.dk/test/ScaledImage...

Windows Form with Resizing Frame and no Title Bar?

How can I hide the title bar from a Windows Form but still have a Resizing Frame? ...

WinForm - draw resizing frame using a single-pixel border

In a Windows Form with a Resizing Frame, the frame border draws with a raised 3-D look. I'd like it to draw with a flat single pixel border in a color of my choosing. Is this possible without having to owner draw the whole form? ...

Large Image resizing libraries

Does anyone know of any good image resizing libraries that will handling resizing large images(~7573 x ~9485). Something that is fast and doesn't chew to much memory would be great. At the moment I am using IrfanView and just shell invoking it with arguments but I would like to find something that integrates into .net a bit more. Than...

Seeking CSS Browser compatibility information for setting width using left and right

Here's a question that's been haunting me for a year now. The root question is how do I set the size of an element relative to its parent so that it is inset by N pixels from every edge? Setting the width would be nice, but you don't know the width of the parent, and you want the elements to resize with the window. (You don't want to use...

Best way to cache resized images using PHP and MySQL

What would be the best practice way to handle the caching of images using PHP. The filename is currently stored in a MySQL database which is renamed to a GUID on upload, along with the original filename and alt tag. When the image is put into the HTML pages it is done so using a url such as '/images/get/200x200/{guid}.jpg which is rewr...

Windows C++ dialog resizer class

I'm looking for a really good dialog resizer class that will stretch and shrink individual items as needed as the screen is resized. Stephan Keil has a good one (DlgResizeHelper) which basically resizes everything by a set ratio, but I'm looking for something smarter. For example: Icons should not resize Single-line text boxes should...

Implementing a resizable textarea?

How does Stackoverflow implement the resizable textarea? Is that something they rolled themselves or is it a publicly available component that I can easily attach to textareas on my sites? I found this question and it doesn't quite do what I want. autosizing-textarea That talks more about automatically resizing textareas whereas I ...

How to avoid flicker while handling WM_ERASEBKGND in Windows dialog

I have a dialog that resizes. It also has a custom background which I paint in response to a WM_ERASEBKGND call (currently a simple call to FillSolidRect). When the dialog is resized, there is tremendous flickering going on. To try and reduce the flickering I enumerate all child windows and add them to the clipping region. That see...

window.resizeTo affects subsequent Firefox windows

I have a webapp which resizes its window to exactly fit its contents: window.resizeTo(200,300) People do like having the page fit its window in this way. However with Firefox the next browser window the user opens comes up at the same size, which is ridiculously small. Is there a way to tell Firefox to resize the current window, but ...

How to resize all images in a block of HTML to a specific width and cache the results

I'm writing a mobile content adaptation plugin for a bespoke CMS in PHP. The CMS contains links to images with absolute URLs which are all 400 pixels wide and vary in height. I'd like to parse the HTML (which is stored in MySQL) and re-scale each image to a new width - this will vary according to the device. I'd also like to cache the i...

Resize an image in Java - Any Open Source Library ?

I need to resize PNG, JPeg and Gif files. Are there good java open source libraries to do that ? ...

jQuery Animation - Smooth Size Transition

So this might be really simple, but I haven't been able to find any examples to learn off of yet, so please bear with me. ;) Here's basically what I want to do: <div>Lots of content! Lots of content! Lots of content! ...</div> .... $("div").html("Itsy-bitsy bit of content!"); I want to smoothly animate between the dimensions of t...

Retain relative mouse position while resizing a JPanel in a JScrollPane

I'm resizing a JPanel inside of a JScrollPane, and I want to make sure that the point on the JPanel where my mouse is currently located retains its position with respect to the JScrollPane after the resize (like Google maps does when you zoom in/out). I find the mouse position on the JPanel, which lets me deal with the viewport being at...

BiCubic Shaper PHP Image Resize

Photoshop has that great: BiCube Shaper option for resizing. However I cannot find an equivalent. I've seen various code using GD that used imagecopyresampled and custom unsharp mask, but no where near the quality I am expecting. Any help? ...

Resizable Java component

I would like to have a Java component which has a resize icon on the bottom right of the component so that when I drag that icon, the component will automatically resize with it. By resize icon, I mean the following: The above image contains the resize icon in the Google Talk messenger's main window. Is there any Java component which...

Vmware dual monitor problem

Hi, I am running VMware under windows on a dell d630 laptop. I am using the laptop monitor plus an external lcd, with the vmware maximized on an lcd and windows running on the laptop monitor. The lcd is much larger and therefore has larger resolution. When I minimize and then maximize under windows, the vmware window is minimized, but ...

What is the best way to stop a user from resizing the top-level window of an application written in WPF?

What is the best way to stop a user from resizing the top-level window of an application written in WPF? ...

Firefox - designMode: disable image resizing handles

How can I prevent the user from being able to resize an image in designMode? (disable the handles when image is clicked) ...

Outlook Add-In Inspector Window Loading

After experimenting with screenshots of programmatically sized Outlook Inspectors, I've noticed that resizing is not instant. (TakeScreenshot is done programaticcaly by creating a bitmap from the window's device context, then writing it to disk. Version A: Resize, Bringtofront, TakeScreenshot Version B:Resize, Bringtofront, threadslee...