Re: Magnify Area under Mouse Coordinates
henrycortezwu_at_hotmail.com
Date: 09/26/04
- Next message: Greg Burns: "Re: VB.Net Resource Kit won't open samples"
- Previous message: Confessor: "85 Identical Procedures Are Having An Orgy In My Program. Could You Help?"
- In reply to: Dr Screwup: "Re: Magnify Area under Mouse Coordinates"
- Next in thread: Dr Screwup: "Re: Magnify Area under Mouse Coordinates"
- Reply: Dr Screwup: "Re: Magnify Area under Mouse Coordinates"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Greg Burns: "Re: VB.Net Resource Kit won't open samples"
- Previous message: Confessor: "85 Identical Procedures Are Having An Orgy In My Program. Could You Help?"
- In reply to: Dr Screwup: "Re: Magnify Area under Mouse Coordinates"
- Next in thread: Dr Screwup: "Re: Magnify Area under Mouse Coordinates"
- Reply: Dr Screwup: "Re: Magnify Area under Mouse Coordinates"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|