Questions tagged [scaling]

Scaling refers to the image manipulation function of re-sizing an image. For issues to do with handling increasing workload gracefully in software or network components, see "scalabilty".

Scaling refers to the image manipulation function of re-sizing an image.

2497 questions
12
votes
3 answers

UIButton ignoring contentMode when highlighted (adjustsImageWhenHighlighted)

I set a UIImage for my UIButton using [myButton setImage:forState:]; and I set it's contentMode using [[myButton imageView] setContentMode:UIViewContentModeScaleAspectFit]; But when you tap the button, it goes back to UIViewContentModeScaleToFill…
Kenny Winker
  • 11,919
  • 7
  • 56
  • 78
12
votes
2 answers

My WPF app is per-monitor dpi-aware out of the box. I was not expecting that?

I am a bit confused about per-monitor dpi-aware in WPF. I thought you need to do some work to make your windows scale properly on different monitors (as described in Developing a Per-Monitor DPI-Aware WPF Application). But I've just ran my app on…
Nick Sologoub
  • 724
  • 1
  • 7
  • 21
12
votes
1 answer

Using multiple node clients in elasticsearch

I'm trying to think of ways to scale our elasticsearch setup. Do people use multiple node clients on an Elasticsearch cluster and put them in front of a load balancer/reverse proxy like Nginx. Other ideas would be great.
Ananth Ravi
  • 717
  • 2
  • 7
  • 13
12
votes
4 answers

Scale down specific Heroku worker dynos?

I'm building a web application which provides as a core feature the ability for users to upload large images and have them processed. The processing takes roughly 3 minutes to complete, and I thought Heroku would be an ideal platform for being able…
Coleman S
  • 488
  • 1
  • 4
  • 15
11
votes
2 answers

UIImageView, setClipsToBounds and how my images are losing their head

I'm developing an iOS 4 application. I'm using this code on an UIImageView on an UITableViewCell: cell.photo.contentMode = UIViewContentModeScaleAspectFill; [cell.photo setClipsToBounds:YES]; My images are taller than wide, and when I set…
VansFannel
  • 45,055
  • 107
  • 359
  • 626
11
votes
1 answer

How to scale the Quartz scheduler?

I plan to use the Quartz scheduler as I read many good opinions about it. My problem is as follows: I will have thousands of triggers living in the system at any given time. Most of the triggers will fire just one event and die. In addition, it is…
David Rabinowitz
  • 29,904
  • 14
  • 93
  • 125
11
votes
3 answers

How to disable scaling the UI on Windows, for Java 9 applications?

There was no proper HiDPI support in Java 8. In Java 9, JavaFx applications correctly scale to the monitor they are in. For example, if my monitor is set to scale at 150%, the Java application is scaled to 150%. See:…
Marcelo Glasberg
  • 29,013
  • 23
  • 109
  • 133
11
votes
4 answers

SKNode scale from the touched point

I have added UIPinchGestureRecognizer to my scene.view to scale my content. I actually scale the parent node where all my visible contents reside. But I have problem though with scaling point. The thing is node scale from the lower-left corner.…
Mikayil Abdullayev
  • 12,117
  • 26
  • 122
  • 206
10
votes
8 answers

How to auto resize the image for responsive design with pure css?

I have tried to auto resize the image using the CSS property max-width, but it does't work in IE7 and IE8. Is there any way to auto resize the image with pure CSS in IE7 and IE8?
Viduthalai
  • 158
  • 1
  • 2
  • 9
10
votes
3 answers

Larger Image to fit in picturebox

As you'll can see the first image is the size of (1024*768) and it is correctly displayed in the picturebox and in the second case the image size is (1600*900) and it is displayed to half of the picturebox and the remaining is missing .So No I would…
user676589
10
votes
1 answer

Adding customized straight line on x-axis by jpgrph

I would like to ask how to add the customized line into chart by using jpgraph. For example, to identify SUNDAY on date which selecting from database, the jpgraph will draw a straight line with red color on each Sunday which will be showed on…
Chris.C
  • 297
  • 3
  • 17
10
votes
3 answers

Bad Swing UI scaling on high resolution (MS Surface)

I'm currently working on a little Java application, that involves Swing GUIs. On my development PC everything looks fine but when I run it on my MS Surface, some icons seem to be too large for the components (or the components too small for the…
Macklin
  • 167
  • 1
  • 11
10
votes
2 answers

In R, what's the simplest way to scale a vector to a unit vector?

In R, what's the simplest way to scale a vector to a unit vector? For example, suppose >vec [1] 1 0 2 1 And >vec / sqrt(sum(vec^2)) [1] 0.4082483 0.0000000 0.8164966 0.4082483 is its unit vector. Is there some built-in function in R for this?
Tom
  • 3,168
  • 5
  • 27
  • 36
10
votes
1 answer

Scaling of target causes Scikit-learn SVM regression to break down

When training a SVM regression it is usually advisable to scale the input features before training. But how about scaling of the targets? Usually this is not considered necessary, and I do not see a good reason why it should be necessary. However in…
user1774143
  • 192
  • 1
  • 7
10
votes
9 answers

Scaling div like an image

I'm doing a list of items, but it has some challenges: Responsive; The "title" may have more than one line; Sometimes a I need to show a icon with a color in the background instead of full image. This is the image of what I'd expect: And what…
Caio Tarifa
  • 5,973
  • 11
  • 46
  • 73