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
14
votes
4 answers

C# WinForms disable DPI scaling

I have a WinForm application which hosts many images. When I put the application on a Win7 machines that has a DPI of 120, it completely ruins the look of the form. Is there a way to disable the scaling for my form? I am aware that this is something…
MarkP
  • 4,168
  • 10
  • 43
  • 84
14
votes
1 answer

Android ImageView centerCrop not working. Skewing instead of scaling

I'm currently working on a Navigation Drawer where I want the user photo to be scaled, cropped, tinted, then used as the header image behind a circular crop of there picture. I can't even post images because this account is too low rep...damn me and…
Pixel Perfect
  • 1,266
  • 1
  • 11
  • 14
14
votes
2 answers

Translate and Scale animation in parallel

I want to move some view from any position to center of screen and scale in parallel. If that's too complicated, translate and scale sequentially is also acceptable. But neither I could achieve. I think it's the problem with the pivot point. But…
user1105115
  • 483
  • 2
  • 5
  • 18
14
votes
4 answers

How do I scale this layout?

Been working on this layout for some time now and each way I take I run into some sort of obstacle (v1 of this here: https://stackoverflow.com/questions/14572569/how-can-i-contain-pos-abs-div-within-specific-area) What I'm trying to do now is to…
INT
  • 910
  • 4
  • 21
  • 45
14
votes
2 answers

setPivotX works strange on scaled View

I found out that setPivotX (also setPivotY) works strange in Android. If you set pivot when view's scale is set to 1.00f nothing happens (just pivot changes). But if the scale isn't equal 1.0f (e.g. setScaleX(0.9f)) and you set the pivot the view…
tomrozb
  • 25,773
  • 31
  • 101
  • 122
14
votes
2 answers

Understanding HTML 5 canvas scale and translate order

I'm doing some graphing around a center X,Y of 0,0. When it's time to render, I reposition with translate, and then use scale to make the graph fill the canvas (ie scale everything by 50% for example). I notice that it matters whether you call…
DougN
  • 4,407
  • 11
  • 56
  • 81
13
votes
3 answers

What is the best server-side programming language for large scale web applications?

I have a large web application idea that I would like to work on, which will require secure database interactions, file creation and editing abilities, speed, and output html. It needs to be able to run on a webhost, not a self-run server. What…
Geekman
  • 2,513
  • 3
  • 16
  • 10
13
votes
2 answers

Scale images in android relative to screen width

I have a layout with two images: one that should strech to the screen width one above it that should scale to the same proportion the first one was automaticaly scaled (relative to the original image size) More specific: the two images are slices…
Iulius Curt
  • 4,984
  • 4
  • 31
  • 55
13
votes
5 answers

Zoom in Java Swing application

I am looking for ways to zoom in a Java Swing application. That means that I would like to resize all components in a given JPanel by a given factor as if I would take an screenshot of the UI and just applied an "Image scale" operation. The font…
Shirky
  • 347
  • 2
  • 3
  • 14
13
votes
6 answers

jQuery UI Draggable + CSS Transform Causes "Jumping"

EDIT: I solved it. But StackOverflow isn't letting me mark my answer as the solution, so I simply am not going to. I'm having an issue with regard to using Draggable with a CSS transformed parent. Basically, I need to use absolute positioning to…
Thomas Havlik
  • 1,378
  • 4
  • 12
  • 20
13
votes
5 answers

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.
usertest
  • 27,132
  • 30
  • 72
  • 94
13
votes
10 answers

How do I count decimal places in SQL?

I have a column X which is full of floats with decimals places ranging from 0 (no decimals) to 6 (maximum). I can count on the fact that there are no floats with greater than 6 decimal places. Given that, how do I make a new column such that it…
MrPatterns
  • 4,184
  • 27
  • 65
  • 85
13
votes
2 answers

HTML5 canvas, scale image after drawing it

I'm trying to scale an image that has already been draw into canvas. This is the code: var canvas = document.getElementById('splash-container'); var context = canvas.getContext('2d'); var imageObj = new Image(); imageObj.onload = function() { //…
Mich Dart
  • 2,352
  • 5
  • 26
  • 44
13
votes
2 answers

css3 transform scale stick to bottom

Is it possible to use the transform: scale(x) property while keeping the element stuck to the bottom of the page? (by default if scales relative to the center of the element as shown below) (source: w3schools.com)
Raz
  • 8,981
  • 4
  • 19
  • 18
13
votes
3 answers

FFmpeg - How to scale a video then apply a watermark?

Im trying to scale a video so that it is always 512 wide where the height changes in proportion to the original video. Once scaled, I then want to apply a watermark/overlay to the video, therefore the video will scale but the watermark wont. I am…
Olibanum
  • 462
  • 1
  • 3
  • 11