Canvas Library Need a Wrapper (Willing to pay)

ocalle

Active Member
Licensed User
Longtime User
Hello, I need some commands on Android Canvas Library, who can do that. PM me

Thanks
 

ocalle

Active Member
Licensed User
Longtime User
Nope, Thank you i let check, need do step back when i draw a bitmap, im working on a type floorplan app, DEREZ and Erel helped me so much but cant be noisy with them.
 

derez

Expert
Licensed User
Longtime User
The canvas libraries will not give you the undo function.
if you want to be able to go back many steps then save each drawing bitmap as a file with a number before drawing:
When going back load the previous file and reduce the count:
B4X:
Sub Globals
    Private canvas1 As Canvas
    Private count As Int = 0
End Sub

....
' draw, save the bitmap before drawing

' go back when you need using sub back_draw

....
Sub save_drawing
    Dim Out As OutputStream
    Out = File.OpenOutput(File.DirRootExternal, "save" & count & .png", False)
    canvas1.Bitmap.WriteToStream(Out, 100, "PNG")
    Out.Close
    count = count + 1
End Sub

Sub back_draw
    count = Max(count - 1, 0)
    canvas1.Bitmap.Initialize(File.DirRootExternal, "save" & count & ".png")
End Sub
 

ocalle

Active Member
Licensed User
Longtime User
many thanks bookmarked!:):)
 
Top