image-manipulation

UITableViewCell - different behaviour depending on touch duration?

I'm trying to animate an image in a UITableViewCell subclass. It works when the tap on the cell is about 1/2 second or more in duration. For shorter taps, the cell gets selected, but my animation doesn't run. In my view controller, I have: - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { ...

Added Image not showing over playing video

its very strange problem which I am facing with my iphone cocoa application. Actually i have to add an image over playing video(i am adding that image on the key window). and then do some event handling with that added video like i have to change the video file when i tap on that added image. i am able to do all this work and its workin...

black and white Image processing in C#

In above image I want to mark Circle's edge with red color something like this I have no idea how should proceed, Any help/suggestions would be highly appreciated... ...

Resize Image to fit in bounding box

An easy problem, but for some reason I just can't figure this out today. I need to resize an image to the maximum possible size that will fit in a bounding box while maintaining the aspect ratio. Basicly I'm looking for the code to fill in this function: void CalcNewDimensions(ref int w, ref int h, int MaxWidth, int MaxHeight); Wher...

How to use texture compression in openGL?

I'm making an image viewer using openGL and I've run into a situation where I need to load very large (>50MB) images to be viewed. I'm loading the images as textures and displaying them to a GL_QUAD which has been working great for smaller images, but on the large images the loading fails and I get a blank rectangle. So far I've implem...

Php Imageresize Performance Question

I'm working on an image resize script for php, and had a few questions.. Currently I'm pulling an external URL as the image, and don't really want to store the new image that is going to be re-sized on my server. Here is what I'm trying to do: Have the script resize the image, than encode it the resized image in base64 on the fly. No...

Warning: imageftbbox() [function.imageftbbox]: Problem loading glyph - what is this error

I got this error on my image generation script : Warning: imageftbbox() [function.imageftbbox]: Problem loading glyph: I think because of this I can't generate images from text properly - how do I fix this! ...

Any idea why this image masking code does not work?

I have this code to mask an image. Basically, I only work with PNG images. So I have a 300x400 PNG image with 24bits of color (PNG-24). I am not sure if it also has an alpha channel. But there's no transparency in it. Then, there is the image mask which is PNG-8bit without alpha channel. It is just black, grayscale and white. I create...

Read subsection of Bitmap from disk in C#

Hello, I'm writing some map software for my smartphone and have hit a problem whereby I don't want to load all of the (large) image files into memory when only a portion will be displayed. Is there a way to read only a subsection (the viewable portion) of a big image given that you know the x and y offsets and width? I know it's probab...

What image editor do you recommend to create cool UI elements?

I sincerly believe that cool-looking UI has significant contribution to the value of your software. It not only significantly improves sales but also ease user-buyin, upgrading willingness, or just causes some pleasant moments to the user. To get cool UI, you will need a lot of images, and you need to play frequently with transparancy....

Resizing Image Quality Reduction

Hi, I have written a simple PhotoEditor helper class to downscale and crop images uploaded to my website. Everything is working but I am seeing unsatisfactory quality when the image is saved to file. I have read up on the different settings you can tweak below is my setup for resizing, cropping is identical. public Image ResizeImag...

web application image processing

I'm writing a web application whose sole intention is to process the images provided by the user. I do understand that a multitude of programming languages facilitate server-side image manipulation and some basic functionality etc., but my concern here is which might be the best programming language/ libraries for exhaustive image proce...

making a bigger image by stitching the others together

I want to make an app that gets your friends profile pics from say your facebook,myspace or twitter account and makes an image out all of them. I already know how to use these social networks' APIs to get the image url, the question is, how do I "stitch" them together. If you know how to do this using a specific class in Zend or PEAR th...

Creating mosaic/tiled image effect with jquery

Is there a way to create the effect shown here on msi.com main image? Though done in flash, I'd prefer doing it with jquery. I've also tried with 'mosaic generators', but haven't been able to replicate the effect well, but use of a generator with js would be acceptable too. [edit] I failed to mention, I'm only interested in emulated t...

Joining two images in php

How can I join a head image and body image so that the head image is precisely fixed over the neck in body image. Files are at: Head Image: http://yajurinfotech.com/projects/stickers/head1.gif Body Image: http://yajurinfotech.com/projects/stickers/body2.gif I have made an attempt at http://yajurinfotech.com/projects/stickers/preview...

Tricky maths problem when resizing images

I have an image that I want to be watermarked to the bottom right section of other images. The dimensions of the watermark image are 179 width, 39 height. Now what if I have another image whose dimensions are 150 width, 20 height? If we tried to watermark it using the original image, it would obviously be too large and the image itself...

C#: Drawing a timestamp onto an image

Hi! I was just browsing some questions when I stumbled upon this one. I am not experienced in System.Drawing, so I'm just wondering, how would you draw a timestamp onto an image? Also, as I'm very interested in System.Drawing, what are the best resources for learning how to use it well, and its application in various situations? Thank yo...

Reverse Spectrogram A La Aphex Twin in MATLAB

Hello. I'm trying to convert an image into an audio signal in MATLAB by treating it as a spectrogram as in Aphex Twin's song on Windowlicker. Unfortunately, I'm having trouble getting a result. Here it what I have at the moment: function signal = imagetosignal(path, format) % Read in the image and make it symmetric. image = ...

How to resize an image in C# to a certain hard-disk size?

How to resize an image an image in C# to a certain hard-disk size, like 2MiB? Is there a better way than trial and error (even if it's approximate, of course). Any particular keywords to search for when trying to find the solution on the web? ...

How can i make pictureboxe on the form more fastly on runtime in .net winforms?

I want to select the pictures (They are select during program is running) and show them on the form. for that i take a panel on the form and populate the panel with pictureboxes.i write the following code for that but it is very time consuming: if(openDialoge1.ShowDialog() == DialogResult.OK) { string...