scale

C# WPF Stretching/scaling window proportional to size

I am aware of the FontStretch property, but not really sure how to use it. What I want is to create a window designed with a resolution of say 200x400. Then when the user stretches it to 400x800 (or whatever), I'd just like the entire window to stretch/scale up (in the given scenario, everything would double in size) rather than just...

Whats wrong with IE7 Image scaling Width to 100%? Fine in IE8

IE7 does not resize the images properly with CSS My page looks perfectly fine in FF and IE8 - exactly like it should. But for some reason on IE7 it does no properly resize the images down to 100% of the parent container, which is set at 30% of the page width. The images are just 100% width of the full image. How do I make it look like ...

Scale a .jpg file in WPF

I'd like to open a .jpg file in WPF, scale it down to around 50%, then save it back to the file system. What's a good/efficient way to go about doing that? ...

Setting up a scale of collection3 graphs

We use collectd to monitor a lot of stuff inside our app. It's great. We also use collection3 to display the data collected. It's great too, but the doc is either very well hidden or not written. So basically, we have this graph that shows a percentage a late feeds (we're a feed polling service) and I want to make sure the graph display...

Scaling multiple images to fit inline in a div?

Is there an efficient way to scale a number of images so that they can fit inline inside a fixed-size div? I'm assuming it would be possible to do by using javascript to calculate the div width, divide it by the number of images (excluding padding) and then resizing the images equally to keep their aspect ratio but I'm hoping there is a...

ScaleTransform applied to elements in stackpanel causes "white" space

When I add UserControls that have a ScaleTransform applied to them to a StackPanel, I see that there is extra space in between the controls as though the transform was not applied. From what I understand, a transform doesn't actual change the width/height of a control, but rather changes the render width/height. If this is the case, ho...

Surface development: Translate/Rotate/Scale items without ScatterView

Hi, Is it possible to transalte/rotate/scale items without a ScatterView? I want to manipulate items which can be on top of other elements like a button, list or a custom control which should be static . When I add them to a ScatterView, they all become ScatterViewItems which is not the desired effect. Thx! Maarten ...

jquery - get parent of parent?

I'm using the jquery.cjobjectScaler plugin (link text ) and due to circumstances beyond my control, the img is hyperlinked within the div... I don't have any way to "strip out" that tag, nor can I reorder it at all... So, the original function is this: $("#productGrid li img").cjObjectScaler({ destObj: $("#productGrid li img")....

Scaling and cropping huge image on the iPhone

Hi All, For the last few weeks I've been tearing my hair out trying to get a tiling mechanism working on an iPhone. I need to scale and crop images of about 150mb so that they can be saved as tiles that will be requested by a scroll view, allowing the user to see the image in high resolution. The problem is that these images are really...

How do I scale a UIButton's imageView?

Hey guys! I create a UIButton instance(named "button") with a image use [UIButton setImage:forState:] function, the button.frame is larger than the image's size. Now I want to scale this button's image smaller. I had tried to change button.imageView.frame, button.imageView.bounds and button.imageView.contentMode, but all seem ineffective...

How Do You CAKeyframeAnimation Scale?

Hi, I want to create an animation with several key frames. I want my Layer (a button in this case) to scale up to 1.5 then down to 0.5 then up to 1.2 then down to 0.8 then 1.0. I also want to EaseIn and EaseOut of each keyframe. As you can imagine, this will create a Springy/Bounce effect on the spot. In other parts of my app I have ...

scale Image in an UIButton to AspectFit?

I want to add an image to a UIButton, and also want to scale my image to fit with the UIButton (make image smaller). Please show me how to do it. This is what I have try, but it does't work: Add image to button and setContentView [self.itemImageButton setImage:stretchImage forState:UIControlStateNormal]; [self.itemImageButton setCont...

Scaled live iPhone Camera view in center, "CGAffineTransformTranslate" not working

Hi, I have a little problem which I could not solve. I really hope someone can help me with that. I wanted to resize the live camera view and place it in the center, using the following code below: picker.cameraViewTransform = CGAffineTransformScale(picker.cameraViewTransform, 0.5, 0.56206); picker.cameraViewTransform = CGAffin...

how can i make this equation faster.

right now i have a bottle neck in my program I'm trying to write. i am trying to use a pinch gesture to control the scale of a UIImage. its the calculation of the scale that is causing the program to slow down and become choppy. below is the equation. currentScale = (currentDistance / initialDistance) * scaleMod; scaleMod is what ever...

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...

Scale WebView in Cocoa

How can I scale the content of a WebView? ...

interlock vs mutex, scale-up issues

Hi, I am facing the problem, that I have an C# (.NET) object shared among some threads. A thread might replace the object with another one. The threads are waken up from a TCP/IP connection using the Asynchronous framework. Sequence: Threads (waiting for connection) -> Asynchronous Callback -> Do something thread-safe -> Access the sh...

Scaling sprites in SDL

Hi. How can i scale sprites in SDL? ...

couchdb complex map reduce over multiple documents give back single json object

How to create a complex map reduce function in couchdb to span a view over multiple documents with same attribute names to give back a single json object? What is the most efficient way to manage this? Is a nested set/source algorithm suitable for couchdb (changes are very write intensive)? ...

Papervision 3D: How can I force dimensions on a collada file

Hey everyone, I'm working with Collada files and I need them to be a certain size. When instantiating them in pv3d you set the filename, materials, and scale. Scale works like a percentage, and there's no way to get the width, height, or depth of the DAE once in flash. I want to be able to specify the size of DAE in 3D space relative ...