bmp image format does not display well on menu

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
jparada
Posts: 238
Joined: Fri Jan 23, 2009 5:18 pm

bmp image format does not display well on menu

Post by jparada » Tue Feb 03, 2009 8:58 pm

Translated by Google

Hi,

In a menu I am trying to use images in bmp format (is the only image format that accept for menu?), But despite having magenta background images and so I tried to green is not the filter that is transparent there's something to be done to the image is displayed correctly.

Thanks

Greetings
Javier

User avatar
Roberto Lopez
HMG Founder
Posts: 3919
Joined: Wed Jul 30, 2008 6:43 pm
Has thanked: 15 times
Been thanked: 140 times

Post by Roberto Lopez » Tue Feb 03, 2009 11:00 pm

jparada wrote:Translated by Google

Hi,

In a menu I am trying to use images in bmp format (is the only image format that accept for menu?), But despite having magenta background images and so I tried to green is not the filter that is transparent there's something to be done to the image is displayed correctly.

Thanks

Greetings
Javier
HMG uses SetMenuItemBitmaps function to show images in menu items.

Official reference about this function is here:

http://msdn.microsoft.com/en-us/library ... S.85).aspx

The short answer, based on my own experience is that for Windows XP and earlier, 2 color bitmaps works well. For Vista, 16 color bitmaps can be used without problem.

Regards,

Roberto.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)

jparada
Posts: 238
Joined: Fri Jan 23, 2009 5:18 pm

Post by jparada » Wed Feb 04, 2009 4:58 pm

Thanks for responding,

Apparently I managed to move around with the images now if you took the filter for the magenta background with transparency, but despite that, when viewed on the menu if the image is filtered and "transparent", but when navigate through the options is a variation of color. (annex picture for reference, I feel sorry for the image size, but I can see it well)

Why is this happening, also annexed the image files of evidence that I am using.

I appreciate any comments or suggestions.

Regards,
Javier
Attachments
Imgs.zip
(10.73 KiB) Downloaded 147 times

Post Reply