When I draw a box, is there a way to modify the transparency of either the borders or the inside but not both at the same time? Right now, if I have a brush that is bssolid and I change the transparency of the brush, it also affects the pen transparency of the box. I could be doing something wrong. So if it is possible to modify only one of the two, then I can look depper in my code. Thanks. Pierre
I do not think setting the pen and brush transparency separately is supported. Transparency set both the pen and brush transparency so to just adjust the pen transparency just set the brush style to bsClear: ObjBrushStyle[ihobj] := bsClear;
the issue is that when I set the brush type to bssolid and I dither the transparency of the brush, it works great but it also change the transparency of the pen. the pen does not stay a solid red. Maybe in am coding it wrong.
I do not think setting the pen and brush transparency separately is supported. When you change the transparency the entire object's transparency is changed.
yes, i think you are correct. i can change the style of the pen and make it clear but i cannot change the brightness of the pen by itself. that is fine. thanks for the input.
Are you using a TImageEnVect, or drawing directly to a TIEBitmap? When drawing to a TIEBitmap, you should draw to the canvas, and simultaneously to the alpha channel canvas. Use CanvasCurrentAlpha to specify the transparency level:
Yes, I am using a timgeenvect. The idea of using a tiebitmap is very clever but I would not know on how to code that. I am dragging the cursor to draw a box.
ImageEnVect1.IEBitmap.AlphaChannel.CanvasCurrentAlpha is only for drawing to the IEBitmap canvas not for use with objects. It is not possible to set the transparency of the objects pen and the brush separately. If you set the transparency of the object it will effect the entire object as you have already established.