C#
|
|
 |

|
Can C# do a real BitBLT in Windows Forms ?
I am having difficulty figuring out the syntax and implementation of doing a BitBLT in C#.
I found This Link [^] about BitBLT on the MSDN site, which is for C++ but couldn't find anything about doing it in C#. All other searches for the two terms, "C#" and "BitBLT" in the same context led to nowhere and worse results.
The two major "Duh" points for me are figuring out what the HDC values are for the source and destination.
They are listed as "...A handle to the [source/destination] device context..." (no quotes, no dots) but when I go looking for how to determine what that is, or how to obtain it, I wind up in circles.
I found some tangential references to the C# Bitmap class, and if that's the way you do a BitBLT in C#, okay, just tell me how.
The Syntax and implementation are the thing.
Let me think, to keep the question simple, lets say I have a rectangle located at X1, Y1, with width W1 and Height H1, (in pixels, I presume) and I want to move that to location X2, Y2.
The BitBLT question is based on a desire to let the hardware do it without the processor spending cycles. I don't care if I use BitBLT or Bitmap or whatever. I just want to know How to do that in C#, and the faster it executes, the better.
If this already has examples waiting to read, somebody please point me to them.
|
|
|
|
 |
|
|
General
News
Suggestion
Question
Bug
Answer
Joke
Rant
Admin