image

Upload to imgur java

Hi I'm trying to figure out how to upload to imgur using java, does anyone have any experience with this kind of thing? ...

Add image to layout in ruby on rails

I would like to add an image in my template for my ruby on rails project where i currenly have the code <img src="../../../public/images/rss.jpg" alt="rss feed" /> in a the layout stores.html.erb file however this doesn't seem to load as it looks like its missing a route which i'm not sure what its supposed to be. Any ideas please? ...

how to create image from gis data in C#

I'm using C# to pull spatial data from a sql server 2008 database. I'm then trying to perform operations on that data, but to start... I want to be able to visualize it. That is, I would like to create an image of the data, preferably in jpg format. I thought that I might do it by hand, but that is proving more challenging than I ha...

How do I get a flood fill algorithm to cope with closed circles?

I have an application that accepts images as input and removes the background on which the image was taken. For example, if you pass in an image of a book on a blanket, the resulting image will be just the book with a transparent background. The problem I have is when you input an image that has a large empty space in it, e.g. an elast...

Method that resizes images(bitmap, jpeg, png, etc.)

I need a method that resizes an any kind of image like bitmap, jpeg, png. Maybe something like this: private void imageResize(Image img, int newHeight, int newWidth) That returns img? What ever works and I am able to call the method somewhere in my code. ...

Apache server cache images

Hi, On my Apache server I have a PHP service that gets requests and generates an image from them. What I want to do is to cache the generated image on my server (not client's browser) once it was generated, so if the image with specific parameters has been generated already and someone requests it my web server will return cached image ...

How to display a picture in crystal reports 8.5 dynamically?

Hi Is there any way to show an image in crystal reports 8.5 dynamically? ...

When are JavaScripts executed?

I'm currently asking myself, when javascripts in the header of a page are executed? After all contents are loaded? During loading images? Before loading the site? Reason is, I want to implement a barrier to prevent users accessing a site without javascript (it's for internal company use, don't blame me for the requirement) - my idea wa...

How to implement a service that can output formula with tex parameters?

Is there some open source project I can refer to? I'm using PHP. Anyone knows? ...

Image comparison algorithm

I'm trying to compare images to each other to find out whether they are different. First I tried to make a Pearson correleation of the RGB values, which works also quite good unless the pictures are a litte bit shifted. So if a have a 100% identical images but one is a little bit moved, I get a bad correlation value. Any suggestions for...

C# WPF convert BitmapImage pasted in richtextbox to binary

Hi everyone, I've got a richtextbox, that I plan on saving to a database, which can be loaded back into the same richtextbox. I've got it working so that I can save the flowdocument as DataFormats.XamlPackage, which saves the images, but the issue is that the text isn't searchable. With DataFormats.Xaml, I've got the text of course, b...

Creating Bing Image Gallery using Javascript

Hi, I would like to design a home page for a client similar to the Bing homepage which would have an image gallery with navigation bars and text right above the images. How can this be achieved using Javascript? Thanks ...

Scaling multiple images to fit inline in a div?

Is there an efficient way to scale a number of images so that they can fit inline inside a fixed-size div? I'm assuming it would be possible to do by using javascript to calculate the div width, divide it by the number of images (excluding padding) and then resizing the images equally to keep their aspect ratio but I'm hoping there is a...

image vertical alignment issue

I have an image that I want vertically aligned with some text. The image has no border, no spacing, and has been properly cropped. However, it aligns differently in IE and Firefox, and I cannot figure out why. Alignment in IE: Alignment in FF: Notice how in FF, the X box is flush with the bottom of the text. The HTML I am using is...

Objective C Printing: How to set header content?

Hi there, I want to print a specific NSView. When I do this, I wish to add content to the header of the print page. e.g. If the NSView contains a picture of a cat, when I press print, print preview shows up with the picture of the cat. I want the print out to be a picture of a cat, with the caption: "Cat" in the header, which I do not...

opencv multi channel elemnt access

Hi All, I'm trying to learn how to use openCV's new c++ interface. How do I access elements of a multi channel matrix. for example: Mat myMat(size(3, 3), CV_32FC2); for (int i = 0; i < 3; ++i) { for (int j = 0; j < 3; ++j) { //myMat_at_(i,j) = (i,j); } } What is the easiest way to do this? Something like cvSet2D...

How can I bend a a display object ?

I want to make collage, Example : http://www.as3.ro/p1%5Fanim4.swf (1.4 mb); I want to bend images using as3. ...

How to store System.Windows.Controls.Image to local disk

Hi All, How can i store a System.Windows.Controls.Image to disk say at location: C:\data\1.jpg Thanks ...

Centre the background of a TabControl in WPF

I'm trying to get an image to float unstreched in the middle of my TabControl. I started with the below XAML which stretches the image. <TabControl> <TabControl.Background> <ImageBrush ImageSource="/LogoTest;component/logo_final.png" /> </TabControl.Background> </TabControl> I've tried various approaches ...

Find <a> with image extension in href (jQuery)

I need to find (and hide) all links with images (.jpg, .png, .gif) in href as they're causing my wordpress excerpts to break. Many thanks. ...