Picturebox clear image

How can i clear the picturebox image after

pb.addImage(imgb64,1,1,150,100) 'imgb64 is base64 string


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.