imaging

Combine two images with one being transparent

I have two bitmap images. One contains a picture taken with a usb camera. The other will contain a shape, like a rectagle, but it can also be a trapezoid, or lets say, a random shape with only one color in it. The rest of the image is white right now. The two images aren't of the same size but scaling algorithms aren't the most difficul...

How to calculate the average rgb color values of a bitmap

In my C# (3.5) application I need to get the average color values for the red, green and blue channels of a bitmap. Preferably without using an external library. Can this be done? If so, how? Thanks in advance. Trying to make things a little more precise: Each pixel in the bitmap has a certain RGB color value. I'd like to get the averag...

What are the Silverlight 3 alternatives to DynamicResource and Element-based Brushes?

I need to have a custom UI element that can be changed, such as the colour and text used in the application but as a resource - in WPF I can use a DynamicResource to assign brushes, strings etc, however I need to implement this in Silverlight 3 - how can I do this as a StaticResource will not do, and as another question I have a resource...

Pygame and blitting: white on white = gray?

I'm using pygame (1.9.0rc3, though this also happens in 1.8.1) to create a heatmap. To build the heatmap, I use a small, 24-bit 11x11px dot PNG image with a white background and a very low-opacity grey dot that stops exactly at the edges: The area around the dot is perfect white, #ffffff, as it should be. However, when I use pygame to...

Image Property Tag Constant

I'd like to use the image property tag constants defined in GDI+ from .NET. I wonder whether these constant values (e.g. PropertyTagGpsVer constant) are exposed in any of the Base Class Library? I have tried looking around System.Drawing.Imaging namespace to no avail. ...

IImage* from IBitmapImage*

I'm using the Imaging API to basically write a rescaling function using the Imaging built-in Resize function. I need to feed a custom UBitmap class that it's constructed with an Image* pointer with the resized function, so here's the Rescale function proto: int Rescale(const UBitmap* src, UBitmap* dst, UINT w, UINT h) My function all...

Find an image in an image C#

Hi I have a scan of a document (a form actually) filled with some handwritten infos. I have a bitmap of the form empty. how can i "cancel" the printed form to extract the handwritting only. I use C#... Thanks Jonathan ...

Python imaging alternatives

I have python code that needs to do just a couple simple things to photographs: crop, resize, and overlay a watermark. I've used PIL, and the resample/resize results are TERRIBLE. I've used imagemagick, and the interface and commands were designed by packaging a cat in a box, and then repeatedly throwing it down a set of stairs at a keyb...

rounded corner control

I'm looking for a .net imaging control to use in a generic handler to process images. Right now I'm using OnlineImageOptimizer, which is a great component for resizing on the fly. What I would love to do is take a photo, resize to the right dims, round off the corners, throw in a drop shadow and optimize into a small, high quality jpg....

Image format question

Hey there, I'm using an image loader (DevIL) for image loading. Im just wondering if the image format (the uncompressed format in memory) loaded from files (.jpg, .png, .bmp etc) is determined by the image loading program itself, or is some way contingent upon the actual image file. All of the images I have looked at so far seem to be...

Printing a WPF BitmapImage

What's the best way to print a BitmapImage? I come from a background in System.Drawing so I was thinking about converting it to a Bitmap and then printing it, but I'm thinking there's probably a better way. Thanks! ...

Does there exist a digital image steganography algorithm which would be resistant to image manipulation?

I'm wondering - is there a steganography solution for digital images which is resistant to image manipulations? With "manipulations" I mean the most standard operations - recompressing JPEGs (or even changing file formats entirely), cropping and scaling. The application of this method would naturally be for image copyright protection. I...

How to create thumbnail images in classic asp?

I found the best solution in codeproject But to enable that, I need to register the com object first. So is there any other way to create thumbnails with out using any third party? In about example we have to use CxImageATL.dll. If we can't do without third party then, Is there any other way to use this dll with out registering the dl...

convert a microsoft document imaging file (.mdi) in java or under linux

Hi experts, I am looking for a peace of java-code that is able to open a .mdi file (microsoft document imaging) and save it as a tiff or pdf-file. I googled a few hours but did not find any. All I know now is that .mdi is derived from tiff, but I could not find an exact format description anyway. Any linux-tool, that could do the conver...

Good library to load images of different formats

Hi Iam developing an image viewer application just like irfan-view or acdsee which should be capable to view lots of different image file formats (not just the standard ones which can be done with System.Drawing.Image). Iam currently using ImageMagick but it isn't very fast and seems to be unstable with some image files. Can anyone sug...

Java type that represents a PNG image?

What is a Java type which can hold a PNG implement and provide access to it's pixel buffer? ...

How can I get the depth of a jpg file?

Hi, I want to retrieve the bit depth for a jpeg file using Python. Using the Python Imaging Library: import Image data = Image.open('file.jpg') print data.depth However, this gives me a depth of 8 for an obviously 24-bit image. Am I doing something wrong? Is there some way to do it with pure Python code? Thanks in advance. Edit: It...

Comparing two JPEG IMAGES and displaying differences

Images are of the same object taken at different time intervals. Software solutions - to be implemented in hardware. High rate of performance most important in hardware implementation ...

Image format and unsigned char arrays

I'm developping imaging functions (yes I REALLY want to reinvent the wheel for various reasons). I'm copying bitmaps into unsigned char arrays but I'm having some problem with byte size versus image pixel format. for example a lot of images come as 24 bits per pixel for RGB representation so that's rather easy, every pixel has 3 unsign...

dividing the image into four equal parts in JAI

please give me the coding for dividing the image into four parts from the center in Java Advanced Imaging.. ...