Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Image control with PNG support

Hi,

I have an Excel application with all the forms/controls background
color set to ButtonFace (system color). I have a logo in a PNG format
(with background color transparent) that I need to put on the form. But
ImageControl does not support PNG and the other types (BMP; JPG) don't
support transparency.

What is a possible solution? Is there a control that supports PNG,
already embedded in Windows XP/Office 2003? I need to distribute the
application so I would prefer not to depend on third party libraries...

thanks very much

regards, dejan

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Image control with PNG support

The GIF format supports transparency which you can place on a form or in an
image control.

NickHK

"Dejan" wrote in message
ups.com...
Hi,

I have an Excel application with all the forms/controls background
color set to ButtonFace (system color). I have a logo in a PNG format
(with background color transparent) that I need to put on the form. But
ImageControl does not support PNG and the other types (BMP; JPG) don't
support transparency.

What is a possible solution? Is there a control that supports PNG,
already embedded in Windows XP/Office 2003? I need to distribute the
application so I would prefer not to depend on third party libraries...

thanks very much

regards, dejan



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Image control with PNG support

Thanks,

This is true but GIF supports only 256 colors, as somebody told me, and
my logo has more than 1000. Besides, GIF does not support antialiasing
that PNG does....

dejan

NickHK je napisao/la:
The GIF format supports transparency which you can place on a form or in an
image control.

NickHK

"Dejan" wrote in message
ups.com...
Hi,

I have an Excel application with all the forms/controls background
color set to ButtonFace (system color). I have a logo in a PNG format
(with background color transparent) that I need to put on the form. But
ImageControl does not support PNG and the other types (BMP; JPG) don't
support transparency.

What is a possible solution? Is there a control that supports PNG,
already embedded in Windows XP/Office 2003? I need to distribute the
application so I would prefer not to depend on third party libraries...

thanks very much

regards, dejan


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Image control with PNG support

Do you really need 256 colours and anti aliasing for a logo ?
Surely it's not taking up half the userform ?

If you really need it though, maybe display in a webbrowser control.
Does the Rich Text Box support PNG images ?
Or find a custom Active X control on the Web.

NickHK

"Dejan" wrote in message
oups.com...
Thanks,

This is true but GIF supports only 256 colors, as somebody told me, and
my logo has more than 1000. Besides, GIF does not support antialiasing
that PNG does....

dejan

NickHK je napisao/la:
The GIF format supports transparency which you can place on a form or in

an
image control.

NickHK

"Dejan" wrote in message
ups.com...
Hi,

I have an Excel application with all the forms/controls background
color set to ButtonFace (system color). I have a logo in a PNG format
(with background color transparent) that I need to put on the form.

But
ImageControl does not support PNG and the other types (BMP; JPG) don't
support transparency.

What is a possible solution? Is there a control that supports PNG,
already embedded in Windows XP/Office 2003? I need to distribute the
application so I would prefer not to depend on third party

libraries...

thanks very much

regards, dejan




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Image control with PNG support

Maybe this will help:
See the LoadPiictureGDI at http://www.bmsltd.ie/Excel/SBXLPage.asp

NickHK

"Dejan" wrote in message
oups.com...
Thanks,

This is true but GIF supports only 256 colors, as somebody told me, and
my logo has more than 1000. Besides, GIF does not support antialiasing
that PNG does....

dejan

NickHK je napisao/la:
The GIF format supports transparency which you can place on a form or in

an
image control.

NickHK

"Dejan" wrote in message
ups.com...
Hi,

I have an Excel application with all the forms/controls background
color set to ButtonFace (system color). I have a logo in a PNG format
(with background color transparent) that I need to put on the form.

But
ImageControl does not support PNG and the other types (BMP; JPG) don't
support transparency.

What is a possible solution? Is there a control that supports PNG,
already embedded in Windows XP/Office 2003? I need to distribute the
application so I would prefer not to depend on third party

libraries...

thanks very much

regards, dejan




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA image control Piotr Lipski Excel Programming 2 June 22nd 06 10:24 AM
Programatically control picture property of Image control Brassman[_5_] Excel Programming 5 May 24th 05 09:32 PM
Image control ojv[_2_] Excel Programming 2 October 13th 04 12:33 PM
Displaying a Tif image in the Image Control Neil Excel Programming 1 September 21st 04 12:56 AM
copy shape image into image control Luc Benninger Excel Programming 2 July 15th 04 11:14 AM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"