Normal 0 21 false false false MicrosoftInternetExplorer4
I want to set a part of a picture transparend. The picture is 1280*1024, I want to have the right half solid, then the picture fading out on the left.
When I'm using this code:
With MasterShape.Transparency.ApplyFountainTransparency(0, 100, 1, 180, 0, 0, 100) .StartX = 640 .StartY = BaseY + CurMon.Height / 2 .EndX = 0 .EndY = BaseY + CurMon.Height / 2 End With the transparency starts at the right corner of the picture and ends on the left side. I have tried it with different values of StartX/EndX, but didn't saw any difference in the result.
When I add the following lines:
MasterShape.Transparency.Fountain.StartX = 250 MsgBox Str(MasterShape.Transparency.Fountain.StartX) + Str(MasterShape.Transparency.Fountain.EndX)
The message box shows me the start and end of the picture (~1280 and 0) although I changed StartX immediately before.
When I'm modifying the centre of the transparency manually and record a macro during that time, StartX is the changed value.
Now I've moved the same code to X6 and all works fine. Why do I need a new version when only the old is working?
Hello NudeFan; If the Screen shot below is what you are trying to do, You can send me a email and I'll send the file to you.
George
Hi George,
thanks for your great offer, but what I need is a way to do this by mself. I want to design a few wallpapers which can be used for different monitor sizes / scales. So I want to have for example for the primary monitor the model to the right, that I have a uniform background for the icons to the left. For the secondary monitor it should be in the middle, like for example here:
The one picture should appear on different monitors like that.
So you may belive, that you have to screw a lot on the different values, until you get an usable result
I moved this project back to X6 and there it works fine, but the same code in X7 fails
NudeFan; The screen shot below was done in X7 with some cropping and then the Transparency.
did you did this manually or via VBA? Manually it also was no problem for me to do, but the VBA-Code (exact the same which now works for X6) failed. That's why I brought it here to attention, Maybe the guys from Corel read and fix it.
Regards NudeFan