Canvas can draw a bitmap straight or rotated, but not to flip it vertically or horizontally.
I use this code to do it - pixel by pixel.
I wish for a drawing command (or a better code - this one is very slow).
Thanks.
I use this code to do it - pixel by pixel.
I wish for a drawing command (or a better code - this one is very slow).
Thanks.
B4X:
Dim flipbmp As Bitmap
Dim flipcnvs As Canvas
ProgressDialogShow("....")
flipbmp.Initialize3(clipiv.Bitmap)
flipcnvs.Initialize2(flipbmp)
If flipflag = 1 Then ' flip vertical
For i = 0 To clipiv.Width - 1
For j = 0 To clipiv.Height - 1
flipcnvs.DrawCircle(i,clipiv.Height - j,1,clipcnvs.Bitmap.GetPixel(i,j),True,1)
Next
DoEvents
Next
.....