image-manipulation

Display filter C#

Hello all. It's a little hard to explain what I need but i'll try: I need to write application (winform) which will be some kind of filter to image/other forms behind it. With one exception - all behind form should looks as is except of red (for example) color, which have to be replaced to any other specified color, white for example. ...

How to resize an image in .NET with transparency, both GIFs and PNGs, keeping transparency info.

Hi, i found a lot of questions about resizing images in .NET and whatnot, but none of them seemed to talk about resizing images that have transparency (both 1bit like GIFs and w/ alpha channel like PNGs), trying obviously to keep that transparency. Maybe GDI/GDI+ is somewhat lacking of code to easily manage those scenarios or what else?...

Python (Jython) Playing notes from pixels in picture.

This is from a class assignment: This program is about listening to colors. We will treat pictures as piano scores. Write a function called listenToPicture that takes one picture as an argument. It first shows the picture. Next, it will loop through every 4th pixel in every 4th row and do the following. It will compute the total of the ...

Enlarging two objects at the same time in one animation action ising jQuery

Please look at the following test page : sample page showing two images. You see small images which get a bit enlarged when you move over the image. I have used jQuery to do this, but ran into the following problem. The only way I got the wanted effect was to enlarge the white <div> and making the image a percentage of the encapsulati...

How to composite several NSImages into one big image?

I have a collection of objects which describe an image-name, its size and it's X/Y location. The collection is sorted by "layers", so I can composite the images in a sort of painter's algorithm. From this, I can determine the rectangle necessary to hold all of the images, so now what I want to do is: Create some sort of buffer to hol...

Automated obscuring of PDF content

Hello I'm looking for a tool which will allow me to automate the task of obscuring a certain section of content contained within a PDF. The PDF content is essentially one big image which contains some sensitive information, and it is this information we need to ensure is not readable. Any tips for where I should start looking for such...

Resize an image with Paperclip [Rails]

The Paperclip plugin for Rails has a resize option that keeps the image in proportion. According to Ryan Bates' Paperclip Railscast, to make sure that option is on, you have to add a greater-than sign in the end of the size for the style you're looking to resize, as such: :styles => { :small => "160x160>" } I'm looking for Paperclip t...

Resized image degrades in quality.

I resized an image using Java2D Graphics class. But it doesn't look right. BufferedImage resizedImage = new BufferedImage(IMG_WIDTH, IMG_HEIGHT, type); Graphics2D g = resizedImage.createGraphics(); g.drawImage(originalImage, 0, 0, IMG_WIDTH, IMG_HEIGHT, null); g.dispose(); Is it possible to scale an image without intro...

image scaling with C

Hi - I'm trying to read an image file and scale it by multiplying each byte by a scale its pixel levels by some absolute factor. I'm not sure I'm doing it right, though - void scale_file(char *infile, char *outfile, float scale) { // open files for reading FILE *infile_p = fopen(infile, 'r'); FILE *outfile_p = fopen(outfile...

A problem with dynamically created image

Hi, I have problem with dynamically created image (JavaScript). I want to change the innerHTML property of a table cell: var x=document.getElementById('myTable').rows; var y=x[0].cells; var myImg = document.createElement('img'); myImg .setAttribute("alt",""); myImg .setAttribute("style","vertical-align: middle; visibilit...

How can I pad an image with CodeIgniter?

My user is uploading an image of any size XX x YY. I want to find the larger dimension and shrink the image to a square of 250x250 with transparent padding being added to make up the difference. Is there any way to accomplish this with CI's Image Lib? ...

Deskew scanned images

I am working in OMR project and we are using C#. When we come to scan the answer sheets, the images are skewed. How can we deskew them? ...

position content relative to a fluid width element set to position:fixed

I have a layout with the following requirements An image on the left side, and content on the right side. The image is pinned to the bottom left of the viewport The image does not move when the user scrolls The image resizes to 100% height of the viewport, up to it's max height. (I don't want the image to distort in it's attempts to be...

How to store image into binary form and how to retrive that back?

The best way to store images into MySQL is by storing the image location as a charater string. If you need to manipulate the image, then, the best way is to copy the image as a binary. How one can store images into binary form and how we can retrive them back? I don’t know anything about this technique. Please tell me how we can do thi...

Java: Send BufferedImage through Socket with a low bitdepth

Hi, The title says enough I think. I have a full quality BufferedImage and I want to send it through an OutputStream with a low bitdepth. I don't want an algorithm to change pixel by pixel the quality, so it is still a full-quality. So, the goal is to write the image (with the full resolution, full size) through the OuputStream which t...

Image API/App which can perform image manipulation on the fly?

Do any of you know an API or application which can handle real time image manipulation? Basically if I provided an image, this app would output perhaps a silhouetted version, or perform some other form of image manipulation, like roshak type blotting? If you don't know of an application like this, do you know if this is possible using ...

C# - How to change PNG quality or color depth.

I am supposed to write a program that gets some PNG images from the user, does some simple edits like rotation and saves them inside a JAR file so that it can use the images as resources. The problem is when I open, say an 80kb image and then save it with C#, I get an image with the same quality but for 130kb space. And because it has to...

Creating text effects like curved, arched, wedged in ruby on rails or php

i know there is a convert -swirl effect in imagemagick but can i create other effects for text like curved, arched, wedged, pinched etc.. just like wordart in word. i am open to other packages that might help me get this thing done.. php or ruby.. ...

How to detect an 'image area' percentage inside an image?

Mhh, kinda hard to explain with my poor english ;) So, lets say I have an image, doesnt matter what kind of (gif, jpg, png) with 200x200 pixel size (total area 40000 pixels) This image have a background, that can be trasparent, or every color (but i know the background-color in advance). Lets say that in the middle of this image, ther...

Draw circle around a white area in OpenCV (C language)

Hi all, how can I draw a circle around a white space in a image file with OpenCV (C language)? image example: thanks a lot! ...