Hello,
I have a Flex component with a background image. The image is sharp in the beginning, but is jagged whenever I scale the component using scaleX and scaleY. How would I make the image anti-alias so that, it it's scaled to 0.75, the lines are smooth, not jaggedy?
Here is the image
Here is the scaled version
And the unscaled (good...
$(document).ready(function(){
// The plugin
$.fn.image = function(src, f){
return this.each(function(){
var i = new Image();
i.src = src;
i.onload = f;
this.appendChild(i);
});
}
// The code for...
So my host provides ImageMagick on the server, but no MagickWand or IMagick API for PHP. I can do operations with the PHP exec command to manipulate images. But that requires full path file names to work, and I want to pull my images from my MySQL database. Will I have to have pull them out of the database and put them to a file every...
I have a custom handler that is returning an image to the browser.
The images are fetched from a database.
For some reason the images are not being cached by the browser, and I was wondering if someone might be able to spot what I am missing from the below code:
HttpContext.Current.Response.BinaryWrite(imageBytes);
HttpContext.Current...
I know it is not a good thing to save files in a relational databas.
But how about in a objectdatabase?
Is it still a bad idea or are they more adapted for this kind of operations?
...
Say I have a BitmapData of 600x600 and I want to scale it down to 100x100.
...
In my Silverlight control, I am loading my background image from a stream:
BitmapImage img = new BitmapImage();
img.SetSource(stream);
Image background = new Image();
background.Source = img;
How can I find out the height of the bitmap image that was loaded from stream? None of the usual suspects (e.g., Property, Dependen...
I'm trying to find out how to draw a path, and then fill it with content from an image, e.g. a .png. I have tiles of various shapes (square, triangle, etc., each defined by an NSBezierPath. I can fill them with solid color, but I also want to be able to fill them with some kind of bitmap image instead of solid color.
...
I wonder if there is any way to convert a web page (from any given URL) into an image?
this is basically equivalent to taking a "screenshot" of the page after opening it.
There is a method to do it in firefox, using an extension; I can draw the DOM contents onto a Mozilla Canvas. But I'm wondering if there is any way to do it as a sta...
I need some help on using two open sources scripts for a small project. The first one is an a URL shortener with image hosting function: http://bit.ly/18ZDo6 and the second is a pure image hosting script : chevereto (dot) com. The first script is object orientated code, and I'll like to know if it's a good approach or should I hire someb...
Some jpeg image is stored with .bmp ext.
I want to use gdi+ to get the real type of the image file, how can I do this?
Many thanks!
...
How do I upload images and zip files in RoR? I am a newbie. So please help.
Give me both the view and the controller code example.
Thanks in advance.
...
How can i center image when i resize jpanel in swing ?
my initial state of the Jpanel that its fits the size of the image ( with pack() )
but now when i resize the Jpanel with my mouse i will like to maintain the image in the center of the Jpanel relative to the Jpanel size
...
For a quick temporary solution I made an image of a form that the users wanted to have programatically filled out. I then embedded that image in a report and filled the page with the image. I then put the fields on top of the image to fill out the areas in the form that needs filling. I realize this may not be the best solution, but it w...
hi ;
how to convert .cdr (corel draw file) vector images to jpg on imagick PHP API
...
I have a custom control library with a resouce dictionary that references an image in the same custom control library.
I then have a WPF application with a refernce to the custom control library which contains a resouce dictionary with a style the utilizes the image.
When I try to use the style from the external resouce I get an error ...
I need to display an image in a fixed size div.
Under the div must be some control, like a cursor bar, which sets the resolution of the displayed image.
I don't mind much writing the thing, but I thought it might already exist. How come I can't find such a thing ?
(I am not interested in things like jQZoom nor zoomimage which do not le...
I am trying to build an web image server. It serves images to lots of clients(10 thousands+) simultaneously. (It will be a easier problem if there is fewer clients.) What is a good way to do so, with time delay as small as possible.
I am new to this field. Any suggestion will be welcomed.
...
What is the best and quickest way to resize images on the client side using JavaScript?
EDIT: Sorry, I meant the best way to display an image resized on the client side..
...
I'm trying to write some simple code to resize an image, and I am getting a JVM crash. As far as I can tell I'm using the APIs correctly. Here is the code:
import java.awt.image.*;
import java.io.*;
import javax.imageio.*;
public class Resizer {
public static void main(String[] args) {
BufferedImage img = null;
try {
...