BMP Processing in VC4

I have the following problem. I want to display the status of 32 “pins” on a panel. The status of all pins changes simultaneously, but in the display, the pins disappear/appear one after another. The pins are BMP files with FillStyle Transparent.

Is there a solution for Visual Components to process the states of the bitmaps simultaneously instead of sequentially?

You’re welcome in advance!
Björn

Key data:
Visual Components 4
Automation Studio 4.12
Screenshot 2025-05-27 145314

Hello Björn,

this isn’t possible with a bitmap. You’d need an image for each combination. That would be beyond the scope. I would insert a 32-character string output beneath your image. I would display either a 0 or a 1 for each pin. You could change this simultaneously.

Regards
Stephan

Okay, that’s a shame it doesn’t work with bitmaps. I ended up drawing the fingers myself using the “Line tool,” and that functions perfectly. Unfortunately, the method falls short when trying to use more detailed pictures of our machine.
Thank you for your prompt reply!

I really depends how you draw these sticks. If you are using visapi then it depends if you draw locally or remotely and if you draw in a drawbox or on the screen buffer.
If you draw locally there should be no issue if you release the handle after you have rendered all sticks.

Without more information it is impossible to say but I would suggest you look into the FillAreas feature. I think this is what you would need. With this you could have a single bitmap with fill areas defined and change the colors over 32 individual datapoints. (up to 60 are possible). Just make sure the fill areas use a single color (no shades) for the flood fill algorithm to catch every pixel.

See AsHelp GUID: 735a1f06-12a6-43a8-97eb-3c9f097898fa