473,411 Members | 1,923 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,411 software developers and data experts.

Using GetDC and BitBlt in asp.net

Dear,
Can I use BitBlt , and GetDC with ASP.NET?

Nov 19 '05 #1
3 2856
Raed:
I don't know much about this, but hopefully can still help you. In .Net you
can easily interop with win32 native code...all you must do is import the
desired function into your code..

Check out:
http://www.csharphelp.com/archives2/archive393.html

you'll see them importing BitBlt and GetDC and then use them later on..

Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Raed Sawalha" <Ra*********@discussions.microsoft.com> wrote in message
news:70**********************************@microsof t.com...
Dear,
Can I use BitBlt , and GetDC with ASP.NET?

Nov 19 '05 #2
I would tell you that I need to do this to be able to capture the Client
Desktop when an error is occured ,i did what came with link and do
private void Button1_Click(object sender, System.EventArgs e)
{

System.Drawing.Bitmap oBitmap = CaptureScreen.CaptureScreen.GetDesktopImage();
oBitmap.Save("C:\\test.jpg",System.Drawing.Imaging .ImageFormat.Jpeg);
}
the image is black,why?
other question is this possbile to get the client Desktop screeen using the
provide method

"Karl Seguin" wrote:
Raed:
I don't know much about this, but hopefully can still help you. In .Net you
can easily interop with win32 native code...all you must do is import the
desired function into your code..

Check out:
http://www.csharphelp.com/archives2/archive393.html

you'll see them importing BitBlt and GetDC and then use them later on..

Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Raed Sawalha" <Ra*********@discussions.microsoft.com> wrote in message
news:70**********************************@microsof t.com...
Dear,
Can I use BitBlt , and GetDC with ASP.NET?


Nov 19 '05 #3
GetDC will take a screenshot of the server...since ASP.Net is running on the
Server. I can't think of any methods to get a client-side screenshot short
of using some java applet or active x...

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Raed Sawalha" <Ra*********@discussions.microsoft.com> wrote in message
news:70**********************************@microsof t.com...
I would tell you that I need to do this to be able to capture the Client
Desktop when an error is occured ,i did what came with link and do
private void Button1_Click(object sender, System.EventArgs e)
{

System.Drawing.Bitmap oBitmap = CaptureScreen.CaptureScreen.GetDesktopImage(); oBitmap.Save("C:\\test.jpg",System.Drawing.Imaging .ImageFormat.Jpeg);
}
the image is black,why?
other question is this possbile to get the client Desktop screeen using the provide method

"Karl Seguin" wrote:
Raed:
I don't know much about this, but hopefully can still help you. In .Net you can easily interop with win32 native code...all you must do is import the desired function into your code..

Check out:
http://www.csharphelp.com/archives2/archive393.html

you'll see them importing BitBlt and GetDC and then use them later on..

Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying) http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Raed Sawalha" <Ra*********@discussions.microsoft.com> wrote in message
news:70**********************************@microsof t.com...
Dear,
Can I use BitBlt , and GetDC with ASP.NET?


Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: mark | last post by:
I need to use GetDC but I don't know how to find a parameter to pas to the function. This is the GetDc from MSVC help: ********** GetDC The GetDC function retrieves a handle to a display...
6
by: Larry Serflaten | last post by:
Can anyone see something wrong with the code below? Friend Sub MapUpdate(ByRef Artwork As Bitmap, ByRef Player As MapObject) If grxForm Is Nothing Then grxForm = Me.CreateGraphics Dim hdcDst...
3
by: Joergen Bech | last post by:
Am trying to paint a simple rectangle directly on the screen DC using the code below, but nothing happens?!? Weird. Anyone who can tell me what I am doing wrong? This ought to be...
7
by: matt | last post by:
Hallo, I have to create a simple sprite movement; in VB6 I used the API BitBlt and all was very good. Using the NET graphical methods (not API) , the result is slow. Do you have a NET...
5
by: Paul_Madden via DotNetMonster.com | last post by:
How can I get a bitmap of a Form using .NET 1.1 (ie NO CopyFromScreen) -- Message posted via DotNetMonster.com http://www.dotnetmonster.com/Uwe/Forums.aspx/dotnet-csharp/200605/1
1
by: JP2006 | last post by:
I'm trying to write a control that will take a screen capture of a particular website when a user submits a form in a web application; one of the form fields is for a URL - the control needs to get...
6
by: Martijn Mulder | last post by:
/* BitBlt.cs C# code using P/Invoke I have good reasons to use P/Invoke to get access to the Win32 API function BitBlt(). But I have trouble understanding the workings of it. Below is a...
5
by: =?Utf-8?B?UmljYXJkbyBGdXJ0YWRv?= | last post by:
I'm trying to copy a part of an image (a rectangle) width the bitblt api function, bu i receive an error when i try to do it. The error is the following, that i will try to translate because its in...
2
by: junkmatred | last post by:
Please help guys, Picture1.hdc is returning a different value than GetDC(Picture1.hwnd) Look at the source code I've provided. This doesn't make any sense! I need help! Option Explicit...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.