Using .png images for ACToolbar icons. Produce the bitmapdrawables with this code:
These images are simple greyscale images and sometimes I would like to alter the colour, for example the attached file I would like to change the black to green. I could alter the file with a graphic editor, but I would like to make this change in the bitmap.
Any suggestions how to do this?
RBS
B4X:
Sub BitmapDrawableFromFile(strFolder As String, strFile As String) As BitmapDrawable
Dim bmp As Bitmap
Dim bmpd As BitmapDrawable
bmp = LoadBitmap(strFolder, strFile)
bmpd.Initialize(bmp)
Return bmpd
End Sub
These images are simple greyscale images and sometimes I would like to alter the colour, for example the attached file I would like to change the black to green. I could alter the file with a graphic editor, but I would like to make this change in the bitmap.
Any suggestions how to do this?
RBS