|
-
Sep 29th, 2008, 02:08 PM
#1
Size of bitmaps in menus
I'm using the API function SetMenuItemBitmaps to display bitmaps in menus. What's the maximum bitmap size allowed?
Last edited by krtxmrtz; Sep 30th, 2008 at 08:22 AM.
Lottery is a tax on people who are bad at maths
If only mosquitoes sucked fat instead of blood...
To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)
-
Sep 30th, 2008, 02:19 AM
#2
Re: Size of bitmaps in menus
Lottery is a tax on people who are bad at maths
If only mosquitoes sucked fat instead of blood...
To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)
-
Sep 30th, 2008, 02:23 AM
#3
Re: Size of bitmaps in menus
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Sep 30th, 2008, 02:42 AM
#4
Re: Size of bitmaps in menus
 Originally Posted by RobDog888
16x16 pixels.
Thnx
Lottery is a tax on people who are bad at maths
If only mosquitoes sucked fat instead of blood...
To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)
-
Sep 30th, 2008, 08:24 AM
#5
Re: Size of bitmaps in menus
Wait a minute, I've tried 16x16 and it is displayed clipped...
Also, is there any limitation in the bit depth or something?
Lottery is a tax on people who are bad at maths
If only mosquitoes sucked fat instead of blood...
To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)
-
Sep 30th, 2008, 10:05 AM
#6
Re: Size of bitmaps in menus
It shouldnt be clipped. I think the limit is 256 colors
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Sep 30th, 2008, 12:33 PM
#7
Re: Size of bitmaps in menus
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.
Lottery is a tax on people who are bad at maths
If only mosquitoes sucked fat instead of blood...
To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)
-
Sep 30th, 2008, 12:57 PM
#8
Re: Size of bitmaps in menus
 Originally Posted by krtxmrtz
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|