Chirurgia spinală minim invazivă
Chirurgia spinală minim invazivă oferă pacienților oportunitatea unui tratament eficient, permițându-le o recuperare ultra rapidă și nu în ultimul rând minimizând leziunile induse chirurgical. Echipa noastră utilizează un spectru larg de tehnici minim invazive, din care enumerăm câteva: endoscopia cu variantele ei (transnazală, transtoracică, transmusculară, etc), microscopul operator, abordurile trans tubulare și nu în ultimul rând infiltrațiile la toate nivelurile coloanei vertebrale. www.neurohope.ro |
Programe de captura ecran
Ultima postare: sep 28 2006 17:34, Inițiat de
timisoreanul2005
, sep 28 2006 17:34
·
0
#1
Publicat: 28 septembrie 2006 - 17:34
a fost nu demult un utilizator interesat de capturarea de imagini de pe un computer remote,
cred ca se poate realiza un program rezident in memorie care constant cauta instanta unei ferestre pe care sa o captureze in momentul cind devine activa, de exemplu un utilizator deschide fereastra de Word programul Screen Capture va creea un log cu imaginea respectiva si salva intr-un fisier pe retea, ori local si apoi transmite la un server pe retea upload. cosul sursa pentru un program de captura GDI scris in C Sharp gasiti aici : http://www.c-sharpco...tureUtility.asp, transferul imaginii prin portul 80 via Http cred ca se poate realiza deasemenea sint coduri sursa disponibile. Happy Coding Guys Codul Sursa : private void PerformCapture() { // turn the form invisible so you don't show it during capture this.Visible = false; //use the GDI call and create a DC to the whole display IntPtr dc1 = CreateDC("DISPLAY", null, null, (IntPtr)null); //create a Graphics object for the screen dc Graphics g1 = Graphics.FromHdc(dc1); // create a compatible bitmap the size of the entire screen MyImage = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height, g1); // use the bitmap to create another Graphics surface so we can BitBlast into the bitmap Graphics g2 = Graphics.FromImage(MyImage); // Now go retrace our steps and get the device contexts for both the bitmap and the screen // Note: Apparently you have to do this, and can't go directly from the aquired dc or exceptions are thrown // When you try to release the dcs dc1 = g1.GetHdc(); IntPtr dc2 = g2.GetHdc(); // Bit Blast the screen into the Bitmap BitBlt(dc2, 0, 0, Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height, dc1, 0, 0, 13369376); // Remember to release the dc's, otherwise problems down the road g1.ReleaseHdc(dc1); g2.ReleaseHdc(dc2); // Save the image to JPEG file MyImage.Save(@"c:\Captured.jpg", ImageFormat.Jpeg); // Now we can view our form again, so make it visible Visible = true; MessageBox.Show("Finished Saving Image"); // Set the Bounds of the form so that it fills the entire screen // Because in our Paint event handler we are going to draw the bitmap to the form this.SetBounds(0, 0, Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height); // ************** Set up functions for doing additional bitmap manipulation such as cropping a portion of // ************* the image ****************(Not required for screen capture) SetupCropping(); firstCrop = true; } |
Anunturi
▶ Utilizatori activi: 1
0 membri, 1 vizitatori, 0 utilizatori anonimi