Michael Mas

Greenhorn
+ Follow
since Feb 17, 2006
Merit badge: grant badges
For More
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 Michael Mas

I write and run on my PC a Java program that loads jpg images using BufferedImage and pixel grabber , I change some pixel values, I draw some lines and a histogram ...nothing special. The problem is that now both the computers I work on, after a couple of weeks programming, are getting REALLY slow even when I dont run Java and Im just trying to open word documents or sth similarly simple...
I guess Im doing sth wrong with memory allocation ...
Are there any simple lines that I should add to my code in order to balance the situation..?

Thank you very much
18 years ago
GrayExample looks very interesting but have to convert the int array with pixel intensities to byte[] ...
Is there something simple to do about it ?

Thanks a lot
18 years ago
What do you mean by masking ... rgb & 0x255 ?

do i need to set Alpha ?

Thanks Ulf for your help.
18 years ago
The problem was finally solved by turning everything into RGB format.

The final result is ok but I think that I waste system resources by using RGB color format instead of gray pixel intensity - an int from 0-255 ...

I would really like to listen to any ideas...
18 years ago
yes I know about these get/setRGB methods but since my image is gray it shouldn't give another type of colour-not an RGB?

And mainly, I have the pixel intensities in int values ... even if it returns RGB ...do you have any ideas on how can I change the gray int 0-255 values to RGB ..?

Thank you very much
18 years ago
Hello there,

I have a buffered Image of TYPE_BYTE_GRAY and I would like to get the pixel intensity values(0-255) , change them and create a new bufferedImage.

Any ideas?

I spent plenty of time on this and I would be really greatfull to get a reply :-)
18 years ago
Hello there,

I have a gray (jpg) image and I would like to get the intensity(0-255) from each pixel , change it , and create a new gray Buffered Image version of this image.
I dont use any special APIs , just 1.4 Java version ...

Thank you very much,

Mike
18 years ago
Im trying to create a new bufferedImage of TYPE_BYTE_GRAY from
a 2D array with (gray) pixel's intensity (0-255) .

I couldnt use the raster etc stuff succesfully because I have
an int[x][y] array and seems that it looks for byte input...


any ideas ?

Thanks a lot
18 years ago