I create a bitmap from a panel and I want to save this bitmap in a webp image format with the exact size of 512x512.
I tried this code, but don't works. The size the image saved is about 1500x1500.
B4X:
Dim x As B4XView = panel1
Dim b As Bitmap = x.Snapshot
Dim bm As Bitmap
Dim out As OutputStream
out = File.OpenOutput(img_dir, img_name, False)
bm.Initialize3(b)
bm.Resize(512, 512, True)
bm.WriteToStream(out,70,"WEBP")
Hello All, I am saving a snapshot of my form to a PNG file. The form is 1100 x 800 pixels and I have the following in my code: #Region Project Attributes #MainFormWidth: 1100 #MainFormHeight: 800 #End Region Sub AppStart (Form1 As Form, Args() As String) MainForm = Form1...