How can i clear the picturebox image after
pb=frtrxdt_pbimg.getContext("2d")
pb.addImage(imgb64,1,1,150,100) 'imgb64 is base64 string
Thanks
Teo
How can i clear the picturebox image after
pb=frtrxdt_pbimg.getContext("2d")
pb.addImage(imgb64,1,1,150,100) 'imgb64 is base64 string
Thanks
Teo
PictureBox is a wrapper around the HTML Canvas element.
When you add content to a PictureBox, whether its text, images or shapes, it is drawn on the canvas with the other content. It’s all merged together, so the image is no longer a separate entity.
Did you want to clear the entire PictureBox? Or just the area with the image? The clearRect
function is probably what you need.