The following code creates a JPG file with white background :
Why replacing statement
with
you do not create a transparent JPG files with white background ?
Thanks in advance.
B4X:
Dim C As Canvas
Dim Rect1 As Rect
Dim BMPM As Bitmap
BMPM.InitializeMutable(W,H)
C.Initialize2 (BMPM)
Rect1.Initialize(0,0,W-1,H-1)
C.DrawRect(Rect1,Colors.RGB(255,255,255),True,100dip)
Dim Out As OutputStream
Out = File.OpenOutput (File.DirRootExternal , "test.jpg",False )
C.Bitmap.WriteToStream (Out,100,"JPEG")
Out.Close
Why replacing statement
B4X:
C.DrawRect(Rect1,Colors.RGB(255,255,255),True,100dip)
B4X:
C.DrawRect(Rect1,Colors.ARGB(0,255,255,255),True,100dip)
Thanks in advance.