Invert Pen/Line?

This is a discussion on Invert Pen/Line? within the Windows Programming forums, part of the Platform Specific Boards category; Hi all, I have searched several places including message boards and Google, without any result! Have I missed something or ...

  1. #1
    Registered User
    Join Date
    Dec 2002
    Posts
    162

    Question Invert Pen/Line?

    Hi all,

    I have searched several places including message boards and Google, without any result! Have I missed something or am I the first to ask regarding this:

    How can I create, or get an already available, invert pen? Which when used for drawing (ex. lines) it inverts all pixel colors it comes in “touch” with. I am not looking for the DrawFocusRect function, but a pen or function that draws an invert line.
    We haven't inherited Earth from our parents; instead we have borrowed her from our children - old Indian saying.

  2. #2
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    I think you want the SetROP2 function. Probaby with R2_NOT.

    EDIT: I found this out in less than a minute by typing 'pen invert gdi' into google.

  3. #3
    Registered User
    Join Date
    Dec 2002
    Posts
    162
    Thanks!

    hmm... I searched on the phrase "invert pen" and "c++", but ended up with nothing... so I searched on "invert drawing" and etc. Hehe... obviously a bad chosen phrase
    We haven't inherited Earth from our parents; instead we have borrowed her from our children - old Indian saying.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need to invert the output!
    By alvifarooq in forum C++ Programming
    Replies: 11
    Last Post: 09-23-2004, 10:46 AM
  2. Invert and reverse bits.
    By JamesMI in forum C++ Programming
    Replies: 5
    Last Post: 05-08-2003, 10:28 AM
  3. 5 * 5 matrix invert
    By Unregistered in forum C++ Programming
    Replies: 3
    Last Post: 10-30-2001, 07:26 AM
  4. Background colors invert when resizing?
    By HisWord in forum Windows Programming
    Replies: 1
    Last Post: 10-21-2001, 11:23 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21