Unable to remove photo with blocks

Hello, I have a small project and in it I am unable to remove the image, I have to press the button twice for the image to dissapear, in my other projects the image dissapears in one click, any ideas ?

image
image

Thanks !

Hi,

Try loading a small transparent and blank image into Image.Picture.

1 Like

I’ll try, but isn’t it supposed to work this way ? Because it works for the test project I made :confused:

I noticed oddities when working with Image, so I offer the most reliable option in my opinion. Image.Picture = empty string. Are you sure this should work? I’m not sure.

Try assigning a transparency pixel in base64 format to clean the image.

data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA3NCSVQICAjb4U/gAAAABlBMVEX///////9VfPVsAAAAAnRSTlMA/1uRIrUAAAAJcEhZcwAACxIAAAsSAdLdfvwAAAAWdEVYdENyZWF0aW9uIFRpbWUAMTAvMjUvMTiIqf3fAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAAApJREFUCJljYAAAAAIAAfRxZKYAAAAASUVORK5CYII=

1 Like

I’m sorry but how should I insert the code you sent me ? I failed to understand

Paste this code in the text block that is assigned to Image2.Picture. In the Image.Picture property, you can specify not only the name of the image file, but also the code of this image in base64 format. I think this news may seem interesting to you, because it allows you to work with images (save, send, etc.) in text format base64.

%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5

1 Like