image

Sending images to RoR app through an API + paperclip

how can I make my rails app to receive images from clients through an API using paperclip plugin. I know how to use paperclip using the ordinary form to upload the images, but i need to send images from a mac client. thanks in advance ...

How to know image type/format by using Image class

Hi there, I'm working with an image using System.Drawing.Image and I would like to know if I can get the type of it (ex: gif, jpeg...) Image myImage; format = myImage.SomethingThatTellsTheImageFormat; or at least, is there some way to say if it's .gif or not tks ...

Getting an Image object from a byte array

I've got a byte array for an image (stored in the database). I want to create an Image object, create several Images of different sizes and store them back in the database (save it back to a byte array). I'm not worried about the database part, or the resizing. But is there an easy way to load an Image object without saving the file t...

What do these checksum images mean and whats their use?

I notice starange Black and white images on many sites like on http://code.google.com/p/jquery-simpletip/downloads/detail?name=jquery.simpletip-1.3.1.pack.js&can=2&q=. Can anyone tell me their use? ...

save the image to SQL 2005 using visual studio 2005

how tosave an image data type to table using sql server 2005 who its in visual studio 2005.thanks ...

OpenCV : How to display a picture when clicking button in a form

Hi, I have made a C++ win32 console application in VS 2008. I open an image in a window. I want to achieve the same result by clicking a button on a form and the image appearing in a picturebox for instance pictureBox1. So, I made a C++ windows form project and pasted this code in the public area, and it gave me a heap of errors. Do I ...

Webcam streaming - Stream Images to Image Control at variable intervals?

I'm having a problem where users with a slow connection aren't getting my image feed properly. i'm sending them new images every second to a picturebox inside an Ajax Update panel, using an Ajax Timer. so if their connection is really slow, one image doesnt load fully before the next one comes in, so they never get the whole picture......

read an image I just wrote in android

So, largely for debugging purposes, I want to be able to write an image at arbitrary points in my code, and look at it later. I figured this would be easiest if I just wrote a my bitmap to a file and read it back later, but I cannot seem to figure out where to find the file after I write it, or how to open an image that is not in res/dra...

Make a BufferedImage use less RAM?

I have java program that reads a jpegfile from the harddrive and uses it as the background image for various other things. The image itself is stored in a BufferImage object like so: BufferedImage background background = ImageIO.read(file) This works great - the problem is that the BufferedImage object itself is enormous. For exampl...

Iphone/ipad background image

So I've followed this guide to putting a background to my main window http://howtomakeiphoneapps.com/2009/03/how-to-add-a-nice-background-image-to-your-grouped-table-view/ However, I am using a navigation controller, and when I push the navigation view(s) on the stack, the new views cover it (obviously). But I change all of the backgrou...

resize background image of div

Hi, using a joomla component that pulls an image from the database for a slideshow. It sets the image as the background of the div - I need to resize that image to be the width (620px) of the slideshow. <div style="background: url({image1url}) top center no-repeat; width:620px; height:350px"> <div style="width:620px; height:256p...

Image blurring in C++. Problem with copy of matrix

I am inputting a matrix of black/white pixel values and then I am blurring the inside using an averaging technique. I have the program looping through properly but I need a constant copy of the original matrix for the for loops to use when stepping through. How can I do this? #include<iostream> using namespace std; /****blurImage*****...

How would I encode a binary file to JPG format?

I would like to be able to take a stream of 1's and 0's and convert it to a format that jpg can read, I.E. suppose I wrote a program and compiled and got an exe, then took and ran the 1's and 0's from the exe through said program, it would produce a .jpg. Any tips on what I need to do? I am hoping it's not as difficult as I'm suspecting ...

Android: Resizing and scaling a part of the image

Given an image, I want to be able to scale only a part of that image. Say, I want to expand half of the image so that, that half takes up the whole space. How is this possible? Will ImageView fitXY work because I thought it'll work only for the whole original image. @Override public void onCreate(Bundle savedInstanceState) { super.onC...

how to embed texts from database to an image and generate a jpg file

I've an image. I want to retrieve datas from the database and embed the datas in specific locations in the image and then generate a final version of the image including the datas from the database and allow users to save it as a jpg file. Can anyone help me achieve it?? ...

Display image from MySQL database in a UITableView iPhone

I have some image data stored in BLOB format in MySQL database, I fetch the string and integer data but for image it does not display. i also tried using a UIImageView but it doesn't work. Can some one please post some code to display the image data in a UITableView. NSData-->UIImage-->image display. Thanks ...

add VML elements (images) with javascript

hi I've been trying to add VML image elements using javascript. now here is what I'm using to generate these images: function add_tools() { var elemm = document.createElement('rvml:image'); elemm.setAttribute('src', 'pic.png'); elemm.setAttribute('id', 'gogo'); elemm.setAttribute('class', 'rvml'); document.body.appendChild(elemm...

UIImagePicker not showing Original Image from Photos Library in OS 3.1.2

Holy Crap! Really... I'm frustrated with this problem that get me stuck with my apps for a week now. Here is the code - (IBAction)loadTheImage { UIImagePickerController * picker = [[UIImagePickerController alloc] init]; picker.delegate = self; picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary; // picker.sourc...

setting layout parameters

So Im trying to add an imageview to my current xml design - and its working decently. Now my main problem is that I cant seem to find a way to set the attributes for the image like where it needs to be displayed etc. RelativeLayout mRelativeLayout = (RelativeLayout) findViewById(R.id.board); ImageView i = new ImageView(this); i.setImag...

Should a function that periodically returns bitmaps re-use them?

I have a function that returns a bitmap meant to be used as background in a panel, and occasionally I'd have to call it to create a new background based on parameters. (Since there are two drawing functions for this panel (the background doesn't need to be changed as often as the foreground) it's not a matter of just drawing on the Pain...