image-scaling

How to make SVG appear without scroll bars in html

How can I make a SVG appear reliably without scrollbars in HTML? Something that works in both Firefox and Chrome is sufficient. The most basic step is that the SVG appears as it's "natural" width and height in the document. Fully expanded. Without scroll bars. firefox generally does this. Chrome generally does not (unless I use prior k...

Scale a large image and keep same focal point on display.

float getNewScrollPoint(float displayPt, float scrollPt, float imageSize, float scaleFactor) { float imagePt = (displayPt / _Scale) + scrollPt; float nuScale = _Scale * scaleFactor; float nuDisplayPt = imagePt - (displayPt / nuScale); return nuDisplayPt; } public boolean onScale(ScaleGestureDetector detector) { final float scale =...

How to resize dynamically loaded image into flash (as3)

Hi Am struggling to find the right as3 code to resize an image once it is dynamically called into the stage and placed in a MC. I am loading using: var myLoader :Loader = new Loader(); mc.addChild(myLoader); var url :URLRequest = new URLRequest("myimage.jpg"); myLoader .load(url ); The stage will eventually open up into fullscreen ...

How to scale down the image for better quality on Android?

Now I'm using the follow code to scale down the image downloaded from internet at runtime. But the result is not good enough. Bitmap.createScaledBitmap(srcBitmap, dstWidth, dstHeight, true); Any help? Thanks. ...

Facebook-like resizing of images using ImageMagick

Hi. I would like to resize (downscale) some images the way that Facebook does it. ImageMagick, but hey, I'm open for suggestions :) I believe Facebook is doing this: Say you have a max width x height of 250x200, Facebook is optimizing the use of this. Tries to use as much of the 250x200 as possible. If for instance you scale down an i...

ie6 image stretch and scale

I need to be able to stretch a image background to fit the window size now it works in all browsers except for ie6 I have endlesly searched the internet for a solution and tried all things I have found but nothing seems to work in ie6 here is my demo site if you have ie6 you will be able to see my problem I need it too stretch the fu...