image

c# asp.net file not found error : weird

Hi All, I get a file not found error when I want to display an image. The error is right, the file is not there in my development environment (its an image uploaded by a user). But It should not raise this error because what Im doing is just appending some img tags in a stringbuilder with a reference to the particular images. So im just...

When zooming an image how can I determine a proper w/h so that I won't get decimals

Hi, Lets say I have a non-square image.. If I increment the width and I recalculate the height according to the incremented width (ratio), sometimes I get xxx.5 (decimals) for the width ex.: width = 4, height = 2 I augment the width with a factor of 1.25 I'll get : width = 5 Next, the height will be : heigth = 2.5 How can I determine...

Java JFrame pack() issue

Hi guys I am attempting to overlay images on top of a background image using the standard java utilities. See the pictures below... I have code that seems to create the background image (can you verify that it really works?) And I have created an extension of JPanel that I use to display images (the class is called ImagePanel) However...

Image visualization with canvas. How to resize them?

I'm building a website photo gallery for a friend. Images are loaded as simple DOM image objects (<img src="" />), and the size of these images is based on the browser size. So I resize them with CSS. This isn't an optimal solution since CSS resizing seems to change the quality of the image and pixelate it quite a bit. I was thinking o...

Transparent image - is it possible in JS?

Is it possible to set transparency of any image in javascript? And how can I do that? ...

sollution for thumnails with different sizes to fill up blank space?

Hi, the title and the example says it all. I'm looking for a way to make the thumbnail places look good instead of those partly empty spaces around the images. ...

How to get image's coordinate on JPanel

This question is related to my previous question http://stackoverflow.com/questions/2376027/how-to-generate-cartesian-coordinate-x-y-from-gridbaglayout I have successfully get the coordinate of each pictures, however when I checked the coordinate through (System.out.println) and the placement of the images on the screen, it seems to be ...

Silverlight Image element not showing up

Silverlight newbie question: I've got a small Silverlight application with the following XAML snippet: <Image Source="http://judahhimango.com/images/smileys/cool.gif" /> The image doesn't show up! I would expect the image to download asynchronously, then show up in the UI, but alas, no such luck. What am I doing wrong? Update -----...

Fade in list of images, once all are loaded.

I have a group of images in this format: <ul id="photo-list"> <li><img src="" /></li> <li><img src="" /></li> <li><img src="" /></li> </ul> My goal is that once all the images have finished loading, then #photo-list will fade in. Also I would like to display a loading animation before the images are loaded. Any help is appreciat...

how to use a part of a picture as thumbnail without resizing it to a thumbnail

Hi, I'm looking for a way to use a part of a picture to use as a thumbnail without actually resize the image. It's like you capture a part of the picture and show it as thumbnail ...

Image Line Trace Math Help Hard To Explain

Hi all, sorry for the confusing title, its really hard for me to explain what i want. So i created this image :) Ok so the two RED dots are points on an image. The distance between them isnt important. What I want to do is, Using the coordinates for the two dots, work out the angle of the space between them (as shown by the black line...

How to display image within cell boundary

How can I place an image within the cell boundary? I mean without taking the space of other cell? In the code below, random cells were selected to display images. One image in one cell. The problem is that, the image seems to take other cells as well. ... setPreferredSize(new Dimension(600,600)); final int ROWS = 6; final int COLS ...

Convert RGB value to HSV

I've found a method on the Internet to convert RGB values to HSV values. Unfortunately, when the values are R=G=B, I'm getting a NaN, because of the 0/0 operation. Do you know if there is an implemented method for this conversion in Java, or what do I have to do when I get the 0/0 division to get the right value of the HSV? Here comes ...

IE7 Gets "Red X" when using jQuery Hover

Hi Guys, I am using a preview script via http://cssglobe.com/lab/tooltip/03/ The problem is that when I use SRC tag in this script - I get a big fat red X - in IE7 BEFORE the image is rendered. Once the image appears - all looks ok. Is there anyway to "hide" this before its loaded or something ? Love an help anyone can provide. ...

GAE images.resize with fixed proportional crop

I need to resize and crop to exactly 60x80px from various size and aspect ratio. Just before i put into Datastore. Anyone already got this issue resolved. Currently i already succed to just transform it to exact height (80px) with various width which nott look so good when i try to display it on a list. e.g jcaroussel. My db.put code i...

Add link to image dynamically

If i have "img" element id = "myimg". Is posible to add link to "img" without edit html page using jQuery <img id="myimg" src="image.png"> I like to make "myimg" have link like this. <a href="test.html"><img id="myimg" src="image.png"></a> Thank you for reploy. ...

when the on the form and specifice control is fixed then after 2 or 3 refresh is compress and goes out the main page in asp.net

when the on the form and specifice control is fixed then after 2 or 3 refresh is compress and goes out the main page asp.net ...

Can anybody provide simple steps of "Skeleton Pruning by Contour Partitioning with Discrete Curve Evolution" Algorithm

Can anybody provide simple steps of "Skeleton Pruning by Contour Partitioning with Discrete Curve Evolution" Algorithm or c++ code i have document if some one is familiar simple steps of the algorithm ...

What would be a good way to scale images in C#?

I got a website which contains a lot of projects with each project containing a sidebar. In this sidebar it is possible to attach images to a project. The images attached will be shown in a gallery with 3 small thumbs at the bottom and one bigger image at the top of the gallery. The big image will refresh to another image when a visitor...

Image Upload Servlet not working in Chrome, but works in other browsers

I have tested this servlet and it works well, except in Google Chrome it jsut doesn't display image. What could be wrong in this example code that makes Chrome not to display image? http://balusc.blogspot.com/2007/04/imageservlet.html ...