Show Bid Request
Send Picture By Winsock Without Saving
Bid Request Id: 59401
|
|
|
Description:
This should be a very easy VB 6.0 app for someone to write. So please only bid if you can do it right now, test it and send.
I have a routine that captures part of my screen with bitblt and puts it in a picturebox control with the hDC of the control. I want to send this picture to another VB app without saving it first. On forums I see people saving it to file and then sending it. I don't want this. I want to use some APIs to convert it to a byte array or something that can be received and displayed on the client end. In no way do I want to save the image to file first.
Here is the capture routine to use:
'Declares Private Declare Function GetDesktopWindow Lib "user32" () As Long Private Declare Function GetWindowDC Lib "user32" (ByVal hwnd As Long) As Long Private Declare Function BitBlt Lib "gdi32" (ByVal hDestDC As Long, _ ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, _ ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, _ ByVal dwRop As Long) As Long
Private Sub CaptureScreen(iTargetDC As Long) Dim w As Long Dim h As Long 'Get screen size w = CLng(Screen.Width / Screen.TwipsPerPixelX) h = CLng(Screen.Height / Screen.TwipsPerPixelY) 'Capture fullscreen BitBlt iTargetDC, 0, 0, w, h, GetWindowDC(GetDesktopWindow), 0, 0, vbSrcCopy End Sub
Private Sub Command1_Click() 'Code to call: CaptureScreen Picture1.hDC End Sub
If you want to make up a demo and send it with your bid, I will accept you faster.
Thanks!
Deliverables: 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request.
3) Complete ownership and distribution copyrights to all work purchased.
Platform:
Windows
Remember that contacting the other party outside of the site (by email, phone, etc.) on all business projects < $500 (before the buyer's money is escrowed) is a violation of both the software buyer and seller agreements.
We monitor all site activity for such violations and can instantly expel transgressers on the spot, so we thank you in advance for your cooperation.
If you notice a violation please help out the site and report it. Thanks for your help.
|
|
Bidding/Comments:
|
All monetary amounts on the site are in United States dollars.
Rent a Coder is a closed auction, so coders can only see their own bids and comments. Buyers can view every posting made on their bid requests. |
See all rejected bids (and all comments)
Name |
Bid Amount |
Date |
Coder Rating |
|
|
|
This bid was accepted by the buyer!
|
$50 (USD)
|
Apr 24, 2003 4:36:25 PM EDT
|
9.93
(Excellent)
|
|
|
Hi,
Sorry for bidding late but i was working on to optimize the freezing of system while taking screen shot.I tried with many methods and found out that while bilting the system freezes.I am sending this demo to you for your evaluation. The optimizations which i have done is I am converting the bitmap to jpg in memory itself instead of saving it to disk and accessing. I am converting to jpg at 10% qlty which produces approx. 45-50 kb file of 1024X768 desktop.
The demo is quite basic and with no error handling. I am sending it to you just to test the data transfer and the system freezing.
Please let me know if you find it worthy.
With Regards,
Ashesh Bharadwaj
|
|
Attached File
|
|
|
|
|