Click here to Skip to main content
15,915,319 members
Home / Discussions / Graphics
   

Graphics

 
GeneralRe: rendering video Pin
jossion4-Mar-08 22:52
jossion4-Mar-08 22:52 
GeneralRe: rendering video [modified] Pin
Mark Salsbery5-Mar-08 5:59
Mark Salsbery5-Mar-08 5:59 
GeneralRe: rendering video Pin
jossion5-Mar-08 16:19
jossion5-Mar-08 16:19 
GeneralRe: rendering video Pin
Mark Salsbery5-Mar-08 16:50
Mark Salsbery5-Mar-08 16:50 
GeneralRe: rendering video Pin
jossion23-Feb-09 21:41
jossion23-Feb-09 21:41 
GeneralRe: rendering video Pin
Mark Salsbery24-Feb-09 5:39
Mark Salsbery24-Feb-09 5:39 
GeneralRe: rendering video Pin
jossion24-Feb-09 16:49
jossion24-Feb-09 16:49 
QuestionScreen Capture over Terminal Server Pin
intonet4-Mar-08 3:29
intonet4-Mar-08 3:29 
I'm experiencing a wierd problem when capturing a screen from within a desktop app running on terminal server.

Here's my code:

    Public Shared Function CaptureControlImage(ByVal pControl As Control, Optional ByVal pstrFilename As String = "") As System.Drawing.Image<br />
        ' Returns the image contained with the referenced controls client rectangle and optionally saves it to JPEG file<br />
<br />
        Dim g As Graphics<br />
        Dim picture As PictureBox<br />
        Dim img As Image<br />
<br />
        ' Create a new PictureBox control. This is used to manipulate the captured bitmap<br />
        picture = New PictureBox<br />
        picture.Image = New Bitmap(pControl.ClientRectangle.Width, pControl.ClientRectangle.Height)<br />
<br />
        ' Create a GDI+ drawing surface based on the PictureBox control<br />
        g = Graphics.FromImage(picture.Image)<br />
<br />
        ' BitBlt the screen image at the co-ordinates representing the referenced controls client rectangle<br />
        ' into the drawing surface, which is the PictureBox control<br />
        g.CopyFromScreen(pControl.PointToScreen(New Point(pControl.ClientRectangle.X, pControl.ClientRectangle.Y)), _<br />
                          New Point(0, 0), _<br />
                          New Size(pControl.ClientRectangle.Width, pControl.ClientRectangle.Height))<br />
<br />
        ' Creates an image object from the PictureBox surface<br />
        img = picture.Image<br />
<br />
        If Not IsNothing(img) AndAlso pstrFilename <> String.Empty Then<br />
            ' Save the image to disk if required<br />
            img.Save(pstrFilename, Drawing.Imaging.ImageFormat.Jpeg)<br />
        End If<br />
<br />
        Return img<br />
    End Function<br />


It works just fine when running locally, but when the app is deployed on another server and it's access via terminal server, then this is what you get:

http://www.threefivefive.com/gallery/data/500/medium/capture_ts.jpg[^]

Can anyone tell me why?
QuestionHow to mirror the screen. Pin
Tino126-Feb-08 20:58
Tino126-Feb-08 20:58 
AnswerRe: How to mirror the screen. [modified] Pin
Smithers-Jones28-Feb-08 11:10
Smithers-Jones28-Feb-08 11:10 
QuestionHow to draw text in OpenGL and what is problem in this Code Pin
Yasir Nawazish Ali26-Feb-08 17:10
Yasir Nawazish Ali26-Feb-08 17:10 
GeneralDraw text in C# using OpenGL Pin
Yasir Nawazish Ali26-Feb-08 0:17
Yasir Nawazish Ali26-Feb-08 0:17 
GeneralRe: Draw text in C# using OpenGL Pin
El Corazon26-Feb-08 6:02
El Corazon26-Feb-08 6:02 
GeneralRe: Draw text in C# using OpenGL Pin
Yasir Nawazish Ali26-Feb-08 17:07
Yasir Nawazish Ali26-Feb-08 17:07 
QuestionRender bitmap Pin
robban5145143225-Feb-08 20:38
robban5145143225-Feb-08 20:38 
QuestionHow to apply a texture to an irregular shape using GDI+ ? Pin
KaKa'24-Feb-08 5:06
KaKa'24-Feb-08 5:06 
GeneralRe: How to apply a texture to an irregular shape using GDI+ ? Pin
Shog924-Feb-08 9:40
sitebuilderShog924-Feb-08 9:40 
QuestionHow i can improve this website Pin
Saqib Yaqub24-Feb-08 4:19
Saqib Yaqub24-Feb-08 4:19 
AnswerRe: How i can improve this website http://www.whites-stationery.co.uk/ Pin
Pete O'Hanlon24-Feb-08 10:11
mvePete O'Hanlon24-Feb-08 10:11 
GeneralRe: How i can improve this website http://www.whites-stationery.co.uk/ Pin
Saqib Yaqub24-Feb-08 11:19
Saqib Yaqub24-Feb-08 11:19 
GeneralRe: How i can improve this website http://www.whites-stationery.co.uk/ Pin
Tim Craig24-Feb-08 12:47
Tim Craig24-Feb-08 12:47 
GeneralRe: How i can improve this website http://www.whites-stationery.co.uk/ Pin
Pete O'Hanlon25-Feb-08 0:49
mvePete O'Hanlon25-Feb-08 0:49 
AnswerRe: How i can improve this website Pin
Christian Graus25-Feb-08 9:42
protectorChristian Graus25-Feb-08 9:42 
GeneralRe: How i can improve this website Pin
Pete O'Hanlon25-Feb-08 9:56
mvePete O'Hanlon25-Feb-08 9:56 
GeneralOpenGL- Tao- VB.Net simulating motion and zoom Pin
braveheartkenya24-Feb-08 4:11
braveheartkenya24-Feb-08 4:11 

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.