image

Change alpha for an image hover in CSS2 standard?

i'm trying to add alpha effect for my image. the image is in rounded corner rectangular shape. i know there is attributes to change the alpha in CSS3, but i'm trying to be compliant with the w3c standard, which is still CSS2. Sorry i didn't state my question correctly ealier. i was trying to change the alpha when i hover over the imag...

Does anyone have a script to create a horizontal gradient (left to right) using PHP?

Here's the current code I am using. <? header("Content-type: image/png"); // example: <img src="gradient.php?height=600&width=100&start=00FF00&end=ff0000" /> $height=100; $width=1; $start='000000'; $end='FFFFFF'; extract($_REQUEST); // overwrite using vars from url $start_r = hexdec(substr($start,0,2)); $start_g = hexdec(substr($start,2...

Thumbnails asp.net

I am trying to write an application that allows a user to click a button to see images as thumbnails from a folder in a modal popup. Inside of my modal popup I have a datalist. But from there I don't know where to go. I've already tried the 4guysfromrolla solution but it wasn't what I was looking for. How can I set up images as thumbnail...

stretch image to fit in td

I want to stretch an image in my td cell. How to do that. Its is a tab image which looks like inverted of this |____|. I need to place the image in the first td cell which contains the text 'aaa' will come in center of this image. Thanks ...

Javascript image gallery not working

I used a image gallery engine called prettyPhoto.js to a wordpress site that I was creating. However, for some strange reason the image gallery seems to have completely stopped working and I can't for the life of me find out how to rectify this problem (without explicitly going through the entire site and stripping out the rel="prettypho...

Converting a 32bpp image to a 16bpp image in Java

How could a 32bpp image ( ARGB ) could be converted to a 16bpp image ( ARGB ) using Java's libraries? For my curiosity, at pixel level, what does this conversion do? If I have an int value that holds the value of a pixel ( with all the channels ), how would that int be different after the conversion had happened? ...

Store and retrieve Image by Hibernate

Hi every One, can any one tell me what is the best way to store and Image By hibernate (into MySQL) I have this class Mapping @Entity @Table(name = "picture") public class PictureEntity implements Serializable { @Id @Column(name = "id") @GeneratedValue private int id; @Column(name = "format", length = 8) private...

Email client support for PNG images in HTML email

Will the following email clients show an embedded PNG image in HTML email? . Outlook . AOL . Eudora . Thunderbird . Gmail . Hotmail . Windows Live Mail ...

Change size of image control in javascript

I want to change the size of the images in javascript onmouseover. Dim files As String() = Directory.GetFiles(Server.MapPath("~/Folder1/Folder2/"), "*.jpg") For Each File As String In files File = File.Substring(File.LastIndexOf("/") + 1, File.Length) 'Response.Write(File & "<br>") File = File & "~/Folder1/Folder2/" D...

How to replace words on blogger theme with image?

I have created a 960x100 image to take the place of the header words on this blogger theme. Does anyone know how this can be accomplished? Need an expert! :-) http://selfemployedmavens.blogspot.com/ ...

Best way to rotate an image using SDL?

I am building a game and the main character's arm will be following the mouse cursor, so it will be rotating quite frequently. What would be the best way to rotate it? ...

Generate icon images in Java

I have a set of icon images of various sizes (16x16, 24x24, 32x32) and base colours (red, green, blue, cyan, magenta, yellow). The images are pretty basic geometric patterns + drop shadow, so my gut feeling is that it should be pretty straightforward to replace the files with an icon factory that can generate images given a base colour. ...

Center Exported image to excel

Hi there, I have to export some images to excel, To center the images I use a table and colspan=4 to merge for columns of excel file, when I write a text to excel file it is easily get centered, but for image I tried every possible scenarios, like or and even but the result is the same. any suggestions? Thanks in advance ...

Manipulation of stage elements

I need a library that help me to create an image editor in Adobe Flex, anybody know about someone??? or what do you suggest to me?? I have a site where people can create your own backgrounds for their desktops, they select the background, they can write something over the backgorund, upload their images and put into the stage, something...

VB.Net: Dynamically Select Image from My.Resources

I have a group of images in my My.Resources. I want to select select images to display dynamically at run time. How do I do this? 'Static (Compile time) Assignment UltraPictureBox1.Image = my.Resources.zoo_picture_1 'Dynamic (Runtime) Assignment UltraPictureBox1.Image = ??? ...

I'm Trying to Create an Image Object with a Byte Array as Its Source. What Am I Doing Wrong?

I'm trying to create an image object with a byte array as its source. What am I doing wrong? An exception is thrown when I try to initialize the image object with an array of bytes as source data. The exception is shown in my code, below. public class MyClass { publuc System.Windows.Media.Imaging.BitmapImage InstanceImage { get...

DrawImage causing OutOfMemoryException

I am trying to re-size uploaded images. From what I have found online, the way to do this is to create a new image the size that you want it to be and then use Graphics to draw the image to a smaller image. The seems to work for every image that is uploaded except for images from a Nikon D90 camera. Every time I attempt to upload and ...

Converting a 16 bit luminance value to 32 bit RGB

I have a 16 bit luminance value stored in two bytes, and i want to convert that to R, G, and B values. I have two questions: how do i convert those two bytes to a short, and assuming that the hue and saturation is 0, how do i turn that short into 8 bits per component RGB values? (apologies if this sounds like a dumb question, i just can...

Load image from resources in C#

I have an image in my projects stored in Resources/myimage.jpg in the project. How can I dynamically load this image into Bitmap object? ...

css image div help

I have the css code below along with an image to show it's output. I need help though 2 things. This code works pretty good to show the username on the photo, however I noticed today while using chrome all day often when I would click a link that would take me to the page that has images with this code, it would not show the name on t...