Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
"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 |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
"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 |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Drawing/image/picture not visible in Excel on one pc | Excel Discussion (Misc queries) | |||
Charts to Image or Picture? | Charts and Charting in Excel | |||
Copy picture from image control | Excel Programming | |||
userform image from picture in worksheet | Excel Programming | |||
VBA : A picture from http://.../Image.gif | Excel Programming |