on delphi/android how to draw a TbitmapSurface on a Canvas?

  

Under delphi (and under firemonkey/android), What is the most fastest way to draw on a Tcanvas a TbitmapSurface ?

I try to use TTexture like MyTexture.Assign(aBitmapSurface) and later do TCustomCanvasGpu(Canvas).DrawTexture but MyTexture.Assign(aBitmapSurface) have 2 main drawbacks :

it’s must be done inside the main thread (i don’t know why else we have black screen)
it’s relatively slow operation

Comments are closed.