|
-
Aug 29th, 2001, 05:11 PM
#1
Thread Starter
Junior Member
Capturing Desktop Segment
Well i am a Intermediatte Programmer. I Just Started Playing with Graphics and set out to make fake transparency of a form Drawing the Desktop's Piece that the form its actually over.
I did This:
Dim Handle as Long
Dim SourceHdc as Long
Dim XSrc as long
Dim YSrc as Long
XSrc=0
YSrc=0
Handle=GetDesktopWindow()
SourceHdc=GetDc(Handle)
BitBlt PictureBox.Hdc ,0, 0 ,me.width ,me.height ,SourceHdc ,XSrc ,YSrc ,VbSrcCopy
This copies the desktop into a PictureBox
how can i grab only a piece?
I tried Changing the values in XSrc and YSrc but they seem to be in a Weird ScaleMode. I've Played Arround it without success
Any help Will be Apreciated.
Thanxs Thanathos
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|