• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

add rectangle over image and save

 
Ranch Hand
Posts: 202
Android PHP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 PHP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 PHP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And here is ImageView to SD solution.

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

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic