Android: Best Way to Programmatically Make an Image and Save it to a Bitmap?
问题 I have an app that connects to an external printer device and I need to take some user data and dynamically make an image and print it. The printer API requires a bitmap as input for printing. Note that I never want to draw the programmatically created image to the screen; the generation and printing of the image have no visible UI, it happens in the background. So far I've considered doing it one of the following ways: 1) Make a canvas, never call the draw functions, translate it to a bitmap