Delete an existing picture
- wolfgang123
- Topic Author
- Offline
- Posts: 3
Hello,
Is it possible to delete a picture, which I have inserted before? I have tried some commands, but it was not ?possible to delete this picture.
Thanks in advance?
Please Log in or Create an account to join the conversation.
Are you referring to a post you made in the past?
Please Log in or Create an account to join the conversation.
- wolfgang123
- Topic Author
- Offline
- Posts: 3
What do you mean exactly?
Please Log in or Create an account to join the conversation.
What kind of picture do you want to delete?
Please Log in or Create an account to join the conversation.
- wolfgang123
- Topic Author
- Offline
- Posts: 3
It is a png-file or a jpg-file. I want to programm a game, which shows you, if you win, "congratulation". Furthermore this pricture (congratulation) should go away, if I push a certain button...
Please Log in or Create an account to join the conversation.
To display messages in 2D, you can either use a label widget (cLabel) to display a line of text. See example 03-analytics for instance. Or otherwise you can also use a bitmap image as you suggested (cBitmap). See example 06-images.
In both cases, to show or hide the image/label, simply call the following method:
// hide bitmap image
myBitmap->setShowEnabled(false);
// show bitmap image
myBitmap->setShowEnabled(true);
Please Log in or Create an account to join the conversation.