as Bitmap
Creates an android.graphics.Bitmap based on provided ByteArray that contains image.
Parameters
Image data as ByteBuffer.
Image width in px.
Image height in px.
Converts a YUV 420 to ByteBuffer if possible.
Return
null if conversion fails.
Parameters
Image format
The buffer that keeps the image.
The width of the image.
The height of the image.
See also
Creates a Bitmap based on input buffer with format Bitmap.Config.ARGB_8888
Parameters
Input buffer.
Image width.
Image height.
Parameters
The input image.
Takes a Image by id from ImageDatabase and converts it to a Bitmap.
Parameters
The image id.
Converts an image to Bitmap
Converts SignpostImage as an Bitmap.
Return
pair of result width, actual bitmap. Note. if width is 0 then it will be auto calculated and returned in result pair.
Parameters
Desired width. If 0 it a width will be provided as result.
Desired height. Can't be 0.
Converts RoadInfoImage as an Bitmap.
Return
pair of result width, actual bitmap. Note. if width is 0 then it will be auto calculated and returned in result pair.
Parameters
Desired width. If 0 it a width will be provided as result.
Desired height. Can't be 0.
Converts input LaneImage to Bitmap
Return
Pair