Android Question Bitmaps less bulky for printing purposes ?


Well-Known Member
Licensed User
Longtime User
I am still struggling with printing. PDF printing creates random errors, so I am exploring bitmap printing.

But to get to 300 dpi requires a picture 2550x3300 for a letter size printing. As a result, the resulting default bitmap format chokes the printer.

Would it be possible to use a less memory hungry format, as described here:

It would seem RGB_565 could be the solution.


B4X founder
Staff member
Licensed User
Longtime User
You can use this (untested) code to create a mutable bitmap with different configuration:
Sub Create565Bitmap(Width As Int, Height As Int) As Bitmap
 Dim jo As JavaObject
 Return jo.InitializeStatic("").RunMethod("createBitmap", Array(Width, Height, "RGB_565"))
End Sub
Upvote 0