I looking for the right command in c# to do this:
previewImg.Bitmap.ConvertTo(corel.cdrImageType.cdrGrayscaleImage);
Remo,
I do not think Bitmap Mask is currently support via VBA or C#.
-Shelby
Looking at the example image above I thought that a transparency mask may also be a nice solution (just clone the image and adjust so the brightness becomes a mask), but turns out that is also not available via macros. Strange how these things are with CorelDRAW.
Maybe it gives a other way to do this?I would like all white as transparent so we can see the bellow layer (wooden maple)
Since your image is pretty much black and white, why not convert to Black and White (1-bit) then set the fill color to nothing. This would allow you to see the wooden maple layer below.
Here is a little example. You can see I have my Black and White (1-bit) Bitmap selected. And since I have set the fill color to nothing I am able to see the cyan shape behind it.
ShelbyOk this was i looking for :-)I did not know that you could select a 1 bit image without filling it.Many thanks for the tip.dplS.Fill.ApplyNoFill();