We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am trying to capture map rendering as a Bitmap using the following code snippet:
com.carto.ui.MapView.mapRenderer.captureRendering(object : RendererCaptureListener() { override fun onMapRendered(bitmap: com.carto.graphics.Bitmap) { super.onMapRendered(bitmap) val bitmapFile = File(context.applicationContext.filesDir, "bitmap.bmp") ByteArrayInputStream(bitmap.compressToPNG().data).copyToFile(bitmapFile) } }, true)
The above code snippet works and provides a PNG file.
However, if I replace compressToPNG() with compressToInternal(), then the above capture fails and the resulting file cannot be opened.
compressToPNG()
compressToInternal()
Any ideas as to why compressToInternal() is not working?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I am trying to capture map rendering as a Bitmap using the following code snippet:
The above code snippet works and provides a PNG file.
However, if I replace
compressToPNG()
withcompressToInternal()
, then the above capture fails and the resulting file cannot be opened.Any ideas as to why
compressToInternal()
is not working?The text was updated successfully, but these errors were encountered: