Member Avatar

All, I'm wondering if their is a way to use the CSS clip to place my image propational within another image. In this case - I am giving users the ability to upload their own image: As an example - this URL shows the uploaded image: http://www.pinkcloud.com/custom_clock/submit.php?upload_message=image uploaded&upload_message_type=success&show_image=kmo_mikeg.jpg Here are the div tags and CSS clip - I'm using to size the uploaded image into the other image - however no matter what I do the image doesn't go into the other image and the proportians are off: <div id="layer1" style="width:400px; height:300px; margin:auto; position:relative; z-index:-1; align:center;"> <img name="imgSrc" id="imgSrc"> <div …

Member Avatar
0
29
Member Avatar

Hi Everyone, I am here to start a defferent project, intresting for me of video clips comparison in C#. I would like to develop a destop application which can compare a video sample clip A with a destination video clip B. All I want to do is E.g if I have hundreds of video clips available in my D drive and I want to find a specific video. And I have for exapmle a 10 seconds video clip sample available. The application will compare the contents of Destination video file B with the source video sample file A. And if …

Member Avatar
0
26
Member Avatar

I'm probably doing this wrong, because there has to be a way to do this. Here is my current code: import javax.sound.sampled.*; public class soundHandler{ soundHandler() { } public void newSound(String sound) { new soundThread(sound).start(); } } class soundThread extends Thread { String soundName; Clip clip = null; soundThread(String i_soundName) { soundName = i_soundName; } public void run() { try{ try{ try{ AudioInputStream stream = AudioSystem.getAudioInputStream(ClassLoader.getSystemClassLoader().getResource(soundName)); DataLine.Info info = new DataLine.Info(Clip.class, stream.getFormat()); clip = (Clip)AudioSystem.getLine(info); clip.open(stream); }catch(Exception e){System.out.println("err= soundThread_errorLoadingSound ("+soundName+")");} clip.start(); }catch(Exception e){System.out.println("err = soundThread_errorPlayingSound ("+soundName+")");} Thread.sleep(150); //wait for it to finish, then close while(clip.isActive()){} clip.close(); }catch(Exception e){System.out.println("err= soundThread_error");e.printStackTrace();return;} } …

Member Avatar
0
4
Member Avatar

I have used snippets of code from various sources to compile the following code: import java.awt.*; import java.awt.image.BufferedImage; import java.io.*; import javax.imageio.ImageIO; import javax.swing.JFrame; import java.util.Calendar; public class ShowImage extends Panel { static Calendar cal = Calendar.getInstance(); //gets system time BufferedImage image; private static final String holidaysimages[] = { //declares the image array "santa.jpg", "valentine.jpg", "bunny.jpg", "bunny.jpg", "summer.jpg", "summer.jpg", "summer.jpg", "summer.jpg", "turkey.jpg", "turkey.jpg", "turkey.jpg", "santa.jpg"}; private static final String holidayssounds[] = { //declares the sound array "santa.wav", "valentine.wav", "easter.wav", "easter.wav", "summer.wav", "summer.wav", "summer.wav", "summer.wav", "turkey.wav", "turkey.wav", "turkey.wav", "santa.wav"}; public ShowImage() throws Exception { try { String imageName= holidaysimages[cal.get(Calendar.MONTH)]; //uses the …

Member Avatar
0
2
Member Avatar

I am working on a java application that will display an image and play a sound. It finds the current month and displays the appropriate information. Below is the code that I have been testing (that's why santa is in april) it will not work when trying to play wav or mp3 files but displays the image fine when run without the sound playing code. import java.awt.*; import java.awt.image.BufferedImage; import java.io.*; import java.io.File; import javax.sound.sampled.AudioInputStream; import javax.sound.sampled.AudioSystem; import javax.sound.sampled.Clip; import javax.sound.sampled.DataLine; import javax.sound.sampled.LineEvent; import javax.sound.sampled.LineListener; import javax.imageio.ImageIO; import javax.swing.JFrame; import java.util.Calendar; public class ShowImage extends Panel { static Calendar cal …

0
1
Member Avatar

Hi guys well what I want to do is play a video clip when my program starts. My menu has been set up to how I want it to look. I've researched how to do this but I cannot seem to find anything that I want. All I find is how to create a video player where the user can select their own videos. This is not what I want to do. All I want is my program too play a video clip on start up. Any help or links you can give would be appreciated My code below: [CODE]import …

Member Avatar
0
3
Member Avatar

Hi all Does anyone know of a website where it is possible to download and use the "blanco men, graphics"? what i mean is illustrated if you follow the link: [url]http://www.clipartof.com/gallery/clipart/blanco_man.html[/url] maybe clipart, is what it is called? But in there it costs money, and there are so many good sites that offers free graphics for web development, but i havent been able to locate one that has free "blanco men". Someone know of a site that shares theese graphics for web dev. use?

Member Avatar
0
3

The End.