Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!

praveen livingstone

Greenhorn
+ Follow
since Apr 13, 2008
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by praveen livingstone

I wrote a program where I get the pixel data from a gif image. for loading the image and getting an image object, i used this statement.

URL url = new URL("http://www.wizard.ca/pics/all_roads_desktop_800x600.gif");
Image m_image= Toolkit.getDefaultToolkit().getImage(url);

Is there any other way by which i can create an image object just by giving general path like "d:\pictures\all_roads_desktop_800x600.gif" instead of an url?
14 years ago
@Joe Ess : yea i made mistake, posted without trying the code. now i tried it and its working good. thanks

@Ulf Dittmer : thank you so much
14 years ago
thanks for the reply but the problem is your method would work for text based copying but i want to copy an image file(GIF) from one location to another. Is there any way that i can do this in JAVA?
14 years ago
In a java program, how can I copy a file from a location and past it in another location? Also how can I rename an existing file?
14 years ago
hi guys

Can anyone write a code to convert an One-Dimensional pixel array into an image usint creatImage function?. need urgent for my project. the 1D array is like this int[] oneDPix = new int[imgCols * imgRows * 4];, where imgCols is 800 and imgRows is 600 (i.e) 800 x 600 image.
14 years ago
thanks you, will look into that.

Also is there a class name Element?. I also have this problem in the coding
h[codeUsed++]=new Element(pcode,s[size]);

And this line is showing error on compiling "cannot find symbol"

is there any package/class which i should import? or it is also another user-defined class?
14 years ago
hi guys
I need urgent help with my project. I need to use this code

s[++size]=h[code].suffix;
code=h[code].prefix;

where the data type of "s" is int array whereas I dont know what data type "h" should be. when i tried it as "int", im getting this error int cannot be dereferenced. whats the problem here? should i include any import statements for solving this? what data type must "h" be?

Please help me out. URGENT
[ April 13, 2008: Message edited by: praveen livingstone ]
14 years ago