image-manipulation

How to tile a 30000 x 6000 image for a 480 x 320 screen?

(this is related to another question about implementation on iPhone) I have a large image, size around 30000 (w) x 6000 (h) pixels. You may consider it's like a big map. I assume I need to crop it up into smaller tiles. Questions: what is the tile strategy? Requirements: whole image (though cropped) can be scrolled up/down/left/r...

How to scroll and zoom in/out large images on iPhone?

I have a large image, size around 30000 (w) x 6000 (h) pixels. You may consider it's like a big map. I assume I need to crop it up into smaller tiles. Questions: what are the right ViewControllers to use? (link) what is the tile strategy? (I put this in another question, as it's not iPhone specific) Requirements: whole image (thoug...

Write text onto image in Java

Is there a Java library to write text to images, same as PHP's GD library. ...

Flex: How do I adjust the contrast/brightness of an image inside an image control?

I have an image loaded into an Image control and I'd like to know the most efficient way that I can darken/lighten the image programatically. ...

File Format Conversion to TIFF. Some issues???

I'm having a proprietary image format SNG( a proprietary format) which is having a countinous array of Image data along with Image meta information in seperate HDR file. Now I need to convert this SNG format to a Standard TIFF 6.0 Format. So I studied the TIFF format i.e. about its Header, Image File Directories( IFD's) and Stripped Ima...

How to Improve my php image resizer to support alpha png and transparent GIFs

Hi, I use this function to resize images but i end up with ugly creepy image with a black background if it's a transparent GIF or PNG with alpha, however it works perfectly for jpg and normal png. function cropImage($nw, $nh, $source, $stype, $dest) { $size = getimagesize($source); $w = $size[0]; $h = $size[1]; sw...

How can I do batch image processing with ImageJ in Java or clojure?

I want to use ImageJ to do some processing of several thousand images. Is there a way to take any general imageJ plugin and apply it to hundreds of images automatically? For example, say I want to take my thousand images and apply a polar transformation to each--- A polar transformation plugin for ImageJ can be found here: http://rsb...

Filling pattern changes with object's position. Java.

I created a bufferedimage which i applied to a Rectangle to use as filling pattern to shape S. If i change S's position, the filling pattern changes with it instead of remaining "fixed". What could it be? Image: (the pattern is a 3 stripes, all with the same aspect ratio) : if (bannerPatternCreated == false) { banner = new...

how to crop an image using rectangale overlay and touch on iphone

Hey Everyone, I am looking for a good tutorial or sample code, that would show how to crop an image taking from iphone camera something in lines of http://img192.imageshack.us/img192/8930/customcropbox.jpg but you would control the corners with your fingers any tip would be greatly appericated, as i am new to iphone dev. Thank...

how to set the background image property of a div to a dynamically generated image

I have some divs and each one has its own background image. The base images as stored is just a black silhouette. What I would like to do is use the PHP GD package to modify the color of those images somewhat randomly and have the modified randomly coloured images be the background images of the divs. One way to do it is just crea...

[Java] Flood fill using a stack

Hello to everyone :), I am using the recursive Flood fill algorithm in Java to fill some areas of a image. With very small images it works fine, but when de image becomes larger the JVM gives me a Stack Over Flow Error. That's the reason why I have to reimplement the method using a Flood Fill with my own stack. (I read that's the best...

How do I use CSS to add a non-rectangular border around an image?

Hello people, I have three images, and they are not square or rectangular in shape. They are just like face of anyone. So, basically, my images are in the size 196x196 or anything like that, but complete square or rectangle with the face in the middle and transperant background in the rest of the portion. Now, I want to remove the tra...

PIL to pyvision conversion

How can a PIL image be converted to a Pyvision image? ...

Inverting image using the Python Image Library module

Good day chaps. I'm interested in learning how to invert (make a negative of) an image using the python image libary module. I cannot however, use the ImageOps function 'invert.' I need another solution, using the RGB values. I've searched and tried to no avail. Thanks for any help :) ...

Getting pixel averages of a vector sitting atop a bitmap...

I'm currently involved in a hardware project where I am mapping triangular shaped LED to traditional bitmap images. I'd like to overlay a triangle vector onto an image and get the average pixel data within the bounds of that vector. However, I'm unfamiliar with the math needed to calculate this. Does anyone have an algorithm or a link th...

How to find image width and height dynamically and specify height, width attibutes if over certain dimensions?

Hi, I display some data on my website and one of the data feed elements is an image. [title] => Product title [description] => some description [image] => www.some-domain.com/product-image/p12345.jpg I then display this image using <img alt="product" src="<?=$data['image']?>" /> Most of the images are 80x80, 120x100 or other less...

Manipulating / Resizing / Scaling an image in vb.net

Imagine I have a rectangle say 400px x 300px. Then let’s say I want to load an image in that. All of this is very easy using Sytem.Drawing.DrawImage. But then I want to leave the left hand side as 300px but change the right hand side to 250 px. I can draw the box using 4 DrawLines but I don’t know how to squash the image into the ne...

byte array of an image in android

i have created a grid view of some images in android sdk (2.1).i need to get the byte array of the image selected and do manipulations(such as to change the LSB).can anyone help with the suggestions or code? thanks in advance ...

Workflow to resize and crop an image weighted on coordinate

Hi! I'm working on a resize and crop workflow to allow images to be resized and then cropped to a specific size. Normally one resize the smallest dimension to fit the destination size, and then crop to get eg. a square. However, in this case, I have some additional face-detection data: face_x, face_y and face_width and face_height. The...

Resize image with blue dots like in copy/Paste Function?

Hello, I want to add a resize function to my app which works like the integrated copy feature on the iPhone. When the user opens the view he should see the image with the four blue dots which enable him to resize it. Is there an available example for this? Or has anyone the keywords for this functionality, which i can use for my further...