I'm using the API function SetMenuItemBitmaps to display bitmaps in menus. What's the maximum bitmap size allowed?
Printable View
I'm using the API function SetMenuItemBitmaps to display bitmaps in menus. What's the maximum bitmap size allowed?
bump
16x16 pixels.
ThnxQuote:
Originally Posted by RobDog888
Wait a minute, I've tried 16x16 and it is displayed clipped...
Also, is there any limitation in the bit depth or something?
It shouldnt be clipped. I think the limit is 256 colors
Some of my bitmaps had been stored as 24-bit but after changing it to 256 colors they still got clipped.
Then I have found this in a Chinese web (though the code seems familiar from VB Wire),
http://www.yzmet.gov.cn/VB1/article/...graphic/02.txt
See after the variable declarations a statement about 13 x 13 pixels being the maximum allowed size.
That's what I used 13x13, anything bigger gets cut off and can't be seen.Quote:
Originally Posted by krtxmrtz