Custom pen mode in delphi

Does anyone know how to create a new pen mode so that I can use it this way: shape1.pen.mode:=pmCustom; Then I’m going to determine what color each pixel should have. For example, I would create a pen mode that dyes blue when there is a light color behind the specified pixel; and turns white when the back pixel is dark.

Thank you in advance

+4
source share
1 answer

The VCL property TPen.Mode mapped to the GDI SetROP2 function. This is not possible for what you are describing, and therefore I believe that what you are asking is impossible.

To achieve the effect you are looking for is likely to require some manual creation.

+5
source

Source: https://habr.com/ru/post/1340384/


All Articles