scale

Help with JFreeChart overlay

I'm having an issue with a JFreeChart overlaid graph. I'm using JFreeChart 1.0.13. What I am trying to do seems like it was easier to do in earlier versions of JFreeChart? The graph shows a line chart and a bar chart. The data range plotted by the line chart for the Y axis is in the 0-100 range, and the axis for the bar chart is in the ...

Flex 4 scroll is wrong when changing scaleX and scaleY

When I zoom in with scaleX and scaleY, the scrollbar (of the object container) ignores the top of my scaled object and the left of my scaled objekt. It's seems like its going outside the container with negative values on x and y and therefore the container does'nt "see" that it's more to scroll. I've tried to change x and y after the s...

iPhone Full screen camera uiimagepickercontroller preview

In iOS3 to get a full screen preview a scale of 1.12412 was enough. CGFloat cameraTransformX = 1.12412; CGFloat cameraTransformY = 1.12412; picker.cameraViewTransform = CGAffineTransformScale(picker.cameraViewTransform, cameraTransformX, cameraTransformY); } Scaling x and y to avoid distortion. In iOS4 using this scaling leaves a b...

Animated stretch of an image frame (iPhone)

So I'm trying to animate an image stretching from a zero width to full size while fading in. The fade in comes across fine, but for whatever reason the thing appears at the full frame at the start of the animation, instead of growing as the alpha effect happens. My code is as follows: [UIView beginAnimations:@"FadeButtons" context:nil];...

PyQt - Function for zooming large Images

Hi, I need a function for zooming very large images (5000 x 7000 pixel) in pyqt. I´ve tried out the functions from gwenview (Image viewer coded in C++ and Qt), but it`s too difficult for me to understand. Thanks! ...

Preventing scale on bitmap created in execution time for ImageView - Android

Hello, I have a ImageView acting as a top banner on top of a webview. The image of this banner is created in execution time dependending on the resolution of the device. The height of the banner is always the same for each resolution. The only thing that changes is the width, which changes according to the orientation. But, since the wi...

Increasing the size of a WPF application

Hi all, I've just created my first WPF application (3 calculators inside 3 different tabs). The entire application has been built using widths/margins/paddings as static values, since I originally didn't know that dynamic values can be used by just putting an asterix after the value. The client has come back to me though and has asked...

How can I add a zoom feature to my existing Flash application?

I have a Flash application with one scene, three frames and a bunch of ActionScript code to provide a number of ExternalInterface hooks. The three frames contain a single Input Text box which, as the <embed> tag is resized using JavaScript, grows and shrinks (not scales) to fit. I now want to add the ability to zoom in/out of this appli...

What technology should I use/how should I deploy my killer web app?

I finally decided it was time to write that "killer web app" we all dream about. :-) I've been a programmer for almost as long as I can remember so I'm not scared of technology, but I haven't been active in the web world for about a decade. Looking for some help on the direction I should go. The app I'm considering: (in order of impor...

How to set the initial zoom/width for a webview

I am trying to get the WebView to have similar behavior as the android browser. The browser opens all pages in a way that tries to fit their width to the screen. However, the default behavior of the WebView is to start at a 100% pixel scale so it starts zoomed in on the top left corner. I have spent the last couple hours trying to f...

iphone - Scaling Images are very slow - Help

Hello All I am scaling images by myself using the following codes. The code is fine and the images are scaled without problem. UIImage *originImg = img; size = newSize; if (originImg.size.width > originImg.size.height) { newSize = CGSizeMake(size.width, originImg.size.height * size.width / originImg.size.width); } else { newSi...

jQuery script to scale up or down thumbnails on window resize

Hi I have a site with width 100% and height 100% and overflow hidden on the body. So its a fullscreen website using a jquery full screen background image plugin. On one page I have a list of thumbnails, each thumb is set to float left so it fills the entire window with thumb images. With overflow set to hidden, when too many thumbnail...

Automatically sharding MySQL?

Right now, I'm dealing with a TON (trust me) of data that needs to be available in real-time for fast reads and writes to customers. The backend storage system that we're using is Oracle, but we'd like to replace our big, beefy machines with a leaner system. For various reasons, we can't use Cassandra, and we're testing (but I'm scared...

drawing in an uiimage, then scaling, then drawing more problem

I'm trying to create a view that a user can draw in, use multitouch to scale, and then draw some more. I have a basic view (canvas) where I add an imageView (sized to the canvase) and nil image. I draw in (on?) the image by using drawInRect. I copied my drawing code from here. This works fine. I then added a multitouch check in touch...

Using effect.("scale"): keeping the image in place and not relocating..

So I see what is happening. I have an image positioned, scale it up from the center and then it jerks over to the original positioning given to it by the css. What I thought I could do is scale it and then position it accordingly via .css to avoid a jerk... so that the object grows in place. Not happening. Anytime I try or see a center...

scale a UITableView to fullscreen from inside a UIScrollView

Having failed in trying to puzzle together different sources to any form of coherent approach or concept I turn, once again to the learned people of StackOverflow. My problem is quite specific and maybe that's why I'm having trouble finding information that fits or maybe I just suck at searching. Either way, here goes. I am building an ...

How do I scale the y-axis on a histogram by the x values in R?

I have some data which represents a sizes of particles. I want to plot the frequency of each binned-size of particles as a histogram, but scale the frequency but the size of the particle (so it represents total mass at that size.) I can plot a histogram fine, but I am unsure how to scale the Y-axis by the X-value of each bin. e.g. if I...

Propagating the AutoScaleDimensions property

.NET CF 3.5 How can I scale everything on my form ? If I do this this.AutoScaleDimensions = new System.Drawing.SizeF(120F, 120F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; then the controls directly added on the form are properly repositioned BUT their size is not properly updated ! So how should I propagate the...

Android app loading images from /drawables-nodpi/ with scaling

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...

CABasicAnimation Problem

So, I have read in the docs, that use of blocks like beginAnimation commitAnimation is discouraged from os4.0. So I have tried to get my code to work by using CABasicAnimation. I want to achieve, that an image's frame is resized from its thumbnail size, somewhere within my view, to a full width position e.g. (0, 120, 320, 240) - on...