scale

Scaling web front end

Hi there. I have a web layout originally designed for use with televisions (running from a device with an obscure browser). We detect which resolution the tv is then serve up the corresponding css file and images. These css sheets and images have been scaled specifically for the three resolutions we support - 576, 720 and 1080. Now I...

iPhone: keep text looking good after scale transform applied?

I'm applying a scale transform to a UIView that draws a number. (The number is literally being drawn with drawInRect; no UILabel in sight.) The scale transform makes the view smaller by quite a bit...say, 80% smaller. The resulting number looks a little "chunky". Is there a way that I can keep my text looking nice and anti-aliased, the ...

How to apply dynamically scale down and up into a thumbnail images size?

I'm working on one current project, I don't have any issues to load a SWF into a main SWF but I can't figure out how to apply dynamically the scale down and up into a thumbnail images size while using the Resize event handler to fit in any browsers sizes. I load SWF into a Loader object then add it into a container => currentMC. I want...

Determine precision and scale of particular number in Python

I have a variable in Python containing a floating point number (e.g. num = 24654.123), and I'd like to determine the number's precision and scale values (in the Oracle sense), so 123.45678 should give me (8,5), 12.76 should give me (4,2), etc. I was first thinking about using the string representation (via str or repr), but those fail f...

Flex 4: Scale to a point (zoom into an image where the mouse was clicked)

I've been trying to get this working and I can't seem to figure it out. There is an Image control that when I click on it I need to zoom in (using the center/transform point where the mouse is clicked). I have the zoom transition working great, but when I set transformX & tranformY (with autoCenterTransform false) it doesn't zoom int...

scaling background and min size

Hi I have big background images 1200 by 1200, what i would like to do is expand the images when the user resizes the browser but constrain it so they never scale any smaller than the original size. There all lots of scalable bg images out there but none I can find that do this, any help would be appreciated. ...

Android : Stop image scaling down

Hi, I'm trying to draw an image in a view but having problems trying to maintain the scale of the original image. Basically, I have a small view and I would like to show part of the image in the view. The intention then is to perform a translation on the image so that a different part appears in the view. No matter what I try, either th...

Scaling a Control's Font in C# .Net

We all know that the Control base class has a Scale method. The problem is this: it's absolute crap. While it admirably scales all of the controls, it does not scale the fonts. So all my my labels, text boxes, and buttons look so very awkward. It would be so simple to just loops through all of the form's controls and change the font,...

iphone iOS4 breaking app

Hi all, I have an application that has been running fine since its launch over a year ago. I developed it with iphone iOS 2.2.1 originally and tested and kept selling it up until 3.2 without issues. Now it fails to launch with iOS4. the app uses a non standard size for a UIPickerView (I don't think that's the problem but just mention...

Scaling an object with a local scale and a rotation

Hello, I have an object which has a position, a rotation angle and a scale (x and y). The overall transform matrix is as follows : QTransform xform; xform.translate(instance.definition.position.x, instance.definition.position.y); xform.rotateRadians(instance.definition.rotation); xform.scale(instance.definition.scale.x, instance.defini...

Scaling values in PHP

I cant get around on how to express this is PHP. I have 100 and 420 as my min and max value that I wish to obtain. Than lets suppose I have: 1000 4534 34566 123145 12312265 Now, how can I say: Take 4534 and knowing that 1000 = 420 and 12312265 = 100 determine 4534 value. To make it more clear, Im trying to represent web page ranks...

android grow box animation

Hi, Inside of a ListView row, I have a box (right now its an imageview, but i will probably be converting it to a linear or relative layout object at some point). when you click on the box, i have it start a scale animation that makes it appear to grow. however, once the animation is over, the box goes immediately back to its original...

Prevent Silverlight from scaling line width

When using the ScaleTransform class, Silverlight also scale the thickness of the strokes on the shapes that I display. But what if I don't want this behaviour? Is it possible to disable the scaling of strokes, or will I have to iterate over every shape object and set the reciprocal thickness? ...

how can I know if an image needs to be scaled down or not?

I'm trying to create in Flex a Tile view that shows some images that a user has. The images don't have the same size, some are small and some are big. What I'm trying to do is to use a List and create an ItemRenderer that has an Image property which displays the user images (the images are passed to the source property of the Image Obje...

What is the difference between 'log' and 'symlog'?

In matplotlib, I can set the axis scaling using either pyplot.xscale() or Axes.set_xscale(). Both functions accept three different scales: 'linear' | 'log' | 'symlog'. What is the difference between 'log' and 'symlog'? In a simple test I did, they both looked exactly the same. I know the documentation says they accept different paramet...

Update UIView to ScaleFactor 2.0 for the iPhone4

I have a program running beautifully on my iPhone 4. It uses a class UIView I created (called TestView) to draw graphics using Quartz (very simply graphics such as just a few CG lines and circles). I need, however, to take advantage of the new higher resolution screen on the iPhone 4. Currently, the ensure backwards compatibility with iP...

Scaling multiple paths with raphael

Hi I'm trying to use Raphael to create a map tool similar to this example in the webpage. I have an svg file of the map I want to use, and the provinces are all separate paths in the file. However, if I copy the coordinates form the svg file directly to a raphael path, the image is too large to fit the screen and therefore I need to sc...

Jquery Slider display scale on slider bar

Hi All, I have used jquery slider with the help of which user select appropriate value for further calculation. Everything work perfect except the scale bar. I want to show the diffrent values of the slider to be displayed on slider bar. Something like slider scale. I have google it but I could not get the proper solution. Can any one...

Android - VideoView video scaling - different screen orientations and devices

How does Android handle scaling of a video being played within a VideoView? So for example if I have a video that is say 480 X 270 (width and height), aspect ratio 16:9. And, say the VideoView is added to a LinearLayout with LayoutParams of (480, 270). What will be width and height of the rendered video in portrait orientation in a devi...

Sprite scaling children even though stage.scaleMode = "noScale" and stage.align = "TL"

I am creating an AIR nativeWindow. I am adding two children, an HTMLLoader and a Sprite. The child Sprite has two children, a TextField and a Sprite that will be used to draw. I have set stage.scaleMode = "noScale" and stage.align = "TL", which the HTMLLoader seems to respect. However, the child Sprite scales its children whenever I set ...