image

Assigning random image with arc4random?

Ok, I'm going to try to make this more clear because my last question was extremely confusing. I've included a picture this time. Each one of these circles is a UIImageView and they are each assigned a random image which is one of 7 colors. So each circle could be one of 7 colors. I want to make it so that the user has to hit the cir...

Rails Image Display Error

My application front page works fine in firefox but when I open the site in any version of IE I get an error for the top banner image, the code in the layout is this: <%= link_to image_tag("logo.jpg", :class => "logo"), root_url %> You can see it live here: http://www.dailytrailer.net Everything seems to be fine, when I load it in IE...

Silverlight: How to draw images dynamically?

s.jpg added to solution with BuildAction==Resource. XAML <UserControl x:Class=...> <Canvas x:Name="LayoutRoot"> </Canvas> </UserControl> CS Image Model = new Image(); Model.Source = new BitmapImage(new Uri("/s.jpg", UriKind.Relative)); LayoutRoot.SetLeft(Model, Coor.X); LayoutRoot.SetTop(Model, Coor.Y); Model...

java.net.URL read stream to byte[]

Hi folks :) I`m trying to read an image from an URL (with the java package java.net.URL) to a byte[]. "Everything" works fine, except that the content isnt being enterely read from the stream (the image is corrupt, it doesnt contain all the image data)... The byte array is being persisted in a database (BLOB). I really dont know what t...

Adobe Air Showing image preview

Gurus, We have an Adobe AIR client which talks to a WAMP server. The client has an image upload functionality. The search shows the list of images in a table. We have a Download button in the search window. The file is streamed from the backend upon clicking the download. We need a preview button in there. I want to show a preview of the...

Problem with imagecreatefrompng (PHP)

Hey guys, in one of my PHP projects, imagecreatefrompng complains, that the image "is not a valid PNG file". Warning: imagecreatefrompng() [function.imagecreatefrompng]: '/.../...png' is not a valid PNG file in /.../...php on line ... I'm pretty sure, the file is valid, because I can open it in any program. So I was wondering what e...

Need to delete a file, in use by my own app

I'm fiddling with a desktop gadget (a clock). It has a reflection effect underneath it that needs to be transparent, and I'm using CopyFromScreen to get the background, then just setting the form background to this. Like so (part of a "dock/undock" button): Rectangle bounds = this.Bounds; using (Bitmap ss = new Bitmap(...

Help determining thumnail creation method...

I've been exploring ideas how to create thumbnails from a user upload and store them in a directory and then use that thumbnail to display the original. I've been reading posts about phpthumb(), wideimage, imagemagick, and php's GD. I need some advice on which would work best for my requirements. When the user uploads a source photo...

Handling Multiple Images with ColdFusion and MySQL

Hello everyone, This is an architecture question, but its solution lies in ColdFusion and MySQL structure--or at least I believe so. I have a products table in my database, and each product can have any number of screen-shots. My current method to display product screen-shots is the following: I have a single folder where all screen-...

How to work with large bitmap. Rotating and inserting to the gallery.

I need to take a picture with the camera and, if depending on the picture size, rotate it before saving it into the gallery. I'm using Intent imageCaptureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); imageCaptureIntent.putExtra(MediaStore.EXTRA_OUTPUT, uri); startActivityForResult(imageCaptureIntent, IMAGE_CAPTURE...

Saving PNG images

I'm having trouble saving png images. I want to add some binary data into the png file, such as the following structure. struct Foo { int value; char str[10]; double val; double val2; }; It seems to save just fine with the following code. However, when I later load up the png file, I see that my chunk has not be...

how to create button with Image & caption together in javascript

Hi i want to create a button which has caption (ex Category) and the Image of it in the Button too. so we can say that button has both Caption + Image I hav to use javascript only ...

Image orientation maps

Hello, What is the most common way to get 4 Orientaton maps at 0, 45, 90 and 135 angles from Image. I want to apply orientation kernels. Is that good solution ? for 0 orientation -1 -1 -1 2 2 2 -1 -1 -1 for 45 orientation -1 -1 2 -1 2 -1 2 -1 -1 for 90 orientation -1 2 -1 -1 2 -1 -1 2 -1 for 135 orientation 2 -1 -1 -1 2 -1 -1 -...

construct a DOM tree from a string without loading resources (specifically images)

So I am grabbing RSS feeds via AJAX. After processing them, I have a html string that I want to manipulate using various jQuery functionality. In order to do this, I need a tree of DOM nodes. I can parse a HTML string into the jQuery() function. I can add it as innerHTML to some hidden node and use that. I have even tried using mozilla'...

How to use an iPhone webView with an external HTML that references local images?

Hi i have an external html on my webserver, that is requested by my iphone app through a webview... in order to make the page load faster, i want to change my html to request static files like css's and images from the local resource folder of my app.... can i do this? my html is something like this: <html> <body> <img src="file://Re...

Get raw data back from instance of Image

I'm getting Image (actually instance of Bitmap class) from resources, and (to write it to rtf stream) - I need it's raw data back. Also, Image.Save method can't be used, because it seems to close stream it saving to, and I need to append to RTF file. I do not want to create new stream, save image to it, then copy it to RTF stream becaus...

Rails image_tag not closing image tag

On a rails project I am using the image_tag to generate my image html elements. <%= image_tag("test.jpg", :alt => "test image") %> is generating <img src="test.jpg" alt="test image"> This is happening throughout my entire rails project. Is there a setting somewhere that someone else set that is causing this? How can I get rails ...

Adding a row of icons to a table cell.

Okay I am just totally too close to this I think. I have a tableview. In that table view everything is working except section 2 row 0. AND -- before anyone asks...I know I am not using the *imgWordView (in the code below) and that is why the icons are not showing but i do not know where to add it to the subview so i can place it at c...

how update an image dynamically using data binding, need example/help

Hi all, new to developing with flex3/as3. I have a main.mxml application that lays out my application, it contains a "browse and upload" button. And contains an image to view the users uploaded image like so: <mx:Application <mx:Script> <![CDATA[ import model.myModel; import control.myControl; // Create data model ...

How does Cufon affect SEO and Search Bots?

I've been searching the web and can't find an answer to the question of how using Cufon affects SEO (the way bots from Google, Bing, Yahoo... read the page). I know the original text is still there, but it is inside a tag, inside a tag, and is next to a tag (instead of next to the word that should be next to it). In other words, do ...