@Override public Bitmap extentSnapshot(int spaceAround, boolean transparent) { final GiCoreView v = mView.coreView(); int doc, gs; synchronized (v) { doc = v.acquireFrontDoc(); gs = v.acquireGraphics(mView.viewAdapter()); } try { return extentSnapshot(doc, gs, spaceAround, transparent); } finally { GiCoreView.releaseDoc(doc); v.releaseGraphics(gs); } }
@Override public Bitmap snapshot(boolean transparent) { final GiCoreView v = mView.coreView(); int doc, gs; synchronized (v) { doc = v.acquireFrontDoc(); gs = v.acquireGraphics(mView.viewAdapter()); } try { final LogHelper log = new LogHelper(); final Bitmap bitmap = mView.snapshot(doc, gs, transparent); log.r(bitmap != null ? bitmap.getByteCount() : 0); return bitmap; } finally { GiCoreView.releaseDoc(doc); v.releaseGraphics(gs); } }