eclipse - How to set background to the outer portion of frame in android using surfaceview -



eclipse - How to set background to the outer portion of frame in android using surfaceview -

hello guys,

my problem how can fill outer portion of frame. need show photographic camera moments within frame only. rest of portion filled color take fill.

here whole background captured photographic camera don't want this.

please suggest me should do?

your true guidance , back upwards additional , efforts highly appreciated 1 time you're sure done this.

you have 2 options if don't want photographic camera preview fill entire area covered surfaceview:

draw on top of surfaceview. use opengl es render photographic camera preview in whatever shape want.

option #1 pretty straightforward. surfaceview surface composited below view ui layer, draw in view appear on top (e.g. bluish circle in image included). draw opaque pixels everywhere don't want photographic camera preview appear. should able utilize surfaceview's view specifying custom ondraw().

option #2 more involved, give more flexibility in how display photographic camera image. "texture camera" activity in grafika demonstrates this.

android eclipse android-camera surfaceview

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -