scale

Android /drawable-nodpi/ loading scaled

I recently rebuilt my Android project to target 2.2 from 2.1. In the old project, I did not specify a target SDK (the manifest did not contain something like: android:minSdkVersion="8"). This gave me an error in the console when running, but everything worked fine so I didn't fool with it. The new project now uses android:minSdkVersion...

difference between methods to scale a bitmap

Hi, There are at least two methods to scale a bitmap in Android, One is to use "inScaled, inDensity, inTargetDensity" in "BitmapFactory.Options" when decode a bitmap source. The other is to use a "Matrix" in "Bitmap.createBitmap". What I am curious is what the difference between these two method is? What about the quality of produced b...

Resizing SVG image in MediaWiki

We display SVG images in MediaWiki using a template with this code: {{#tag:svgfile||src={{{1}}}|height={{{height|300px}}}|width={{{width|600px}}}}} where {{{1}}} is the uploaded file. Now we want to be able to rescale the image, just like we do with JPGs, etc, using: [[Image:<file name>.JPG|200px]] Does anyone know how to do that?...

transform:scale to fullscreen?

Good day all, A series of differently sized images are each individually wrapped in left floating differently sized divs on a horizontally scrolling web page. I want to be able to tap on a div to scale it to fullscreen, (by adding a css class containing the scale instruction, with toggleClass), and tap on the image (which is now fullscr...

Matplotlib - Data disappears when I switch to a semilog plot

Hi, I am trying to plot do a basic semilog plot using pyplot and matplotlib, with the y-axis being the logarithmic scale. I am using the following code: pylab.figure(num=None,figsize=(8,6)) pylab.plot(x_loc,var1,x_loc,var2) \#pylab.yscale('log') pylab.xlabel('$y/L_{1/2}$',fontsize=18) pylab.ylabel('$n/n_{max}$',fontsize=18) ...

How to accept weight data from Detecto AS-350D

I've found a scale, Detecto AS-350D (http://cardinal-detecto.centralcarolinascale.com/AS-PC-Computer.htm), that hooks up to a computer. I was hoping someone could help me figure out how to get the information (weight) from it. I've looked around but can't seem to find any information on it. I've never wrote a program where I accepted d...