Black background problem

29 views
Skip to first unread message

Peter Mello

unread,
Sep 17, 2010, 12:23:47 PM9/17/10
to MetaDraw Developers Group
I'm saving a MetaDraw object to two database fields

ImageBytes = MDraw.SavePicture(ms, PictureSource.Picture,
PictureType.Metafile);

ImageBytesBMP = MDraw.SavePicture(ms, PictureSource.Picture,
PictureType.Bitmap);

I'm reading the ImageBytesBMP field to populate an image object in a
report and, despite setting transparency options, I get a black
background.

I use the following calls before SavePicture is called:

MDraw.BackColor = Color.Transparent;
MDraw.BackStyle = BackStyle.Transparent;
MDraw.FillColor = Color.Transparent;

Anyone had success with this or suggestions?

Thanks,

Peter

Bennet-Tec Staff

unread,
Oct 8, 2010, 5:32:36 PM10/8/10
to MetaDraw Developers Group
Try setting the BackColor property to the color that you want to be
transparent.
MetaDraw does not recognize Color.Transparent
Use the actual color that is showing up which you would prefer to
become transparent.
Reply all
Reply to author
Forward
0 new messages