Aurigma Forums
»
Legacy Products
»
Archive
»
Other Products
»
Transparency - difficult to get it working
Rank: Member
Groups: Member
Joined: 7/29/2004(UTC) Posts: 24
|
Please look at the following VBscript code The result is a picture with a gray background. What do I do wrong? Code:objBitmap.createnew 200,100,Format32bppARgb,"&h00FFFFFF"
With objBitmap.Graphics
.Engine = DrawingEngineGdiplus
.Antialiasing = True
' Adjust font settings
.TextFormat.FontSize = 12
.TextFormat.FontName = "Verdana"
.TextFormat.IsBold = true
.TextFormat.FontColor = colorBlack
.DrawText "123", 0, 0
'.channels.Transparentize colorwhite (have tried with and without - no diff)
End With
objBitmap.Formats.SelectCurrent "PNG"
response.contenttype="image/png"
objBitmap.SaveToStream Response
Edited by user Sunday, December 23, 2007 6:15:31 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration Joined: 8/2/2003(UTC) Posts: 876
Thanks: 2 times Was thanked: 27 time(s) in 27 post(s)
|
Hello Erik, As far as I understand you try to browse this PNG file in Internet Explorer. The bad news is that Internet Explorer does not handle transparent 32-bit PNG files properly. It is a known bug of IE. You can see more information on this at Microsoft site: PNG Files Do Not Show Transparency in Internet ExplorerThe workaround for this would be to use AlphaImageLoader filter (as described in that article), however it will work in IE only. From the other side other browsers can handle such images without any filters...
|
|
|
|
Aurigma Forums
»
Legacy Products
»
Archive
»
Other Products
»
Transparency - difficult to get it working
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.