This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
hi, i'm displaying a jpeg image from the resoruce file.also i want to make it as a black and white or negative image after loading it into the form.simply saying i want to some image processing with that image.i display that image in canvas and trying to do this.can anyone help me to do the imageprocessing .i'am unclear to use the getRGB of method with that.if any one have sample code for imageprocessing in jpeg then please help me with that.and also tell me how to calculate scalength and offset for using getRGB method thanx in advance laxmi
I don't know what kind of image processing you required. If you wnat to draw some text on the image then first draw the image on the screen and then draw the string on same canvas on appropiate position, If u marge some tow or more image then u need to water mark process and I think it best to in use server side then display on canvas.
And getRGB method return the image RGB pixels array, u can also place ur pixcel but for this u need to some difficult calculation... using pixel matrix .The getRGB method only work for MIDP 2.0 device
You can also use setGrayScale(int) to draw an image in white or black [ June 23, 2005: Message edited by: Maddi Ranjan ]
Joined: Jun 07, 2005
thank u friend, if u don't mind can u give me a sample code to use setgrayscale method with image i have drawn in the canvas.here i attach my codings also