Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
erik  
#1 Posted : Monday, May 30, 2005 12:18:00 AM(UTC)
erik

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

Andrew  
#2 Posted : Tuesday, May 31, 2005 1:13:00 PM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 866

Thanks: 2 times
Was thanked: 26 time(s) in 26 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 Explorer The 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...
Users browsing this topic
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.