• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

add rectangle over image and save

 
ibrahim yener
Ranch Hand
Posts: 202
Android Java PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to add rectangle over my image in SD. Currently, i am taking picture and save it into SD but i have no idea how to do that.
All i want to do is open picture from SD and add rectangle and save it again.
this is my take picture and save code



I have tried to take screenshot of SurfaceView but i end up full of blank space around of picture.
I am attaching my Screenshot. As you may see left and right side of image has huge black line but i wanted just blackline top of image. So, i stop using that code.

I really appreciate for any help.

Regards
saiten_1414138417[1].jpg
[Thumbnail for saiten_1414138417[1].jpg]
 
ibrahim yener
Ranch Hand
Posts: 202
Android Java PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay guys i have solved problem.

Hope this solution helps somebody else.



However, my Bitmap saving problem still exists and i am on my way to find out how to save Bitmap.
 
ibrahim yener
Ranch Hand
Posts: 202
Android Java PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And here is ImageView to SD solution.

Following code is not belong to me. I found somewhere in stackoverflow.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic