ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Adding photos to command buttons (https://www.excelbanter.com/excel-programming/454437-adding-photos-command-buttons.html)

RG III

Adding photos to command buttons
 
Whenever I add 24x24 or 16x16 bitmaps (.bmp files) to command buttons the images always get distorted and lose their colors. What is an ideal file size and format for command buttons? Ideally, I'd like there to be no image distortion or loss of color when using images on top of command buttons.

-Robert

GS[_6_]

Adding photos to command buttons
 
Whenever I add 24x24 or 16x16 bitmaps (.bmp files) to command buttons the
images always get distorted and lose their colors. What is an ideal file
size and format for command buttons? Ideally, I'd like there to be no image
distortion or loss of color when using images on top of command buttons.

-Robert


Images on buttons are usually used on toolbars where the buttons are square and
so match the image size without distortion.

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion

Peter T[_8_]

Adding photos to command buttons
 

"RG III" wrote in message
Whenever I add 24x24 or 16x16 bitmaps (.bmp files) to command buttons the
images always get distorted and lose their colors. What is an ideal file
size and format for command buttons? Ideally, I'd like there to be no image
distortion or loss of color when using images on top of command buttons.

-Robert

Assuming(?) you're talking about MSForms type CommandButtons (on a sheet or
userform) normally there shouldn't be any distortion or loss of colours as
you describe, and no special requirement for size. Can you upload a testfile
and separately a source image.

Peter T



Peter T[_8_]

Adding photos to command buttons
 

"RG III" wrote in message
Whenever I add 24x24 or 16x16 bitmaps (.bmp files) to command buttons the
images always get distorted and lose their colors. What is an ideal file
size and format for command buttons? Ideally, I'd like there to be no image
distortion or loss of color when using images on top of command buttons.

-Robert

Assuming(?) you're talking about MSForms type CommandButtons (on a sheet or
userform) normally there shouldn't be any distortion or loss of colours as
you describe, and no special requirement for size. Can you upload a test
file
and separately a source image.

Peter T




RG III

Adding photos to command buttons
 
On Friday, September 20, 2019 at 9:08:14 AM UTC-7, GS wrote:

Images on buttons are usually used on toolbars where the buttons are
square and so match the image size without distortion.


Yes, my images are square and they fit on buttons, but the colors often come out wrong even when I choose 16-color bitmaps. I was just wondering if there was an ideal file format for button images?

RG III

Adding photos to command buttons
 
On Friday, September 20, 2019 at 11:01:09 AM UTC-7, Peter T wrote:

Assuming(?) you're talking about MSForms type CommandButtons (on a sheet or
userform) normally there shouldn't be any distortion or loss of colours as
you describe, and no special requirement for size. Can you upload a test
file and separately a source image.


Yes, I'm using images on Command Button forms. I've tried 16-color and 256-color bitmap (.bmp) files, but they all had some distortion and color loss. I wonder if it's related to the file type and bitmap size? I don't have the actual bitmaps right now, but I'll try to create a few samples and post them soon.

Ramon-México

Adding photos to command buttons
 
El viernes, 20 de septiembre de 2019, 5:06:57 (UTC-5), RG III escribió:
Whenever I add 24x24 or 16x16 bitmaps (.bmp files) to command buttons the images always get distorted and lose their colors. What is an ideal file size and format for command buttons? Ideally, I'd like there to be no image distortion or loss of color when using images on top of command buttons.

-Robert


Im used pictures .ico


All times are GMT +1. The time now is 12:25 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com