scale

Scaling a fill pattern in raphael.js

paper=Raphael('previewBody',480,480); paper.path({"stroke-width":1},'M0,0 L480,240 L480,480 L240,480 z') .attr('fill','url(bg.png)')) .scale(.5,.5,0,0); My problem is the fill is not scaled with the svg canvas, so proportionally, it ends up as twice the size it was before the scale of the path. Is there any easy way to scale the fi...

Parent-Child Constraints

Example: var circle1 :Canvas = new Canvas(); var circle2 :Canvas = new Canvas(); circle1.addChild( circle2 ) circle1.scaleX = 2; After the example before when Flash will render circle2 because it is child to circle1 it will be scaled to. Is there a way I can scale circle1 without affect circle2 or what can I do to circle2 so it can h...

Is CodeIgniter a wise choice for large applications?

Hi, I keep on reading how great codeigniter is from a development standpoint. And I am sure that using the framework will make the development process quicker. But the question I ask myself is, will there be a difference to a individually made framework, which caters to your needs? Is CI, despite the advertised small footprint, going ...

How to get Stretch.Uniform scale in Silvlerlight?

Is it possible to get the scale used to stretch an image in Silverlight? I have a image that i apply stretch.uniform on. When the browser window re-sizes, the image re-sizes as well. If it is possible to get the scale, other components can be transformed by this scale. Does anyone know how to get this? ...

WPF FlowDocument Scale to Fit Page

I have a FlowDocument that varies in height due to an ItemsControl in a BlockUIContainer. In some cases, the ItemsControl extends beyond the page height. Is there a way to scale the FlowDocument to fit a page (8.5" X 11") right before printing if needed? As of right now, the FlowDocument is named 'doc' and the method for printing I am u...

How do you get the viewport scale after pinch/zoom on an iPhone web app?

Does anyone know how to get the size in pixels or scale value of the viewport after a user has pinched or double tapped to zoom in/out on a page in JavaScript? I've tried using window.innerWidth but I've had mixed results. Sometimes it seems to accurately give the number of pixels the viewport is showing, however, if I zoom way in on a ...

2D Shape Scaling

Hi well I got a problem about scaling shapes.Well I m trying to scale two similar shapes.It is in 2d and each shape has n points .I found a statement like this from a paper I read "The size of a shape is the root mean square distance between the shape points and it's centroid." So from this point if I calculate the size of both shapes...

Program for HID USB Scale to Transfer Weight to MS Excel

Hi guys, I need to find a program that can help me transfer the weight on the scale http://global.dymo.com/enUS/Products/10%5Flb%5F%5FUSB%5FMailing%5FScale.html onto Microsoft excel. Can someone help me out or point me in the right direction? The scale does signify that the reading has stabilized and I think that is the cue for it to wr...

Resize a movieclip wihout messing up mouse coordinates.

How do I do this? I have a seekbar which I'm retrofitting to resize with the FLVPlayback. Right now it gets the mouseX when you click the seekbar, and divides that by the length of the seekbar in order to know what percentage it should seek to. My problem is that now that I'm dynamically setting the width of the seek movieclip the width...

jquery ui is not scaling text properly!

I'm trying use jquery ui to scale a div that I'm dragging around to make it easier to see what's behind it, but any text inside it is scaling strangely. The text itself becomes smaller, but it seems to have a bunch of padding around it and is floating now. The text extends past the bottom of the div even though it should be contained pro...

How to have Width and Height reflect ScaleTransform and how to ScaleTransform by setting Height and Width?

I have an issue with regards to using a ScaleTransform on a Canvas in Silverlight, the Canvas scales correctly, however the Height and Width values always remain the same. e.g. a 100x100 Canvas scaled so it appears 200x200 is still 100x100 with regards to the Height and Width values, how can these be updated to reflect the new size. A...

Proper use of UIRectClip to scale a UIImage down to icon size

Given a UIImage of any dimension, I wish to generate a square "icon" sized version, px pixels to a side, without any distortion (stretching). However, I'm running into a little snag. Not quite sure where the problem is. Here's what I'm doing so far. First, given a UImage size, I determine three things: the ratio to use when scaling down...

Java Graphics2D Panning and Zooming / Translating and Scaling

I've got a JPanel I'm drawing onto and I'm trying to get it so that you can use the mouse wheel to "zoom" in and out by modifying the variable scale. Right now what happens is you can zoom in or out but all of the drawing shifts to the right and downwards when you zoom in and then back up and left when zooming out. I want to make it so...

Smoothly and quickly animate resize of WinForms image

I'm considering whether it's feasible to add a specific animation to a WinForms application. I have a user control that's typically around 500 pixels square. When part of it is clicked, the effect should be that the control resizes down to a "thumbnail" representation around 200 pixels square. The idea is to provide the user some cont...

C#: How to change the region containing MDI children?

When creating a MDI parent, the entire "inside" of the form is made the MDI region. If you add a menustrip to the MDI parent, the MDI region is scaled down a bit to make room for the menustrip. But if you add a panel to the top of the MDI parent, the entire inside is still the MDI region. Which means that you can move MDI children up b...

How to prevent scale trumb within flex scrollbar

HI, all I'm looking simply approach to prevent scale thumb within flex scrollbar' According to our wireframes we should display scrollbar without up-down arrows and cycle (without scale) as a thumb; ...

resizing a child makes other child images to scale?

Hello I have this crazy situation when a child I modify height over the edge of it's parent, force another child of same parent display it's inside images scaled. If resized child don't pass the design time height of parent, no scale occur. Thumbs are loaded at runtime and simple added to a mc that is added to brother of resized mc. ...

Flex mx:axisrenderer How do I prevent the labels from being scaled.

Hi there, I have a line chart that sometimes contains a number of data points. I have solved how to prevent the horizontal axis from displaying too many labels using custom label functions and data functions. My problem is forcing the AxisRenderer not to scale down my labels. I'm using the labelRotation property so the canDropLabels a...

Scale wpf Bar Chart manually

I am scanning computers and their scale can not be like 1.5,2,2.5 they should be in whole numbers like 1,2,3,4. my current code is ICollection<KeyValuePair<String, int>> data = new Dictionary<String, int>(); data.Add(new KeyValuePair<string, int>(Protocol, protocolCount)); mycolseries = new ColumnSeries ...

jQuery resize to aspect ratio

How would I resize a image in jQuery to a consistent aspect ratio. For example setting maximum height and have the width resize correctly. Thanks. ...