image

wpf how to use jpg from resource in xaml-image?

In my c#/WPF project, I added a jpg to the resources to embed into the exe file. Now I want to use this jpg in an image tag, something like <xmlns:prop="clr-namespace:MyProgram.Properties" <Image Source="{Binding Source={StaticResource prop:LogoJpg}}" My problem: it does not work. I got no idea, how to use the image. I could use file...

jQuery how to get select change the image,ajax work in multiple form?

i need to select change some data and change image in own form each from will have own preview image. each image will get attr name "imagePreview" from selected the option. if nothing in attr or imagePreview="0" will do nothing here some of my working scrip but when I change option all image preview in DIV tag will change not just in th...

How to read image from specific path in Sqlserver 2005 storeprocedure ?

I need to read the image from the specific path. I pass only path as parameter and that image will return by the procedures in image or byte format. ...

iPhone app crash

Hi all, I have a problem with my application. It crashes after few times of working with images and I have no idea why. I have a TabBar, in one item of TabBat I have a navigation controller. In the root controller of that navigation I have a two buttons. One button is to get an image from camera or photo library, the second button is to...

iPad toolbar icons: bar button images not centered?

Have a look at the following screenshot fragment from an iPad app I am working on: The "chat bubble" icon on the left is from the famous Glyphish icon set. Note how it has correct vertical positioning (in the middle), but is much darker than the greyscale used for the InfoDark button. The code to make this icon is as follows: UIImage...

C# winforms code to c# wpf code

Hi, I have a drawing application developed in winforms C# which uses many System.Drawing.Bitmap object throughout the code. Now I am writing it into WPF with c#. I have done almost 90% of the conversion. Coming to the problem... I have the following code which is used to traverse the image pixel by pixel Bitmap result = new Bitmap(im...

Images in iPhone app appear in Simulatpor, but not when compiled to device.

I am learning iPhone development, and have built a simple app that has an image that changes to another image when you tap it. If i build it to the simulator, it works fine, but if i build it to the device the images dont appear. i feel like they aren't being copied across. I have checked they have been named correctly and i have made s...

Wrong paragraph order in PDF by iTextSharp

Hi, I am trying to generate a PDF using iTextSharp. It will consists of a number of images, each with a heading preceding it. But when I generate the PDF, the order of the elements is not preserved - multiple headings are grouped together etc. I am wrapping the header and image in a single paragraph as follows: ' Create paragraph and ...

Convert a bitmap image to an uncompressed tif image in Java

Hello I'm trying to convert a bitmap image into an uncompressed tif file for use with the Tesseract OCR engine. I can use this method to produce a compressed tif file... final BufferedImage bmp = ImageIO.read(new File("input.bmp")); ImageIO.write(bmp, "jpg", new File("output.tif")); This produces an empty tif file when the "jpg" i...

What is fastest algorithm for getting relative to image shapes formed by aeries with relatively same colors on the given image?

Given image is N*M (R,G,B) pixels like: Algorithm should tall us how to find main image colors like: red and white here. Aeries with relatively same colors means we search for (R,G,B) (222, 12, 10) giving for example such step (40, 20, 10 ) so that (199, 32, 5) will count like what we are searching for like: Shapes should be de...

Loading an image from a stream without keeping the stream open

Hello, Is it possible to use the FromStream method of System.Drawing.Image without having to keep the stream open for the lifetime of the image? I have an application which loads a bunch of toolbar graphics from resource files, using a combination of Image.FromStream and Assembly.GetManifestResourceStream. The problem I'm having is wh...

JQUERY/JS: Simple OCR for a simple math operations

Hi to all Dear Coders, i have opened this new question because i would like to make a simple script in Jquery or Javascript that read from very simple images the figures. This is an example of image: And this is an easy tutorial how to make: TUT Math Image And then i have see this script that read all phrases: Megaupload auto-fill ...

How do I customize and slice Jquery Automatic, Infinate Carousel rotating slideshow into separate image links?

Hi jquery experts. I recently read top ten jquery techniques in Web designer mag and like the carousel effect on http://www.struttcouture.com. But I would like to customize it a little more. For example is there a way to slice up the images so different sections of each image can be made into links with in divs instead of unordered lis...

Qt: show image on widget

i want to display a car photo. after loading, user can move the car by pressing keys on keyboard. when he press "up arrow", car will move upwards. which methos should i use to show the photo. Qlabel.setpixmap?? The code below shows the image on a new widget, but i want to show it on my mainwindow page. What should i do? Thank you void...

capturing an image from the webcam

I was following this tutorial here: [link] about getting a webcam image into rails using paperclip and jpegcam. I followed the tutorial through and through yet I can't seem to get the image uploaded. I'm getting this error when I go to photo/show: NoMethodError in Photo#show Showing app/views/photo/show.html.erb where line #3 raised: ...

Adding to Androids GridView Example

Hi there, was wondering if anyone could help me on how to add a type of 'popup' to Googles Androids GridView example. Found at.. http://developer.android.com/resources/tutorials/views/hello-gridview.html at the moment I only managed to work out how to set the clicked imaged as a background. How could I have it popup as a View or someth...

PHP: display most recent images from directory?

I have a camera server FTPing images to a webserver. Can anyone suggest the PHP snippet I'd need that would look through the server's public root directory (/public_html) and display the four most recent images? I can tell the camera server to name uploaded images by date/time, however needed [eg. image-021020102355.jpg for an image cre...

out of memory Image.FromFile

Why is it that I'm getting an out of memory error? Thank you if (File.Exists(photoURI)) { FileStream fs = new FileStream(photoURI, FileMode.Open, FileAccess.Read); Image img = Image.FromStream(fs); fs.Close(); } ...

Convert pixels into relative cm from a clickable image?

Hi, Having a bit of a brain freeze on how to do this. I have an image of an area of a soccer field which the user clicks on to indicate where something occured. I want to store the coordinates in real world units in my database so that I could change the image at a later time. However, I can't figure out the formula to do this (ignori...

resize images and save them in a new folder

hi I need to take sequence of images as input from a folder and after resizing them I should save them in an new folder using matlab ...