Hello
I can not solve the problem of truncation of the page when I create image from web view.
is only generated image of the first page !? I saw that there are other identical reports and did various tests, but I could not find a way to solve the problem.
Can anyone help me please.
Thank you
I can not solve the problem of truncation of the page when I create image from web view.
is only generated image of the first page !? I saw that there are other identical reports and did various tests, but I could not find a way to solve the problem.
Can anyone help me please.
B4X:
Example 1
Dim bmp As Bitmap = mWV.CaptureBitmap()
Dim out As OutputStream
out = File.OpenOutput(mPathSavedReport, mFileSavedReport, False)
bmp.WriteToStream(out, 100, "PNG")
out.Close
Example 2
Dim Canvas1 As Canvas
Dim Bitmap1 As Bitmap
Bitmap1.InitializeMutable(100dip, 100dip)
Canvas1.Initialize2(mWV.CaptureBitmap()) 'this canvas will draw on the activity background
SetDensity(Canvas1.Bitmap, 300)
'Canvas1.DrawTextRotated("Pincode: 1234567", 150dip, 250dip, Typeface.DEFAULT_BOLD, 18, Colors.Black, "CENTER", -90)
Dim Out As OutputStream
Out = File.OpenOutput(File.DirRootExternal, "Test.png", False)
Canvas1.Bitmap.WriteToStream(Out, 100, "PNG")
Out.Close
Thank you