image-manipulation

Resample script, how to make it work in an existing website with different img urls

I've being provided with a code which can resize/resample images from a url. I would like to have this code implemented in my website. The resample script is pretty straightforward, but I really don't know how to make it work with the rest of the website. I really hope someone can help me with this problem. The code which produces a thu...

Creating a bitmap file line by line

Hi, Is it possible to write a bitmap in C# line by line? I am worried that using the Bitmap.Save() function will require too much memory when dealing with LARGE files.. To clarify, I want to do this: Open the file and write the bitmap header (if any) Put 1 scanline worth of image data into a buffer (byte[]) Write the contents of the ...

Background Gradient with Magick++

Hi, How do I create gradients with ImageMagick in C++? I am trying to create a visual representation of a WAV file. I can create an Image with Magick++, draw in the waveform data and save the image as a .png file but it still looks a bit basic. I'd like to give the image background and waveform gradients but I don't know how. Are the...

Is anyone using JMagick on Windows

For deploy I'll be using Linux, but dev is done on Windows. Has anyone used it lately on Windows? Have you had any problems? Do you have an updated Makefile for VC++ that you can share? It seems the directory structure for the latest Magick is quite different that what the old makefile I found in jmagick is expecting. The plot thick...

iPhone JPG image has non-standard magic bytes ff d8 ff e1 ??

My web app checks the first four bytes against the file extension before accepting uploaded images. A coworker showed me images from his iPhone which are being rejected. These have a different fourth byte (e1 = 225 instead of the expected e0 = 224). Is this usual for iPhones? Are there other possible magic byte strings used in JPG files...

How to render a text onto a WritableBitmap in Silverlight 3.0?

Hi, I have a set of image resources in a Silverlight client and I'm trying to render text on them. I can load the original BitmapImage into a WriteableBitmap but see no facility for rendering text onto it. Could anyone point me in the right direction? Thanks, ...

How can I go about extracting the background from an image?

Basically, suppose that I have a fingerprint. I know the dimension of my image, and I know that the fingerprint is black on a white background or that it is green on a black background or something like that. Is there a way to process only the parts that delimit the image, in this case, the fingerprint? What I'm trying to do is basicall...

convert 24Bit per pixel to 8 bit tiff

i want to convert a 24 bit per pixcel(Rgb) int 8 bit per pixel tiff image is there any code to convert please share or tell me the algo in c sharp ...

How to use .svg files in a webpage ?

Hi, I want to know how can one actually use a .svg file In a web page? Thanks, Parastar ...

How to generate a thumb image?

I have a folder of about 20000 images, and I need to generate thumb images for them. What's the fastest way to do this job? I know I can do it using some image resizing libraries. But I am wondering maybe there's already a tool or code snippets that could do this job. ...

Rich image scroll and zooming on android

I'm looking for a way to implement image zoom and scrolling the way it is implemented in Droid Comic Viewer. Is there any quick way to do that? If not, then could you please give some advices at least on implementing kinetic scrolling. ...

Flex ImageCapture/BitmapData limitations on small screens?

I have developed an application that in the end will save a captured image of a canvas that's scaled up to 4000 pixels then upload the result to the server using ZendAMF. This all works fine on all of my development machines. However, my client is running a small netbook and when he submits it to the server, the image on the server doesn...

ImageProcessing in WPF (Fant BitmapScalingMode)

Hi, My application presents an image that can be scaled to a certain size. I'm using the Image WPF control with the scaling method of FANT. However, there is no documentation how this scaling algorithm works. Can anyone reference me to the relevant link for this algorithm description? Nir ...

How to change background color of an eps file while converting it to jpeg or png

I am converting eps (Encapsulated PostScript) files to jpeg files with ghostscript. A sample command I use is: gswin32.exe -sDEVICE=jpeg -dJPEGQ=100 -dNOPAUSE -dBATCH -dSAFER -r600x600 -dGraphicsAlphaBits=4 -dUseCIEColor -dEPSCrop -sOutputFile=”a.jpeg” b.eps The input eps files come with white backgrounds (I only have their clipping...

How do I join x number of UIImages together?

I'm looking to stitch some images together, with the images always being added to the bottom of the previous image. e.g. I have images A,B and C. I would like them to appear on top of one another like: A B C What's the best way to do this? Thanks! ...

Good research papers and tutorials for creation of image processing tool/application (free)

I'm looking for good research papers and tutorials for creation of image processing tool/application which are free. They may not have full-blown description. Papers and tutorials dedicated to a single feature are good enough. Thanks in advance. ...

How to programmatically create a 'bright' and a 'gray' version of an icon?

In a win32 application, I want to have a button with an icon which looks gray when the button is disabled and 'brighter' when the mouse hovers. I know I can create three bitmaps with an icon editor, but since the icon can be user selected and loaded from the disk, I would like to create the other two versions programmatically. So, star...

BlackBerry - How to create a sub image from a larger image?

I need to create a new, smaller, image from a larger image at runtime. The smaller image size is fixed (square) and represents a specific region of the larger image (the smaller image is a subset of the larger image). Image format doesn't matter. Thanks. ...

iTextSharp image keep pixel dimensions?

Lets say I have an image that has a DPI of 72 and a width/height of 100px/100px. However when I add the image and render the PDF, the image that is displayed is bigger than 100px/100px. How can I ensure that the when adding the image to the PDF using iTextSharp that I keep the same pixel dimensions as the original image, in this case...

Android - converting byte rgb_565 array into argb or rgb array.

Hello I have Picture data in byte rgb_565 array, and I want convert it in a productive way into argb array. Right now I have found only one (little slow) way to do this: Bitmap mPhotoPicture = BitmapFactory.decodeByteArray(imageData, 0 , imageData.length); where imageData is my byte[] array in rgb_565, and then: int pixels[] = new in...