How to do betting in C# with roulette (with a betting table)? -


I now have a "betting table", on my picture I have placed a picture box. What I'm trying to do is do this so that when you click on any one square, it prints another image, a poker chip, at the relevant place on the board, this part is not difficult, just it takes time . What I want to know is that I can say where the images are kept. If I can, then it is an easy task to do math for betting, again, it just takes time. Thank you in advance.

~ T-Fox

You can create an array in the background that Represents the segment on the image.

When a user clicks on a segment on the image, you can update the relevant code [i] to represent the chip or assign it to that segment < Number of code> chips .

If you need to refresh it, you can also use this array to reproduce / reproduce your image.

Edit

To follow up, you probably will need to create some sort of correlation table between the defined areas of your image and array . To make a rectangle based on the base and width / height based on the array index.

So if a user clicks on a segment of the image, then you can take cursor X, Y, to see what the rectangle is in it, and then update that array value. .


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -