MCPcopy Create free account
hub / github.com/buggins/coolreader / drawImage

Method drawImage

android/src/org/coolreader/crengine/DocView.java:353–357  ·  view source on GitHub ↗

Draws currently opened image to bitmap. @param bitmap is destination bitmap @param imageInfo contains image position and scaling parameters. @return true if current image is drawn successfully.

(Bitmap bitmap, ImageInfo imageInfo)

Source from the content-addressed store, hash-verified

351 * @return true if current image is drawn successfully.
352 */
353 public boolean drawImage(Bitmap bitmap, ImageInfo imageInfo) {
354 synchronized(mutex) {
355 return drawImageInternal(bitmap, DeviceInfo.EINK_SCREEN ? 4 : 32, imageInfo);
356 }
357 }
358
359 /**
360 * Close currently opened image, free resources.

Callers 1

prepareImageMethod · 0.45

Calls 1

drawImageInternalMethod · 0.95

Tested by

no test coverage detected