image

Plot data reconstruction reading pixel colors from image files

Hi, How can I open and read colors of specific pixels of an image file in Haskell? Which packages, functions do you recommend? You can have a look at the quoted plot and the reconstructed data below for an idea on what I would like to automate. I had my way with this particular figure using Gimp and marking the points on lines manually...

Gallery Iteration

I'm working on an image gallery that looks up all of the images that I have uploaded, and allows me to display them 5 at a time on a single page. The problem is, i'm unsure about how to approach this. I have $_GET['max'], which is supposed to be the top most image to be displayed. $min would be $_GET['max'] - 5. In the event that the...

Pixel size of ImageSource

How can I determine the size of an ImageSource in pixels? The ImageSource object has a Height and a Width property, but they return the size in 1/96 inches.. ...

Zend_Mail: how to get attachment ID?

Hi, I am using Zend to create emails. Now I will place an inline image in the HTML Part of the mail. So I am attaching the image with: $imageContent = file_get_contents(APPLICATION_PATH.'../html/static/img/image.jpg'); $image = $mail->createAttachment($imageContent, 'image/jpeg', Zend_Mime::DISPOSITION_INLINE, Zend_Mime::E...

How to create image (or other "read-only" format) from .doc

Anyone know of a way to convert a .doc with mail-merge fields into an image in C#? Basically we want to be able to display a "read-only" version of the document. This can be an image or some other read-only format if anyone can think of one. ...

Loading images synchronously with javascript

Hello, I need to load an image synchronously, that is I need to pause execution of javascript until the image is loaded. Since image.onload is asynchronous, the main function will return before the image is loaded. I am using canvas, and if the main function returns before the image is loaded, and therefore drawn, other things in the ...

DIsplaying images in vb.net

Hi I am using visual studio 8, vb.net. I have a picture box on my form, picturebox1 I have a number of image files name image1.gif image2.gif image3.gif etc upto image52.gif I want to display an image in a picturebox dependant upon a value wich is generated elsewhere in the app, so that if '3' is generated I a picturebox to display ima...

which opensouce image library supports most file format can be used in commercial application

which opensouce image library supports most file format can be used in commercial application? ...

Image editing in resources of visual studio 2008

I want to be able to edit an image (png file) from the resources folder of one of my projects in VS2008. But the resource editor in VS will only allow me to zoom in and out. As the images are 32 bit, VS also will not allow me to use the image editor toolbar to change this. I would like to know if anyone knows how i can edit the image via...

Help getting image from Servlet to JSP page

I currently have to generate an image that displays the text of a string, i need to make this image on a Servlet and then somehow pass the image to a JSP page so that it can display it. I'm trying to avoid saving the image, and instead somehow stream the image to the JSP. I haven't found a way of generating the image since i started wit...

wxPython - Resizing an image with the EVT_SIZE event of its parent panel

My previous attempt at asking this question was horrible and I had also made some progress, please bear with me, I did not intend to re-ask this so many times, and it is not my style. Here is the final version: I am resizing a window that contains a DC Client painted bitmap and on the EVT_SIZE event, I am resizing it by re-scaling it (...

Feedback on code to Serialize, Deserialize and Save Image

Here is my code to Serialize, Deserialize and Save an image to the file system. I have looked at many examples of serialization/deserialization and I just want to get some feedback as I am sure my code could be improved. Any feedback would be greatly appreciated. I know this is a common problem so hopefully this question will be a good r...

AS3/AIR: Managing Run-Time Image Data

I'm developing a game with AS3 and AIR. I will have a large-ish quantity of images that I need to load for display elements. It would be nice not to embed all of the images that the game needs, thereby avoiding having them all in memory at once. That's okay in smaller projects, but doesn't make sense here. I'm curious about strategies f...

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...

Force refresh on ajax request?

I have a script which at one point returns an image thumbnail using jquery built in java request. Every time the php function get called, this thumbnail gets updated, but keeps the exact same filename. Problem is that the browser caches the thumbnail and it looks like it never gets updated. Are here any techniques to avoid this? ...

Handling image (bmp, png, jpg, etc) file merge conflicts in mercurial

At a minimum, what I'd like is to have "hg merge" open up the conflicting versions in side by side instances of, say, MS Paint (ugh), so I can do the merging manually. Bonus points for tool suggestions other than MS Paint. At the moment I'm looking at Araxis Merge. ...

GWT. Images Loading And Composite

Hi! I'm in trouble - very often when I update url of the images, browser not update them (in hosted mode, firefox) img.setUrl("..."); // sometimes won't work Ok, I try to instantiate new Image every time I need update url. I Use img = new Image("..."); on my SimplePanel. In hosted mode ot works, but in firefox - won't, when I press s...

How to save a base64 string as an image using ruby

I'm integrating my Ruby on Rails app with a usps shipping system. Once you make a postage request, you pay for that postage and it's nonrefundable. Postage requests will return you an xml response including a base64 string, which is the shipping label. I'm able to render the shipping label in a view, however to make it foolproof, I w...

Rotating images client side using jQuery

Is there a good jQuery plug-in to rotate images? Looking for something that is stable. ...

Z order in between Image and InkPresenter

Hi, I have this CustomControl which contains an InkPresenter and an Image. The image has an AdornerDecorator as I plan to add an adorner to the image later on. I have set the Canvas.ZIndex of the Image to be higher than the InkPresenter so that the InkPresenter will be drawn over the Image. The problem is that when I try to collect an...