Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic fc.BackColor=color.transparent (Read 1137 times)
dmcdaniel
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: May 31st, 2007
fc.BackColor=color.transparent
May 31st, 2007 at 6:23pm
Print Post  
I am using the example from the VB.net 2005 WebApp_Vb samples to create an image on a web page.  but when I use the following:

If fc Is Nothing Then
           fc = New FlowChart()
           fc.MeasureUnit = GraphicsUnit.Pixel
           fc.DocExtents = New RectangleF(0, 0, 600, 400)
           fc.BackColor = Color.Transparent
           fc.SelectAfterCreate = False
           fc.SelHandleSize = 6
           fc.BoxStyle = BoxStyle.Rectangle
           fc.ArrowHead = ArrowHead.BowArrow
           fc.ArrowHeadSize = 15
           Me.Session.Item("fcx") = fc
       End If

I get a black picture instead of a truly transparent picture.. ?  Any thoughts on fixing this?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: fc.BackColor=color.transparent
Reply #1 - May 31st, 2007 at 6:56pm
Print Post  
You could set as a background color one that is not used to draw or fill diagram elements, and once the bitmap is generated, call Bitmap.MakeTransparent(fc.BackColor).

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint