Posted 26 December 2017, 11:39 am EST
C1MainMenuItems with an image with the pixel in the bottom left corner set to black will set all black pixels in the image to transparent. Since the transparent color can be set in the C1CommandHolder, there should be no need for this “feature”.
I create all my menu item images on the fly from svg files which allows for easy scaling and color changes. I added the below sub to slightly change the color of the pixel, and it appears to work.
Private Sub kludgeFixPixel(ByRef bm As Bitmap)
Dim pixelColor = bm.GetPixel(0, bm.Height - 1)
Dim redValue = IIf(pixelColor.R = 0, 1, pixelColor.R - 1)
Dim newPixelColor = Color.FromArgb(pixelColor.A, redValue, pixelColor.G, pixelColor.B)
bm.SetPixel(0, bm.Height - 1, newPixelColor)
End Sub