Questions tagged [scale]

The scale tag is mostly used for questions that relate to proportional resizing of images or UI elements. It is also used for questions related to function scale() in R language.

In scientific software for statistical computing and graphics, the function scale performs standardization of a vector or a matrix (by column).

4504 questions
16
votes
3 answers

scale/normalize columns by group

I have a data frame that looks like this: Store Temperature Unemployment Sum_Sales 1 1 42.31 8.106 1643691 2 1 38.51 8.106 1641957 3 1 39.93 8.106 1611968 4 1 46.63 8.106 …
itjcms18
  • 3,993
  • 7
  • 26
  • 45
16
votes
5 answers

Scaling sprites in SDL

How can i scale sprites in SDL?
kmaxeg
  • 163
  • 1
  • 1
  • 4
16
votes
4 answers

simple Jquery hover enlarge

I'm not sure where I'm going wrong. I'm trying to create a very simple hover-enlarge plugin with Jquery using the scale function. Here is my code: $(document).ready(function(){ $("#content img").toggle("scale",{ percent: "80%" …
A-frame
  • 293
  • 2
  • 3
  • 8
16
votes
1 answer

SQL Server decimal scale length - can be or has to be?

I have really simply question about DECIMAL (and maybe NUMERIC) type in SQL Server 2008 R2. MSDN said: (scale) The maximum number of decimal digits that can be stored to the right of the decimal point. Scale must be a value from 0 through p. I…
Jan Drozen
  • 894
  • 2
  • 12
  • 28
16
votes
2 answers

Mirroring a path in SVG

I want to code a Christmas tree in SVG using path. I started with writing the path for the left half of the tree, now I want to mirror these points along the y-axis to create the right half. I tried the scale command in many variations but it…
user1907238
  • 163
  • 1
  • 1
  • 5
15
votes
1 answer

Android: Is it possible to scale a xml drawable?

Here is what I want to do: I have this scale xml:
michelemarcon
  • 23,277
  • 17
  • 52
  • 68
15
votes
2 answers

Tradingview's auto fit scale function: exclude drawings of an indicator

I've got an indicator which automatically compresses the whole price chart on the y-scale, so I have to leave it invisible most of the time. Even a doubleclick on the y-scale (chart auto fit function) includes all visible indicators. Is there any…
cody
  • 6,389
  • 15
  • 52
  • 77
15
votes
2 answers

ImageView: adjustViewBounds does not work with layout_height="fill_parent"?

I'm trying to place in single row the EditText with the ImageView on the left. But I can't get the image to be scaled properly to match the height of text entry. The layout is simple:
GrAnd
  • 10,141
  • 3
  • 31
  • 43
15
votes
1 answer

How is it possible to determine the correct drawable size of a window on Windows 10? (SDL2)

I am working on an OpenGL application. I use a high-dpi screen, and the Windows GUI is scaled to 125%, to make the programs look like on a regular screen. If I create a 800*600 window using SDL2, it appears the same size as in a regular screen, but…
Iter Ator
  • 8,226
  • 20
  • 73
  • 164
15
votes
3 answers

Getting the 'scale' from a CATransform3D

I am creating an iPad app and want to update the user with the current size of a view. I used to be doing this by calculating the scale of a CGAffineTransform and multiplying the xScale by the width (of the related view) and the yScale by the…
Allyn
  • 20,271
  • 16
  • 57
  • 68
15
votes
1 answer

How to scale overlay image in ffmpeg

How can I scale down the overlay image to scale=320:240 in ffmpeg? Wherever I try to place the scale command, i don't get the results. Here is the command I am using, but it is actually stretching the image: ffmpeg -i video.mp4 -i image.jpg -b:v 1M…
Henry The Least
  • 619
  • 3
  • 11
  • 20
15
votes
2 answers

how to slowly transform scale with css?

I currently have it like this: http://jsfiddle.net/9DGb2/ But for some reason if I change the css to this: div { width: 200px; height: 100px; background-color: yellow; } div:hover { -moz-transform: scale(1.05) slow; …
MrLars
  • 161
  • 1
  • 1
  • 4
14
votes
1 answer

Access denied finding property "ro.vendor.pref_scale_resolution"

Randomly, my app crashs with an error: Access denied finding property "ro.vendor.pref_scale_resolution" I can't find documentation about this error. This error appears only on Android 11 on Nokia 2.4 Do you have ideas how I can resolve this ? or…
odgatelmand
  • 393
  • 1
  • 5
  • 16
14
votes
4 answers

How to set image size in UIButton?

I'm trying to make a clone of decimal pad by stack views and UIButtons. But when I try to make "Backspace" button image inside of it scales to the bounds of button. How could I make image scale smaller than button itself?
Ivan Kisin
  • 385
  • 1
  • 3
  • 12
14
votes
7 answers

Scale website to mobile devices

I have a web app where responsive layout is not an option for mobile devices, so I tried playing with the viewport scaling a bit but had no success in doing so. Page size is 1280x720 so on small screens it should be zoom out and on larger ones…
slash197
  • 9,028
  • 6
  • 41
  • 70