576 byte By
JDragona at 2007-11-27 6:41:39
can anyone provide me with the code to flip an image; I mean by flipping the image simulate a real page flipping, the same thing happens while you are flipping the book.what i real need, is one page book (not two pages), then try to flip this page as the real book (somehow).any hints, you can ...
552 byte By
jrrubioa at 2007-11-27 6:44:27
I need to be able to generate PKCS7 signatures with certificates and private keys stored on Windows. I抳e tried to do that by using SunMSCAPI provider (JDK 1.6u1), but I haven抰 achieved the expected result. My program runs without errors and generates a signature, but the generated signature is ...
Hello all,Need some serious help because of time pressure!Okay, i have a few classes that record video from a webcam or any other device that can record video. What i need to do now is to deploy this on a website? Is this even possible, i mean can i embed it like an applet? By the way i don't ...
815 byte By
vivinda at 2007-11-27 6:45:23
hi my problem :public class img extends Applet{pic kk;kk=new pic(this);----public void init(){ add(kk) ;--}public static void main( String[] args ) {Frame frame = new Frame( "Image" );--}}class pic extends Applet{public void init(){try{ i=getImage(getDocumentBase(),"yu.jpg");}catch(Exception ...
I'm trying to access a hardware codec from JMStudio. Eventually I'd like to be able to do processing on the video feed in java using JMF, but at this point I am not even able to connect to the codec.The codec serves MP4 video in an RTSP feed. I realize JMF does not currently have support for ...
Hi I'd like to know how you check if a RealizedPlayer is stopped or playing someting.//Thanks in advance
i've used and changed code write by andy dyble(jmfcam05s.java), for read stream not from a cam but from a file plain avi, i've put in input a file with different framerate such as 5-10 or more until 100, but the output is always the same for fixed format(like 640*480 ...
G'day Guys, I'm having trouble setting the size of my main JFrame appropriatly for my Maze. I am generating a maze by creating a series of lines in my DrawMaze class (which extends JPanel):g2d.draw(new Line2D.Double(x, y, x, y) This works fine. I then go to sick it in a JFrame in my main ...
Hi all,Can anyone please tell me how can i run my web cam through Web - Browser in java using JMF? ( Live video from camera to Browser )Thanks,Vinayak
Hi guys. Currently i am doing a project based on live video streaming on Ip camera to mobile phone using the emulator of P900. Its kind of like a mobile surveillance thingy where mobile users are able to view their ip cameras at home to the mobile phone. There's also video streaming to the web ...
1258 byte By
jid1a at 2007-11-27 6:49:15
I have looked around and it seems to be a lot of confusion about the point that the corruption occurs. After trying a lot of thing I simplified it to the following code:final BufferedImage bimg = ImageIO.read(file);JComponent mC = new JComponent() {public void paint(Graphics c) ...
I am using the code below to provide file encryption of highly secure data on Sun servers. Below is strictly an example of my encryption / decryption algorithms stripped to the minimum and embedded in main(). The code works fine and performs as it should. Here are a few questions I have for our ...
1283 byte By
cs02lk1a at 2007-11-27 6:51:35
Hi,My name is Costas and I am facing a problem regarding multicasting.I want run an application which forwards multicast data to Unicast clients and I am implementing it in JAVA.I have aproblem because I believe that my laptop does not support multicast. Why I say that? Because a week ago I had ...
7533 byte By
rpalm01a at 2007-11-27 6:52:39
OK. I'm confused. What am I doing wrong in this code that I get a weird null runtime everytime with an odd java result?This was developed on a Windows XP 32bit system using the Java Studio Enterprise 8.1 IDE and JDK 1.5.0_06 (however, whether I run it inside or outside of the IDE I get the ...
607 byte By
screenna at 2007-11-27 6:52:45
Hi! I need some help. I do proccess images and I do like that:DataBufferByte buffer = (DataBufferByte) image.getRaster().getDataBuffer();data = buffer.getData();data2d = new byte[iw][ih];it works fine.but when I want to change the data let's say like this:for (int i = 0; i < iw; i++) {for ...
helloI am developing a commercial application. I need to have voice synthesis.I have tested FreeTTS and got it work.But it has just 2 voices (both male). The process to make a voice or import some seems difficult, and seems I have no control on pitch or tone.I used to use Lernout and Hauspie in ...
Alright, I'm writing a game where you are a soldier that runs around shooting stuff. Pretty simple, right? The game's GUI is where you're looking down on top of the map(non-scrollable) that's made up of about 50 or so obstacles and blocks. What you're doing is you're pressing right to ...
4517 byte By
P57a at 2007-11-27 7:01:22
I try to use Sonar 6 and Beatnik to get a good sequence.My problem is I cant delete piano instrument from the sequence while playing.I use MIDI Yoke 1.74. Sonar 6 and Beatnik 2.1.0.1Java 1.6.0My steps:I. 1. Run Beatnik. 2. Set MIDI Yoke NT:1 as input device. 3. Create new session 4. Load some ...
I have taken the program for AES encrytion and decryption from the site " http://java.sun.com/developer/technicalArticles/Security/AES/AES_v1.html"It is working fine if i haven't change any pat of the program except the input to encrypt. I couldn't able to decrypt data of my own. that is i ...
Does anyone know how to display a waveform for audio files, using Java image or sound apis?cheers
191 byte By
vivinda at 2007-11-27 7:03:12
hi,i want image(picture) in TextField or TextArea ,is ti posible then plz help.& if not then tell any alternative so i can scroll images in Panel or canvasThanks.....
576 byte By
lon22a at 2007-11-27 7:03:13
Hello,Does anyone know if there is a way to draw a line over a JLabel. The scenario is that I have a Jpanel that uses a Gridbaglayout and has an array of JLabels(to display images). I have the need to connect labels and to have the line draw over any labels that it intersects. I know this can ...
Can any one suggest why this exception araises:java.security.spec.InvalidKeySpecException: java.io.EOFException: EOF encountered in middle of object.Thanks,nareshG.
Hi,i'm using avtransmit3 and avreceive3 and it does work.My problem is : it's really slow even if the framerate is allright (30) and not synchronised (audio and video)Hope someone can help me,thanks in advanceJonathan
Hi,In partial of my encryption code using PBEWithMD5AndDES, by giving pass phrase, salt and iteration count, the key was generated. I used the following code to generate the output ciphertext[]:PBEParameterSpec pbeParamSpec = new PBEParameterSpec(salt, iterations);SecretKeyFactory keyFac = ...
1039 byte By
CbbLea at 2007-11-27 7:06:10
Hi!I've made a drawing applet where I can draw different shapes like rectangles, oval, polygon etc on top of a JPanel.Now I want a text tool. I want to be able to serialize an instance of a text object created from this tool so it can be sent through a network. So it can't be a component like ...
Hi All,I am a java programmer and have really limited knowledge about cryptography. I work on JSF . I am basically looking to build a component that will ensure that the password entered by the user on the browser is properly encrypted using Java script and then we should be able to decrypt it ...
429 byte By
JDragona at 2007-11-27 7:09:56
I need to read a PDF and do the following:- determine the number of pages.- determine the chapters (Tree/Hierarchy of pages ).- determine the height and width of the page.- convert each single page to JPG image.is there any clear and simple API that contains these functionsi tried PDFBox, but ...
1644 byte By
vivinda at 2007-11-27 7:11:00
hi.... i have to add images(picture) in Panel .because I have to add more pictures(image), scrollbar (or JScrollPane) will require please help me how to do. U can also help in respect of following program, Thanks.// <applet code="AnImageApplet" width="400" height="400"></applet>// ...
I have been having problems scaling down text to fit inside a 5 by 7 grid as show here: http://forum.java.sun.com/thread.jspa?threadID=5181810Unable to get an answer I decided to simplify the problem I am having so I have come armed with a simple example and images.First off I used the ...
Hello,I have been trying to scale an image to create a thumbnail. The thumbnail image size is around 200*200. The thumbnail is to be rendered on a web browser. My code is:public static byte[] getScaledImage(InputStream imageData) throws IOException {Image origImg = ImageIO.read(imageData);int ...
Hi,how can I detect objects in images using java ?I need to detect movements of an object in consecutive images exported from a video.thank you
Hi. Is it possible to extract multiple Shape objects from an Area object?
public void paintComponent(Graphics g){ Graphics2D g2d = (Graphics2D) g; if(image != null){g2d.scale(scaleFactor,scaleFactor);g2d.setComposite(AlphaComposite.getInstance (AlphaComposite.SRC_OVER, ...
Hi there,I'm trying to draw a simple Swingcomponent over a running video - I read in the Forums for days - nothing helped. I don't know why it still don't work.LIGHTWEIGHT_RENDERER is already usedJLayeredPane is already usedPlease help me - I don't what I can do anywaypublic class ...
I had a program running fine in 1.5, had 3-4ms to draw 45 of the image to the screen, for a large image scaled small before drawing. Now after 1.6, I'm getting 820 ms for the same thing, and -version:1.5 will return it to 3-4. Did something change from 1.5 to 1.6? drawing the loaded image to a ...
Hi,Why do you need ImageIcon in this case?Image origImg = ImageIO.read(imageData);origImg = origImg.getScaledInstance(newImgWidth, newImgHeight,Image.SCALE_AREA_AVERAGING);origImg = new ImageIcon(origImg).getImage();BufferedImage bimage = null;bimage = new BufferedImage(origImg.getWidth(null), ...
662 byte By
basti78a at 2007-11-27 7:38:40
Is there a way to decrypt SHA1? I have encrypted SOAP message's UsernameToken password: String sha1Hash = null; try {MessageDigest md = MessageDigest.getInstance("SHA1");byte[] digest = md.digest(text.getBytes());sha1Hash = new String(Base64.encode(digest)); } catch (Exception e) ...
Hi,I was using the following code:InputStream imageData /*= .initialization code*/;try{byte[] bytes = FileCopyUtils.copyToByteArray(imageData);RenderedOp renderedOp = JAI.create("stream", new ByteArraySeekableStream(bytes)); // byte[]ParameterBlock pb = new ParameterBlock();pb.addSource( ...
Hi,i'm doing a video conferencing project . But Jim (JMStudeo) preference window shows only audio capture device . It doesn't display any video capture devices .I don't know why it doesn't displaying . is it need to be done anything extra to capture video devices using JMF. expecting an ...
654 byte By
rtpa at 2007-11-27 7:41:40
Hi,I'm working on a voip client.I'd like to know if there is a methot to trasmit and receive a RTP flow over the same session.For example: suppose to have a client A and another client B.Client A has: ip 192.168.2.1 and port 22222;Client B has: ip 192.168.2.2 and port 33333;The flow should go ...
226 byte By
psyfenga at 2007-11-27 7:41:54
I want to use some keys, such as arrow keys to change the line length drawn by java3d. And I don't want to use the scale method.How could I deal with it?Thanks,Message was edited by: psyfeng
Given N ordered sample points on a curve, I want to generate a Path2D (or PathIterator) with as few segments as possible that "fits" my curve. The Path2D curve does not need pass through all the sample points, but the max distance, or alternatively the sum of the squares of the distances, ...
Hello i have pb for reading bmp files as ImageIO.read does not support this format. How can i do ?Thank you.
Hi, having returned to basic J3D bits and bobs for a few years now and I'm having some issues loading a texture.After having read through a few tutorials I have put together the following code. It simply creates a QuadArray of 4 points, sets the texture coordinates (which I don't know if I ...
Hi,There are 2 points, (x1,y1) and (x2,y2), a line is drawn before then using the drawline method, what I want to do it have a rectangle which will go from point (x1,y1) to (x2,y2).However, fillrect do not support any angle parameter and I can't find a method to the rotation.See the orange ...
377 byte By
Vassimia at 2007-11-27 7:46:52
I've recently been playing around with the Java3D libraries to try and render a little game. I've figured everything out pretty much and I've gotten to the point where I have a GeometryArray for each room of the level but the problem is, when I play, the textures appear on the outside of the ...
Hi All, I am looking for a cryptography solution which I shall be using to encrypt the password being sent from the browser to the middle tier. My requirements are as follows :1. I need to only send the traffic in one way ie from browser to the java tier. So I guess I only need to generate 1 ...
Hi to all. I'm new to cryptography, and although I've been reading about it and started trying to program with it I'm still having dificulty on grasping the concept of it.I intend to encryp (and decrypt) data (2 varchar columns) from a table in a database. I'm developing a new web page of a ...
Hello,I have downloaded the following code for encryption with AES standards.I noticed that the byte array is getting converted to hexa. Can anyone please guide me how to get a bye array back of the hexa value.Also, didn't understand why is the zero getting appended while converting to a ...