Click here to Skip to main content
15,910,130 members
Home / Discussions / C#
   

C#

 
GeneralRe: List view problem Pin
John.Smith770021-Sep-10 6:28
John.Smith770021-Sep-10 6:28 
QuestionDatabase migration Pin
anishkannan21-Sep-10 1:52
anishkannan21-Sep-10 1:52 
AnswerRe: Database migration Pin
Bernhard Hiller21-Sep-10 2:11
Bernhard Hiller21-Sep-10 2:11 
GeneralRe: Database migration Pin
anishkannan21-Sep-10 2:17
anishkannan21-Sep-10 2:17 
GeneralRe: Database migration Pin
anishkannan21-Sep-10 2:17
anishkannan21-Sep-10 2:17 
QuestionCheckbox List Item Value Pin
SatyaKeerthi1520-Sep-10 23:25
SatyaKeerthi1520-Sep-10 23:25 
AnswerRe: Checkbox List Item Value Pin
Henry Minute20-Sep-10 23:30
Henry Minute20-Sep-10 23:30 
QuestionHandling mouse events in off-screen rendering Pin
HalliHaida20-Sep-10 23:04
HalliHaida20-Sep-10 23:04 
Hi All,

I am working on developing a application (Windows Application) where in the application gets the content (majorly flash content) from a content server and takes the snapshot and gets the RGB data out into a buffer at x fps. This buffer is then passed to a display stack which handles the off-screen rendering.

I am using IECore as the renderer. I am able to capture the snapshot of the web content and save it as bmp file (shown below).

To get the content

AxWebBrowser web = new AxWebBrowser();
web.SetBounds(0, 0, 1024, 600);
web.Navigate2(ref URL, ref oNull, ref oNull, ref oNull, ref oNull);
Application.Run();

private Graphics grp;
private IntPtr hdc;
private IViewObject vw;
private IHTMLDocument2 doc;

public void Capture()
{


doc = (IHTMLDocument2)web .Document;
web.SetBounds(0, 0, width, height);

image = new Bitmap(width, height);
grp = Graphics.FromImage(image);

_RECTL bounds;
bounds.left = 0;
bounds.top = 0;
bounds.right = width;
bounds.bottom = height;

hdc = grp.GetHdc();
vw = doc2 as IViewObject;

vw.Draw(1, -1, (IntPtr)0, (IntPtr)0, (IntPtr)0,
(IntPtr)hdc, ref bounds, (IntPtr)0, (IntPtr)0, 0);

grp.ReleaseHdc(hdc);
image.Save(fileName);
image.Dispose();
}

}

I am hopefule that we will have some mechanism to extract the RGBA data out of it. But I am not getting the clue of handling the mouse events. here the rendering is happening to a memory and not to a window (off-screen rendering).

The display sdk (a C dll) requires the application to register a call back funtion to get the mouse related data. The information that I will get is the left down/up, move and x and y co-ordinates.

Now, what I want to know is, how to register a call back function and how to pass the mouse information to the IE Core so that it responds as if it was clicked on a normal window.

Any help is appreciated. Please do the needful.

Regards,
HalliHaida
QuestionReading large data with TcpClient Pin
Chesnokov Yuriy20-Sep-10 20:47
professionalChesnokov Yuriy20-Sep-10 20:47 
AnswerRe: Reading large data with TcpClient Pin
Pete O'Hanlon20-Sep-10 22:25
mvePete O'Hanlon20-Sep-10 22:25 
AnswerRe: Reading large data with TcpClient Pin
Chesnokov Yuriy21-Sep-10 0:30
professionalChesnokov Yuriy21-Sep-10 0:30 
GeneralRe: Reading large data with TcpClient Pin
Pete O'Hanlon21-Sep-10 1:21
mvePete O'Hanlon21-Sep-10 1:21 
AnswerMessage Closed Pin
21-Sep-10 1:05
stancrm21-Sep-10 1:05 
GeneralRe: Reading large data with TcpClient Pin
Chesnokov Yuriy21-Sep-10 1:37
professionalChesnokov Yuriy21-Sep-10 1:37 
GeneralRe: Reading large data with TcpClient Pin
David Knechtges21-Sep-10 3:19
David Knechtges21-Sep-10 3:19 
GeneralRe: Reading large data with TcpClient Pin
Chesnokov Yuriy21-Sep-10 3:51
professionalChesnokov Yuriy21-Sep-10 3:51 
GeneralRe: Reading large data with TcpClient Pin
Pete O'Hanlon21-Sep-10 4:44
mvePete O'Hanlon21-Sep-10 4:44 
QuestionRe: Reading large data with TcpClient Pin
Chesnokov Yuriy21-Sep-10 5:13
professionalChesnokov Yuriy21-Sep-10 5:13 
AnswerRe: Reading large data with TcpClient Pin
Pete O'Hanlon21-Sep-10 7:49
mvePete O'Hanlon21-Sep-10 7:49 
QuestionCorrect deserialization with BinaryFormatter Pin
Chesnokov Yuriy20-Sep-10 20:19
professionalChesnokov Yuriy20-Sep-10 20:19 
AnswerRe: Correct deserialization with BinaryFormatter Pin
Paw Jershauge21-Sep-10 0:35
Paw Jershauge21-Sep-10 0:35 
GeneralRe: Correct deserialization with BinaryFormatter Pin
Chesnokov Yuriy21-Sep-10 1:39
professionalChesnokov Yuriy21-Sep-10 1:39 
GeneralRe: Correct deserialization with BinaryFormatter Pin
Paw Jershauge21-Sep-10 2:18
Paw Jershauge21-Sep-10 2:18 
GeneralRe: Correct deserialization with BinaryFormatter Pin
Chesnokov Yuriy21-Sep-10 2:47
professionalChesnokov Yuriy21-Sep-10 2:47 
QuestionC# picture box Pin
C.CoderCreator20-Sep-10 20:05
C.CoderCreator20-Sep-10 20:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.