From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
Just to get a better understanding of your application, I'd like to ask a few questions.
1.) Is the whole billiard table represented as a bitmap image, with a certain color representing the ball? 2.) After you create the bitmap using GetBitmapFromFile, what do you do with it? In other words, which functions are you calling and passing the bitmap ID to? 3.) Are you able to pad the image with extra blank space to make the full image a square, such that the whole table is shown onscreen?
Your bitmap can contain transparent pixels This way, you can "hide" the corners of your square bitmap.
If you're creating the image in some image editor, you should create a .png or an .ico image, which are image types that support some form of transparency.
If you're creating the bitmap programmatically in CVI, using NewBitmapEx or SetBitmapDataEx, read carefully the help for the Mark and/or Alpha parameters.