how can i eliminate BLACK OUTLINE OF the bitmap image?

All your problems with Audio, Video and Images.

how can i eliminate BLACK OUTLINE OF the bitmap image?

Postby anismax » Sat May 15, 2010 12:44 am

I try to Get back a screen shot with position of mouse by socket and show it on android in a view Image but the probleme it is that there is a black outline at the end of the capture.
There is somebody can help me to eliminate this black outline in the end of the bitmap?

code emmision java:

Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
Rectangle rect = new Rectangle(MouseInfo.getPointerInfo().getLocation().x - (dim.width / 2), MouseInfo.getPointerInfo().getLocation().y - (dim.height / 2), dim.width, dim.height);
BufferedImage capt = this.robot.createScreenCapture(rect);

code android:

this.Bitmap = BitmapFactory.decodeByteArray(buffer.data, 0, buffer.data.length);
imageView.setImageBitmap(imageview.Bitmap);
anismax
Freshman
Freshman
 
Posts: 6
Joined: Fri May 14, 2010 5:10 pm

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 8 guests