image

Flex as app : how to load a picture ?

Hello, I'm new to flex, i'm used to flash (CS5 & as3) I'm trying to load a picture in my swf file to add a DisplacementMapFilter then. But i'm just cant load that picture. package { import flash.display.*; import flash.events.*; import flash.net.URLRequest; public class pano2 extends Sprite { public var loader_photo:Loader=n...

selecting a parcticular element in xml via jquery

can somebody help me select the url from this XML document where the ID = 2. via ajax. <images> <image id=0> <url>images/pic.jpg</url> </image> <image id=1> <url>images/pic.jpg</url> </image> <image id=2> <url>images/pic.jpg</url> </image> </images> I am guessing something like this... But currently it is displaying all the entries i...

images API / Error

I'm working on a project and I used the the Images Python API . For instance in the example given in http://code.google.com/appengine/docs/python/images/usingimages.html I get an error when ever I do not upload a photo, How can I modify the code so I don't get an error when I don't post anything. thanks ...

binding an image source in XAML

I am trying to bind an image source to my XAML through c# this works <Image Source="images/man.jpg"></Image> this does not work <Image Source="images/{Binding imagesource}"></Image> where imagesource is a string variable in the c# file of this xaml and is being set equal to "man.jpg" ...

How do I store an image to disk in Java?

hi all, I'm using httpclient to download images from a webpage and I'm trying to save them to disk but not having much luck. I'm using the code below to fetch the image but not sure what needs to be done next to actually get it to disk, the fetch would be on a JPG or a PNG image path... thanks HttpContext localContext = new BasicHttpCon...

Upload photos with php without reload

What I want I want to upload a file without without reloading the page, also I want to add the source link for the image to the textarea. So when I push the upload_photo, the image uploads and a link is added to the textarea. I want pure HTML, Javascript|AJAX and PHP. What I have <form action"index.php" method="post" enctype="mu...

Changing position of images in a table view cell

Hi I'm messing around with iPad development, and I'm trying to create a table view similar to the one found in Apple's Mail application, when setting up an account for the first time. It's basically just a grouped table view, with an image representing each of the supported mail services in the middle of each table view cell. Now, I ha...

Inputstream from WAP server, parse parts

I have asked this question countless times on various forums. Ultimately all I need is a recommendation for a book or website. Hopefully an API can be recommended. I can code anything I just dont know where to look. I have Googled to the end of the web. Looked over several Java packages including the wireless toolkit. Ive seen python API...

Are there revision control systems for images?

I would make crazy use of such a revision control. If it doesn't exist - where would to a good starting point for building one? I can probably make a lot of designs and interaction flows, but to implement it is another thing. Would it be a good idea start by creating a macro to work with Adobe Photoshop / Illustrator? Or one of the onl...

[UIImageView _cleanUpCrossView], problem on iPad

guys,, need help here. i have an app that completely works on iPhone (ios 4) and iPod touch. but when i try on iPad i got this Log error message : -[UIImageView _cleanUpCrossView]: unrecognized selector sent to instance 0x2e7760 CoreAnimation: ignoring exception:-[UIImageView _cleanUpCrossView]: unrecognized selector sent to instance 0...

How to output CCK Image in Views custom code

I have a view, which outputs all different types of nodes. One content type which I created is called "photo" and includes a CCK Image field. I want to customise the output, Im currently using views_customcode module to write PHP but I cant find the data to output the CCK image field? Ive also tried theming the view output, but, I want...

StaticResource Markup Extension vs. System.Windows.Application.FindResource

I've defined a BitmapImage in my ResourceDictionary like that: <BitmapImage x:Key="Skin_Image_Back" UriSource="./images/back.png" /> and loaded the ResourceDictionary like that var dict = Application.LoadComponent( new Uri("TestProject.DefaultStyle;component/Style.xaml", UriKind.Relative)) as ResourceDictionary; Application.Cur...

how to close an image on escape key press ???

I am using a image blow up simply with an overlay image and the main image. the blow up gets open when we click the small image and then if we click the opnend up blowed up image then it gets closed. Now i want that it should get closed on ecs key press. how can i do that??? sample of my code is :- function Blowups(arrs,flag,nums,img_...

PHP REGEX: Get Image from URL

What I want If the URL in the string contains a .jpg at the end of the URL (not the string) then it should make an image from it with preg_replace else make a normal link. so for example: If I have http://www.example.com/images/photo.jpg then it should replace with: <img src="http://www.example.com/images/photo.jpg" alt="http://ww...

Resize tiff and maintain transparency and c#

I'm trying to resize an RGB 8-Bit Tif and maintain it's transparency in c#. I've tried the following code. using (Image thumbnail = new Bitmap(1500, 1500)) { using (Bitmap source = new Bitmap(@"c:\trans.tif")) { using (Graphics g = Graphics.FromImage(thumbnail)) { g.SmoothingMode = System.Drawing.Drawing2D.SmoothingMod...

iPhone image problems.

I'm having frequent crashes on iOS 4.0 within my application due to excessive memory. Instruments tells me that it's category is "Malloc 600KB" and the responsible library is ImageIO and the responsible caller is ImageIO_Malloc. I'm using lots of images in this app but no more than I have used in other applications. It's odd because if I...

Downloading images in background while showing the listview

I have an array of all the URIs of the images which I am showing in a List. Now I want to run a thread in background which gets this images from web and store them on the SD card. So when I click a particular element in the list instead of fetching from web it should fetch from the SD card in the new activity. How do I do this? ...

On-Click img border = #color - Multiple images - Only need 1 highlighted at a time

Basically what I am trying to accomplish is create a list of images (let's say 10) and upon clicking any of these images, their border changes to a specific color; currently accomplishing this with a simple onClick event with JS. That's not an issue. The trouble comes in when clicking a second or third or forth image; all of the images c...

Android Drawable Images from URL

I am presently using the following peice of code to load in images as drawable objects form a URL. Drawable drawable_from_url(String url, String src_name) throws java.net.MalformedURLException, java.io.IOException { return Drawable.createFromStream(((java.io.InputStream)new java.net.URL(url).getContent()), src_name); } Th...

avoid loading images using javascript

Say I have the following code in my html: <html> <....> <img src="the-image.gif" /> <....> </html> Is it possible to avoid loading the image using javascript? I want to load it later, using javascript. But I don't want it to be loaded automatically. I am trying to delay the request of the image. Thanks ...