Open gatilisk opened 2 months ago
DrawStringWrapped draws text at one line Y offset.
text := "hello world" x := 10 y := 10 ax := 0 ay := 0 DrawStringAnchored(dc, text, x, y, ax, ay, .... DrawStringWrapped(dc, text, x, y, ax, ay, ....
The coordinates are the same, but the text position is not the same.
DrawStringWrapped with ay = 0 eventually calls DrawStringAnchored with ay = 1
DrawStringWrapped draws text at one line Y offset.
text := "hello world" x := 10 y := 10 ax := 0 ay := 0 DrawStringAnchored(dc, text, x, y, ax, ay, .... DrawStringWrapped(dc, text, x, y, ax, ay, ....
The coordinates are the same, but the text position is not the same.
DrawStringWrapped with ay = 0 eventually calls DrawStringAnchored with ay = 1