image

Delphi drag images challenge

Hi all, The code below enables a control (a label for instance) to show drag images while the dragging operation. My problem is that I do not want to show the drag image instanly when the dragging begins, I want the image to be displayed when the mouse is on specific boundaries of the control - eg. in the right half of the label . S...

How to Make an Image Uniform Brightness (using Python/PIL)

I want to take an image of a document that was photographed and make it look like it was scanned. Since a scanner will put a constant light source over the whole document, I want to achieve that effect on a photo of a document. The desired effect would be to remove any shadows or areas of low light (or at least make them less noticeabl...

Replacing h1 text with a logo image...best method for SEO?

It seems like there are a few different techniques out there, so I was hoping to get a "definitive" answer on this... On a website, it's common practice to create a logo that links to the homepage. I want to do the same, while best optimizing for search engines, screen readers, IE 6+, and browsers who have disabled CSS and/or images. E...

How to make a color transparent in a BufferedImage and save as PNG

I have been searching the web for this, but I havent found any decent help. I have a BufferedImage, which I have read in with ImageIO. Now I would like to make a certain color in that image to transparent, and save the image as PNG. I know I cannot just "paint" the transparent color for obvious reasons, so I am guessing I need some kin...

unsubscriptable object

Hi I'm using PIL im = Image.open(teh_file) if im: colors = im.resize( (1,1), Image.ANTIALIAS).getpixel((0,0)) # simple way to get average color red = colors[0] # and so on, some operations on color data The problem is, on a few (very few, particulary don't know why those exactly, simple jpegs) I get 'unsubscri...

How to add css to a feed that is not mine.

Hello, I want to separate the image from the text of this rss with css http://redbolivia.com/index.php?format=feed&type=rss any idea? can i do this with css? ...

Convert HTML to an image

Duplicate What is the best way to create a web page thumbnail? I want to display a thumbnail image of an HTML page. How can I do this? ...

swt.graphics.ImageLoader.save() not flushed?

I'm using this class swt.graphics.ImageLoader to save a file as a PNG: ImageLoader loader = new ImageLoader(); loader.data = new ImageData[] { m_imgdat }; loader.save(selected, SWT.IMAGE_PNG); Yet sometimes the file I get is incomplete. the last line of pixels is black and some programs (photoshop) refuse to open it altogether. Is the...

Complete / Progress events aren't firing for Image control with embedded content

I've got the following MXML tag: <mx:Image id="image" width="100%" height="100%" source="@Embed('../assets/Test.swf')" complete="completeHandler(event)" progress="progressHandler(event)"/> But for some reason my completeHandler / progressHandler functions aren't being called. The reason I n...

Image.FromStream() method returns Invalid Argument exception

Hello, I am capturing images from a smart camera imager and receiving the byte array from the camera through socket programming (.NET application is the client, camera is the server). The problem is that i get System.InvalidArgument exception at runtime. private Image byteArrayToImage(byte[] byteArray) { if(byteArray != null) { ...

Fast way to implement 2D convolution in C

I am trying to implement a vision algorithm, which includes a prefiltering stage with a 9x9 Laplacian-of-Gaussian filter. Can you point to a document which explains fast filter implementations briefly? I think I should make use of FFT for most efficient filtering. ...

display image in a grid using extjs

I am new to extjs. I want to display icon images for each grid elements. can you please healp me anybody? i am getting the image path from an xml file. my code is below. here i am displaying image path. i have to replace it by displaying image. Ext.onReady(function(){ var store = new Ext.data.Store({ url: 'new_frm.xml', ...

Add image to listbox

Hi, I have a few images with some text, I need to show the image with the relevant text in a listbox. Browsing google I came across this sample class, public class Customer { public string Fname; public string Lname; public Customer(string firstName, string lastName) { Fname = firstName; Lname = lastName; } public overri...

best way to determine if a URL is an image in PHP

Using PHP, given a URL, how can I determine whether it is an image? There is no context for the URL - it is just in the middle of a plain text file, or maybe just a string on its own. I don't want high overhead (e.g. reading the content of the URL) as this could be called for many URLs on a page. Given this restriction, it isn't esse...

Most advanced image compression today (not on browser)?

Hi, I am writing an application in Java to view images which contain a lot of text and graphics, like a screenshot of a webpage, actually its a image of a magazine article. Some parts are text, some parts are graphics. My client program is written in Java, I can use any image format, what is the best image compression format I can get m...

How to check if an RGB image contains only one color?

I'm using Python and PIL. I have images in RGB and I would like to know those who contain only one color (say #FF0000 for example) or a few very close colors (#FF0000 and #FF0001). I was thinking about using the histogram but it is very hard to figure out something with the 3 color bands, so I'm looking for a more clever algorithm. An...

css and image sprites

I got a quick question about sprites in css: Will I send two HTTP Request if I include the same image twice in a css file? For example if I want to load two different buttons from the same icon set image: .btn-1 { background:url('img/icons.png') 0 0; } .btn-2 { background:url('img/icons.png') 0 -60px; } or is there another wa...

Create custom generic list with bitmapimage

Hi, In my WPF project there is a listbox in which I have to display images and next to each image their text (for example : date the photo was taken, location etc). I have tried creating a generic List but I still can't assign it to the listbox Something like Bscially I have been trying something on this lines. public class LoadImage...

using imlib2 and gtk2

Hi, Can I use imlib2 with gtk2 or is it better to use it with Qt for image manipulation ? Or if someone knows if I can use imlib2 with free pascal and/or java that would be great. Thanks in advance Mike ...

When storing Images in the File System, Use relative paths or absolute paths?

I am working on a web app and I decided (after reading many post on SO) to store the actual images in the file system and to store the metadata in the DB. Should I store a relative path or an absolute path. I can think of some advantages for each of the choices. Absolute: Pros: It is obvious where the file is even to other apps read...