Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Show picture with transparencies in Image

Hello everybody,

I am having the following problem, I have got stuck after trying a lot
of things...:
I would like to show a gif image with some transparent areas in an Image
control on top of another image in the same Image control.

I.e: The Image control already contains an picture and I would like this
picture to stay visible in the transparent areas of the superposed
picture. I.e.: The superposed picture should only cover those areas of
the underlying picture where it is not transparent.

Sounds logical, but unfortunately Excel covers the whole area of the
Image control with a gray background to the picture. I.e., the
transparent areas are filled with gray, instead of letting the
underlying picture shine through.

I am not familiar with the use of API functions, but I have heard about
the TransparentBlt function which allows to set a transparent color.
Does this make sense in my case?

Thanks a lot for your help!
Jens
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 119
Default Show picture with transparencies in Image

is this give you some hits?

http://support.microsoft.com/default...kb;en-us;94961



"Jens Meier" wrote:

Hello everybody,

I am having the following problem, I have got stuck after trying a lot
of things...:
I would like to show a gif image with some transparent areas in an Image
control on top of another image in the same Image control.

I.e: The Image control already contains an picture and I would like this
picture to stay visible in the transparent areas of the superposed
picture. I.e.: The superposed picture should only cover those areas of
the underlying picture where it is not transparent.

Sounds logical, but unfortunately Excel covers the whole area of the
Image control with a gray background to the picture. I.e., the
transparent areas are filled with gray, instead of letting the
underlying picture shine through.

I am not familiar with the use of API functions, but I have heard about
the TransparentBlt function which allows to set a transparent color.
Does this make sense in my case?

Thanks a lot for your help!
Jens

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Show picture with transparencies in Image

"Leung" schrieb
is this give you some hits?

http://support.microsoft.com/default...kb;en-us;94961


Leung,

thanks for the hint. I've printed it out and will have a look at it; I am
curious whether I'll be able to adapt it to VBA and my Excel application...
:-)

Jens


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Show picture with transparencies in Image

Jens,
As a different tack, if you can place the pictures directly on a worksheet,
you can set:
With ActiveSheet.Shapes("Picture 1").ShapeRange.PictureFormat
.TransparentBackground = msoTrue
.TransparencyColor = RGB(12, 124, 184)
End With

And then stack them on top of each other.

NickHK


"Jens Meier" wrote in message
...
Hello everybody,

I am having the following problem, I have got stuck after trying a lot
of things...:
I would like to show a gif image with some transparent areas in an Image
control on top of another image in the same Image control.

I.e: The Image control already contains an picture and I would like this
picture to stay visible in the transparent areas of the superposed
picture. I.e.: The superposed picture should only cover those areas of
the underlying picture where it is not transparent.

Sounds logical, but unfortunately Excel covers the whole area of the
Image control with a gray background to the picture. I.e., the
transparent areas are filled with gray, instead of letting the
underlying picture shine through.

I am not familiar with the use of API functions, but I have heard about
the TransparentBlt function which allows to set a transparent color.
Does this make sense in my case?

Thanks a lot for your help!
Jens



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Show picture with transparencies in Image

"NickHK" schrieb im Newsbeitrag
As a different tack, if you can place the pictures directly on a

worksheet,
you can set:
With ActiveSheet.Shapes("Picture 1").ShapeRange.PictureFormat
.TransparentBackground = msoTrue
.TransparencyColor = RGB(12, 124, 184)
End With

And then stack them on top of each other.


NickHK,

is there a possibility to make this work without putting the pictures on a
worksheet, but rather display them on a userform?

Thanks!
Jens




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Show picture with transparencies in Image

Jens,
No, this is only for worksheets.

NickHK

"Jens Meier" wrote in message
...
"NickHK" schrieb im Newsbeitrag
As a different tack, if you can place the pictures directly on a

worksheet,
you can set:
With ActiveSheet.Shapes("Picture 1").ShapeRange.PictureFormat
.TransparentBackground = msoTrue
.TransparencyColor = RGB(12, 124, 184)
End With

And then stack them on top of each other.


NickHK,

is there a possibility to make this work without putting the pictures on a
worksheet, but rather display them on a userform?

Thanks!
Jens




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
Drawing/image/picture not visible in Excel on one pc Amedee Van Gasse Excel Discussion (Misc queries) 1 January 26th 09 03:30 PM
Charts to Image or Picture? Bill Elerding Charts and Charting in Excel 2 May 5th 05 12:54 PM
Copy picture from image control Ian[_14_] Excel Programming 4 February 8th 05 02:48 PM
userform image from picture in worksheet Doug Glancy[_5_] Excel Programming 2 November 10th 03 04:43 AM
VBA : A picture from http://.../Image.gif VUILLERMET Jacques Excel Programming 2 October 1st 03 09:24 PM


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

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

About Us

"It's about Microsoft Excel"