image

using XAML to bind to a System.Drawing.Image into a System.Windows.Image control

I'm binding a ListView to a list of objects, like so; <ListView ItemsSource="{ Binding Path=. }" ItemTemplate="{DynamicResource EventTemplate}"> I'm binding to an object which declares two properties; string DisplayName { get; } System.Drawing.Image Image { get; set; } I want to populate a DataTemplate but I can't figur...

Hotlinked images and FBML

I am creating an custom facebook page using FBML. I use custom data for my content in the share buttons. I am having trouble with the thumbnail images. I have not been able to determine the problem. I will hotlink an image from one site, the thumbnail won't work. I will hotlink an image from another site and the thumbnail works. I try ...

Preloading images using jQuery

Hi everyone, I know this is a hot topic and I know there have been previous questions with identical titles, but I tried everything and something's just not working right. For some reason, my Firefox will not preload the images. The images DO preload (as they should) in IE7/8 and Chrome. But not in Firefox. EDIT: I've created a new F...

Using jQuery to assign an active class to an area tag (image map)

Is there a way, through jQuery, to assign an active class to an area tag within an a map? I have a bunch of areas defined like this: <map name="mappy"> <area shape="rect" coords="162,105,179,136" href="#" title="Unique Title 1" alt="Unique Title 1" /> <area shape="rect" coords="205,72,222,101" href="#" title="Unique Title 2" ...

Should images be referenced from CSS or from Content folders with <img/>

I ask because my buddy posted a question earlier on How to resolve issue with image path when testing HtmlHelper? and a few of us in the office got talking about how to resolve this. One of the guys suggested that he wouldn't have this issue (Test crashing because it has a dependency on functionality in IIS) if he was referencing the i...

How to save images into a zip file.

I am attempting to read in a stream and save the read images to a zip file as this is going to be running over multiple days and would generate far too many individual files. I now have an issue where I seem to be unable to save images into a zip file. The worker thread I have built for it is below. I am sure that the image is makin...

How to resize an image on click with jQuery?

I've the next problem: I've got a div which contains an image. I need this image resized if is bigger than the width of the div, and if the user click the image, show it at the full size. The div width is managed with the windows width. How do I do that? ...

Android: In Gridview how do I make the images clickable so that....

I am trying to make the images I have clickable so that when they are pressed it will send the user to another page or link. How do I go about this? Currently each row in the gridview has 2 buttons. How will it know which item in the gridview is clicked so that it performs a certain action, specific to the item that was clicked. Thanks ...

Loading images from res or assets when web page in webview loads from server

Hi all, I want to send down a webpage from a server to WebView components on Android handsets. I've already learned how to enable the webpage to talk to the JavaScript handler, so the native application can interact with the webpage. I am, however, stuck on images. I want the webpage that comes from a server to somehow tell the app whi...

How did Google images normalize the width of each row?

It's easy to resize images so that they all have the same height while maintaining the aspect ratio, but how did they fit them all on a row such that every row has the same width? Did they crop some of the images or what? For those flagging this as "off-topic" -- I thought "algorithms for organizing images" was within the realm of p...

How to use java.awt.image package in android app

Hello Everybody, I have to use java.awt.image package for BufferedImage class in my android app But I am not able to do this and does anyone knows that how to do this in android or What's the equivalent class of java.awt.Image in Android? ...

displaying images in mvc.net c#

i want to display images in mvc.net? help anybody :)... im uploading images through silverlight control and storing them on directory at my hard disk ...

JPG files processing problem (GD library, timthumb) - created of bad quality

I'm using the latest version of timthumb for creating thumbnails of the images on the fly. My local server for development is on Windows Vista, Apache 2.2, php 5.2.13, gd library is enabled with full support: GD Support enabled GD Version bundled (2.0.34 compatible) FreeType Support enabled FreeType Linkage with freetype FreeType Vers...

WPF Image Source binding with StringFormat

Hello, I'm new to WPF and MVVM (started this week experimenting with it) and trying to bind image resources at runtime. The items I'm trying to display contain an enumerate property that indicates the type or state of the item: public class TraceEvent { /// <summary> /// Gets or sets the type of the event. /// </summary> ...

Android - using an image resource multiple times but changing alpha on only 1 instance.

I'm pretty sure I saw a specific command for this, but I can't remember what it's called, which means I can't Google it! If I have an image resource, e.g. R.drawable.myimage , which gets used in a Linearview more than once and I want to change the alpha on just a single occurrence of that image, (normally, changing the alpha changes all...

How to check a checkbox using javascript?

I have set of images and checkboxes like below <form name="food_type_form method="post" action="proc.php"> <img src="images/type_indian.jpg" alt="Select Indian food" /> <input type="checkbox" name="food_type[]" value="indian" />Indian <img src="images/type_chinese.jpg" alt="Select Chinese food" /> <input type="checkbox" name="food_type...

How to display an Image stored in bytes on a page

Hi, I use to store client Images in DB in bytes, the problem is how can I render that image on .aspx page Thanks ...

Does JPEG use a row-major compression algorithm?

A JPEG image, if it is non-progrssive loads from top-to-bottom, and not from left-to-right or any other manner. Doesn't that imply that jpeg uses some row-wise compression technique? Does it (use a row-wise compression technique)? ...

How to Manipulate photos with C#/.NET4

I'm looking for the best advice about how to manipulate/morph photographic images. I've been looking around but what I keep coming across is more 3D graphics or game development. What I want to do is manipulate 2D still images. Ideally I'd like to do this in SL4 but WPF would be fine. I am using .NET4/VS2010. Many thanks for the wis...

ImageIO not able to write a JPEG file

I have a BufferedImage I'm trying to write to a jpeg file, but my Java program throws an exception. I'm able to successfully save the same buffer to a gif and png. I've tried looking around on Google for solutions, but to no avail. Code: File outputfile = new File("tiles/" + row + ":" + col + ".jpg"); try { ImageIO.write(m...