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
6
votes
0 answers

Character recognition from an image C++

*Note: while this post is pretty much asking about bilinear interpolation I kept the title more general and included extra information in case someone has any ideas on how I can possibly do this better I have been having trouble implementing a way…
6
votes
3 answers

Scaling an Image and positioning it at 0,0 in WPF

I have created BitMapSource from a list of RGBA pixels: BitmapSource bmp = BitmapSource.Create(imageStrideInPixels, height, 96, 96, PixelFormats.Bgra32, null, imageData, imageStrideInPixels * pixelWidth); I then create an image from the…
Robben_Ford_Fan_boy
  • 8,494
  • 11
  • 64
  • 85
6
votes
2 answers

How to calculate padding-top in % of the given div relative to its parent div

Problem: I want to add padding-top in % to all list items (because I need to move the text a little down and also need all elements to be scalable), here is jsfiddle code Height works fine. In order to calculate height I calculated the percentage of…
user5589607
6
votes
1 answer

glmer from R package lme4 asking to scale variables even though variables already scaled

I have a dataset with 27 variables and ~30,000 observations. The first 17 variables are continuous and the remainder are binary. When running glmer with the model specified as all the fixed effects + random effect intercept based on a subject ID, I…
notaclue1980
  • 61
  • 1
  • 2
6
votes
1 answer

Eventually consistent document store database similar to cassandra

I'm looking for an open source data store that scales as easily as Cassandra but data can be queried via documents like MongoDB. Are there currently any databases out that do this?
user1529891
6
votes
2 answers

How to continuously update Y-axis values in MPAndroidChart

I want my axis in LineChart to adjust it's maximum and minimum values real-time. Functions like resetAxisMaxValue() and resetAxisMinValue() work well when new data's Y-value is increasing(both positive and negative), however, once the signal gets…
Alex Bailo
  • 197
  • 2
  • 15
6
votes
3 answers

SDL_RenderSetScale incorrectly applies to rotated bitmaps in SDL2 (2.0.3)

SDL_RenderSetScale will scale co-ordinates accordingly until rotation is used with SDL_RenderCopyEx. SDL seems to apply the scaling pre-rotation, so the rotated texture's aspect ratio is wrong. For example, a texture rotated 90 degrees will have the…
6
votes
3 answers

HTML table scale to fit

I have a KPI dashboard with a lot of small charts. One type of chart is in fact a HTML table. It is displayed in a DIV.
Rob Audenaerde
  • 19,195
  • 10
  • 76
  • 121
6
votes
1 answer

Scaling strategies for Service Tiers on .NET

I'm working on a web product that is composed of many modular web applications. To the end user, it appears to be one single application, though various components are broken out into their own apps. Part of the reasoning for this is so that it can…
FlySwat
  • 172,459
  • 74
  • 246
  • 311
6
votes
4 answers

scene2d button scaling with libgdx

I don't know if it is just me, but drawables confuse me. Are they intended to keep the size they are given, or is there a way to scale the image within them? I understand they can use ninepatch to fill certain areas by stretching an image, but I…
Austin Gibb
  • 303
  • 1
  • 4
  • 12
6
votes
3 answers

Scale windows forms window

It is possible to prepare the windows forms window to resize/reposition all elements depending on the window size, but I am trying to do something different. Is it possible in some way to actually scale the window along with all elements inside…
NewProger
  • 2,945
  • 9
  • 40
  • 58
6
votes
2 answers

Want to scale int to int with integer math

I am on SDCC 2.8.0, so very limited in memory and code size. Say I have an input value that ranges between 0 and 127, I want to scale it to 20 - 100. Normally I would do: int scale(int input, int min, int max) { // assuming max is always greater…
Mark Miles
  • 706
  • 8
  • 20
6
votes
1 answer

Making an existing .NET Windows application to be DPI-aware

We have an existing windows .net application in which it uses all custom controls. Things were fine these many days as we were just supporting the default 96 dpi resolution. Now that we need our application to be dpi-aware. Things are going haywire…
this-Me
  • 2,139
  • 6
  • 43
  • 70
6
votes
5 answers

using read replication in mysql

I have a mysql db which has around 150 millions inserts per day and retention period is around 60 days. Each record is indexed on id. Everytime a update happens as follows: Look if record is present. If it is , update the same with new data. Or…
user93796
  • 18,749
  • 31
  • 94
  • 150
6
votes
3 answers

Scale Images in Different Resolutions XML

I have created 4 resolution folders and put the appropriate image sizes into each as seen in the picture below: I have also created 8 different layout folders for various screen sizes as seen in the picture below: As you can see in the picture…
Shane
  • 972
  • 2
  • 12
  • 27
Col1Col2