Re: Magnify Area under Mouse Coordinates

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

henrycortezwu_at_hotmail.com
Date: 09/26/04


Date: 26 Sep 2004 13:10:50 -0700

Hi Doc,
The NOTSRCCOPY did invert the colors as you said,..it works! However,
it still broke the ability of the magnifier to magnify transparent or
layered windows.

Were you able to invert colors and still be able to magnify transparent
or layered windows?

Thanks,
Henry

Dr Screwup wrote:
> To properly invert colors use this: NOTSRCCOPY. I works like a
charm!
>
> Private invert as Boolean
>
> If invert Then
> BitBlt(hdcGraphics.ToInt32, 0, 0, blitAreaX, blitAreaY,
> hdcWindow.ToInt32, Cursor.Current.Position.X - offsetX,
> Cursor.Current.Position.Y - offsetY, NOTSRCCOPY)
> Else
> BitBlt(hdcGraphics.ToInt32, 0, 0, blitAreaX, blitAreaY,
> hdcWindow.ToInt32, Cursor.Current.Position.X - offsetX,
> Cursor.Current.Position.Y - offsetY, SRCCOPY Or CAPTUREBLT)
> End If
>
>
> Private Sub Form1_Click(ByVal sender As Object, ByVal e As
System.EventArgs)
> Handles MyBase.Click
> invert = Not invert
> End Sub
>
>
>
>
>
>
>
> "Henry Wu" <henrycortezwu@hotmail.com> wrote in message
> news:8612270.0409252355.348a617f@posting.google.com...
> > Oh yes, I forgot to add the double buffering at the Sample Program,
> > but I did place it by doing the following:
> >
> > #Region " Windows Form Designer generated code "
> >
> > Public Sub New()
> > MyBase.New()
> >
> > 'This call is required by the Windows Form Designer.
> > InitializeComponent()
> >
> > 'Add any initialization after the InitializeComponent() call
> > Me.SetStyle(ControlStyles.DoubleBuffer Or
> > ControlStyles.UserPaint Or ControlStyles.AllPaintingInWmPaint,
True)
> > Me.UpdateStyles()
> >
> > End Sub
> >
> > This is the correct procedure to my knowledge on how to implement
> > double buffering.
> >
> >
> >
> > Thanks again!!
> >
> > If you find out how to do the invert colors w/o breaking the
> > CAPTUREBLT, I'd sure like to know how!
> >
> > Thanks again so much,
> > Henry



Relevant Pages

  • Re: Magnify Area under Mouse Coordinates
    ... Do you mean that when you invert the colors you ... can't see the transparent window? ... at Windows Magnifier it also doesn't show the transparent windows when the ... > Were you able to invert colors and still be able to magnify transparent ...
    (microsoft.public.dotnet.languages.vb)
  • Reverse large files
    ... Can someone explain why the following code doesn't invert a selection of 60,000 words. ... Sub ReverseSelection02() ... Dim strA As String ...
    (microsoft.public.word.vba.general)
  • Re: Problem using a for loop to delete rows and columns from a
    ... This will not invert and I cannot work out the column vector I am trying to sub the 0's back into now. ... I hope I'm making sense. ...
    (comp.soft-sys.matlab)
  • Re: twos complement and the CF (carry flag)
    ... generated by the adder has to be inverted to produce the correct Carry. ... Ahhhhhh, do you mean ... ... when using SUB we must invert the resulting ... if CARRY FLAG=0, then invert that ... ...
    (alt.lang.asm)