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
10
votes
1 answer

Is a load balancer node a bottleneck?

in a web application and service I'm creating it's necessary that it scales horizontally. I want to have 1 load balancer, 3 web server nodes, and 2 database nodes (one will be solely for redundancy and will scale vertically as soon as the first db…
User2013
  • 389
  • 1
  • 6
  • 19
10
votes
1 answer

DPI Scaling in .Net 3.5 in Mixed WinForms and WPF Application

In this post, CodeNaked discusses how to change the TextFormattingModeProperty of the application. This solves my problem (see below) perfectly in .Net 4. However my production application is in .Net 3.5 which doesn't have that property at all. How…
bruestle2
  • 727
  • 1
  • 8
  • 22
10
votes
3 answers

CGAffineTransform and scaling to center of the image

I started studying objective-c using the iPhone and iPad apps for Absolute Beginners by Rory Lewis book but i got stuck on the 5th chapter. I want to make a button that shrinks an image. My problem is, that after I wrote all the code, the image…
halfblood17
  • 657
  • 1
  • 6
  • 21
10
votes
2 answers

scaling the testing data for LIBSVM: MATLAB implementation

I currently use the MATLAB version of the LIBSVM support vector machine to classify my data. The LIBSVM documentation mentions that scaling before applying SVM is very important and we have to use the same method to scale both training and testing…
Lily
  • 315
  • 2
  • 6
  • 16
9
votes
3 answers

Javascript (jQuery) Scale an Image to Its Container's Center Point

This seems like it should be quite simple, but for some reason I can't quite wrap my brain around it. I have an image inside a "viewport" div, of which the overflow property is set to hidden. I've implemented a simple zooming and panning with jQuery…
Christian
  • 135
  • 3
  • 7
9
votes
1 answer

How to fix pinch zoom focal point in a custom view?

For my question I have prepared a very simple test app at Github. For simplicity I have removed flinging, scroll constraints and edge effects (which actually work well in my real app): So the custom view in my test app only supports…
Alexander Farber
  • 21,519
  • 75
  • 241
  • 416
9
votes
3 answers

UISegmentedControl image scaling

How can I scale down the images used in a UISegmentedControl? I am creating the segmented control programmatically: UISegmentedControl * segmentButton; segmentButton = [UISegmentedControl segmentedControlWithItems: [NSArray…
e.James
  • 116,942
  • 41
  • 177
  • 214
9
votes
5 answers

Netbeans Scaling on 4K Screen

I got a new 4K Monitor and everything looks amazing but coding with NetBeans is difficult. The controls are very small and a java frame looks very small. I've seen some Stackoverflow posts about this problem and they said I should add a line in the…
DirtyHarry
  • 93
  • 1
  • 7
9
votes
1 answer

Imageview scaling method "centercrop" as code

Im trying to find out what android is doing when it scales an Image, specifically the "centercrop" type. So to find an answer I searched the ImageView sourcecode and find it here. So what I tried is this code : public Bitmap buildBluredBoxBackground…
Ahmet K
  • 713
  • 18
  • 42
9
votes
1 answer

Animation - growing shrinking image scale

This seems like it should be easy enough, but I'm not able to figure out out tonight and have been searching but not finding anything relevant on the forums. All I want to do is change the scale of a UIImageView to shrink it or grow it. [UIView…
RanLearns
  • 4,086
  • 5
  • 44
  • 81
9
votes
4 answers

Picasso - how to resize placeholder

I'm using a 128x128 circular image, animated by a drawable as a placeholder in Picasso.
Mayukh Nair
  • 623
  • 1
  • 6
  • 26
9
votes
3 answers

Scaling ImageView to size of a TextView in XML

I have a TextView and a ImageView in a horizontal linear layout. Is it possible to scale the ImageView so that it is relative to the size of the TextView in the layout file? Basically I want something like :- Instead of something like this The…
mfc
  • 3,018
  • 5
  • 31
  • 43
9
votes
2 answers

Emulating palette based graphics in WebGL v.s. Canvas 2D

Currently, I'm using 2D canvas context to draw an image generated (from pixel to pixel, but refreshed as a whole buffer in once after a generated frame) from JavaScript at about a 25fps rate. The generated image is always one byte (integer / typed…
LGB
  • 728
  • 1
  • 9
  • 20
9
votes
5 answers

WPF font scaling

I have a WPF application where the user interface should be scaled so that it should become larger if the windows is made larger. In one of the dialogs, I need to present a list of items to a user and the user should click one of them. The list will…
Martin
  • 227
  • 3
  • 6
9
votes
3 answers

Scaling of ElasticSearch

I'm searching for information on how ElasticSearch would scale with the amount of data in its indexes and am surprised how little I can find on that topic. Maybe some experience from the crowd here can help me. We are currently using CloudSearch to…
Alfe
  • 56,346
  • 20
  • 107
  • 159