Does anyone know how it is possible to create a new pen mode so that I can use it in this way:
shape1.pen.mode:=pmCustom;
Then I'm gonna define what color each pixel must have. For example, I'd create a pen mode that paints blue when behind the specified pixel is a light colored one; and paints white when the behind pixel is dark.
Thanks in advance
The VCL property TPen.Mode
maps onto the GDI function SetROP2
. This has no option for what you describe and so I believe that what you ask is not possible.
To achieve the sort of effect you are looking for is likely going to require some hand-crafting.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With