Closed hlima closed 3 years ago
Progress: now builds with the latest gioui, but images are broken.
Images fixed.
working great again. Thanks
unfortunately image is not behaving properly ... The positioning does not seem to be correct nor the size..
@hlima can you show the code that is not working?
for example use
canvas.CenterImage("earth.jpg", 50, 50, int(canvas.Width*0.06), int(canvas.Height*0.09), 100)
The code I am using is similar to the above. This should draw the image in the canvas center and have it proportionally resized. It is slightly off center and the resize does not seem to work.
I see, suggestion: use the natural width, and height, and resize via the scale.
using scale seems to solve the resizing. thanks. Position is still not working. seems to be better when the canvas size is increased. may be it is a rounding error?
yes, I plan to work on that soon.